Ticket #22780: Portfile-universalhackaround.diff
File Portfile-universalhackaround.diff, 1.1 KB (added by erik.abair@…, 15 years ago) |
---|
-
Portfile
old new 1 1 # $Id: Portfile 59458 2009-10-15 11:37:40Z jmr@macports.org $ 2 2 3 3 PortSystem 1.0 4 PortGroup muniversal 1.0 5 PortGroup archcheck 1.0 4 6 5 7 name cyrus-sasl2 6 8 version 2.1.23 … … 48 50 49 51 use_parallel_build yes 50 52 51 universal_variant no53 #universal_variant no 52 54 53 55 # This is a start towards universal... lib/Makefile.am and sasldb/Makefile.am need to be updated to not do blind ar-fu 54 56 #post-extract { 55 57 # system "rm ${worksrcpath}/config/libtool.m4" 56 58 #} 57 # 59 58 60 #use_autoreconf yes 59 61 #autoreconf.args -fvi 60 62 #autoreconf.env ACLOCAL="aclocal -I${worksrcpath}/cmulocal -I${worksrcpath}/config" 61 63 64 # This is a horrible hackaround as replacing the ar-fu as mentioned above is non-trivial 65 pre-build { 66 if {[variant_isset universal] && [file exists ${worksrcpath}-i386/libtool]} { 67 reinplace -E -- "s|^CC=\\\"(\[^\\\"\]+)\\\"|CC=\"\\1 -arch i386\"|g" ${worksrcpath}-i386/libtool 68 } 69 } 70 62 71 destroot.keepdirs \ 63 72 ${destroot}${prefix}/var/state/saslauthd \ 64 73 ${destroot}${prefix}/var/pwcheck