Ticket #36781: patch-cyrus-sasl2-Portfile.diff

File patch-cyrus-sasl2-Portfile.diff, 1.4 KB (added by mmpestorich (Mike M Pestorich), 10 years ago)
  • Portfile

    old new  
    66
    77name                    cyrus-sasl2
    88version                 2.1.26
    9 revision                3
     9revision                4
    1010categories              security net
    1111platforms               darwin
    1212# license is BSD plus a fourth (almost redundant) acknowledgement clause
     
    9595    configure.args-append   --enable-keep-db-open
    9696   
    9797    if {${os.platform} eq "darwin"} {
    98         depends_lib-append  port:kerberos5
    99         configure.args-append --with-gss_impl=mit \
    100             --enable-gssapi=${prefix}
    101     }
    102     if {${os.platform} eq "freebsd"} {
     98                if {${os.major} < 11} {
     99                        depends_lib-append  port:kerberos5
     100                        configure.args-append --with-gss_impl=mit \
     101                --enable-gssapi=${prefix}
     102                } else {
     103                        # Link against system libs;
     104                        # Even though darwin > 11 uses heimdal, it's still detected as mit by cyrus;
     105                        # Libraries in /usr/lib follow mit naming conventions:
     106                        #       /usr/lib/libkrb5.dylib -> /System/Library/Frameworks/Kerberos.framework/Kerberos
     107                        #       /usr/lib/libgssapi_krb5.dylib -> /System/Library/Frameworks/Kerberos.framework/Kerberos
     108                        configure.args-append --with-gss_impl=mit \
     109                                --enable-gssapi=/usr
     110                }
     111        } elseif {${os.platform} eq "freebsd"} {
    103112        depends_lib-append  port:heimdal
    104113        configure.args-append --with-gss_impl=heimdal \
    105114            --enable-gssapi=${prefix}/libexec/heimdal