Ticket #17357: cyrus-sasl2_universal.diff

File cyrus-sasl2_universal.diff, 1.3 KB (added by illogic-al@…, 15 years ago)

compile universal cyrus-sasl2 (methinks)

  • ../security/cyrus-sasl2/Portfile

     
    44
    55name                    cyrus-sasl2
    66version                 2.1.22
     7revision                1
    78categories              security net
    89maintainers             jmpp landonf
    910description             SASL is an authentication library.
     
    4445
    4546use_parallel_build  yes
    4647
    47 universal_variant no
    48 
    4948# This is a start towards universal... lib/Makefile.am and sasldb/Makefile.am need to be updated to not do blind ar-fu
    5049#depends_build \
    5150#       port:autoconf \
     
    10099
    101100variant static description "Build static library" { configure.args-append --enable-static }
    102101
     102variant universal {
     103    post-configure {
     104        reinplace "s|^\\(archive_cmds\=\"\\\\\$CC\\)|\\1 \
     105        -Wl,-syslibroot,$sysroot ${configure.universal_ldflags} \
     106        -mmacosx-version-min=10.4 |g" ${worksrcpath}/libtool
     107        # Only if compiling using 10.4 SDK on 10.5. Need to find proper fix
     108         reinplace "s|#include <gssapi.h>|#include <gssapi/gssapi.h>|" ${worksrcpath}/plugins/gssapi.c
     109    }   
     110}
     111
    103112livecheck.check regex
    104113livecheck.url   http://ftp.andrew.cmu.edu/pub/cyrus-mail/
    105114livecheck.regex {cyrus-sasl-(\d+(?:\.\d+)*)}