Ignore:
Timestamp:
Dec 14, 2009, 4:37:05 AM (9 years ago)
Author:
jeremyhu@…
Message:

cyrus-sasl2: Ugly workaround for lack of +universal support which was blocking qt universal

This is not "the" solution, but it gets the job done for now. Upstream has
used some bad form with the build system, and someone needs to look into a
proper fix later.

Patch comes from ticket #17357.

Furthermore, you will need to deactivate the installed version before upgrading +universal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/security/cyrus-sasl2/Portfile

    r59458 r61539  
    22
    33PortSystem      1.0
     4PortGroup muniversal 1.0
     5PortGroup archcheck 1.0
    46
    57name                    cyrus-sasl2
    68version                 2.1.23
     9revision                1
    710categories              security net
    811maintainers             jmpp landonf openmaintainer
     
    4952use_parallel_build  yes
    5053
    51 universal_variant no
     54#universal_variant no
    5255
    5356# This is a start towards universal... lib/Makefile.am and sasldb/Makefile.am need to be updated to not do blind ar-fu
     
    5558#       system "rm ${worksrcpath}/config/libtool.m4"
    5659#}
    57 #
     60
    5861#use_autoreconf yes
    5962#autoreconf.args -fvi
    6063#autoreconf.env ACLOCAL="aclocal -I${worksrcpath}/cmulocal -I${worksrcpath}/config"
     64
     65# This is a horrible hackaround as replacing the ar-fu as mentioned above is non-trivial
     66pre-build {   
     67    if {[variant_isset universal] && [file exists ${worksrcpath}-i386/libtool]} {
     68        reinplace -E -- "s|^CC=\\\"(\[^\\\"\]+)\\\"|CC=\"\\1 -arch i386\"|g" ${worksrcpath}-i386/libtool
     69    }
     70}
    6171
    6272destroot.keepdirs \
     
    8595}
    8696
     97# TODO: Uhm... dependencies?
    8798variant sql description "Enable SQL support" { configure.args-append --enable-sql }
    8899
Note: See TracChangeset for help on using the changeset viewer.