Ignore:
Timestamp:
Nov 19, 2008, 2:14:26 PM (11 years ago)
Author:
nox@…
Message:

cyrus-sasl2 (closes #17158):

  • Removed superfluous configure arguments.
  • Removed obsolete patches.
  • Framework installation is now disabled through the adequate --disable-macos-framework.
  • Enabled parallel build.
  • Added a pre-build test to ensure any previous installed version of cyrus-sasl2 is deactivated.
  • Added variant descriptions.
Location:
trunk/dports/security/cyrus-sasl2
Files:
1 deleted
1 edited

Legend:

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

    r42333 r42338  
    2727                                port:zlib
    2828
    29 patchfiles              patch-Makefile.in \
    30                         patch-include_Makefile.in \
    31                         patch-lib_Makefile.in
    32 
    3329default_variants        +kerberos
    3430
    35 configure.args  --sysconfdir=${prefix}/etc \
     31configure.args \
    3632                --mandir=${prefix}/share/man \
    37                 --libexecdir=${prefix}/lib \
    38                 --includedir=${prefix}/include \
    3933                --with-openssl=${prefix} \
    4034                --with-dbpath=${prefix}/etc/sasldb2 \
     
    4236                --with-saslauthd=${prefix}/var/state/saslauthd \
    4337                --with-pwcheck=${prefix}/var/pwcheck \
    44                 --enable-checkapop \
    45                 --enable-cram \
    46                 --enable-digest \
    47                 --enable-otp \
     38                --disable-macos-framework \
    4839                --enable-srp \
    4940                --enable-srp-setpass \
    50                 --enable-plain \
    51                 --enable-anon \
    5241                --enable-login \
    53                 --enable-auth-sasldb \
    5442                --enable-ntlm \
    5543                --with-rc4=openssl
    5644
    57 post-configure {
    58         # On darwin, -L/usr/lib pulls in Apple's own non-suitable sasl libraries
    59         reinplace s|-L/usr/lib||g ${worksrcpath}/utils/Makefile
     45use_parallel_build  yes
     46
     47pre-build {
     48    if {[file exists ${prefix}/lib/libsasl2.dylib]} {
     49        ui_error "cyrus-sasl2 must be deactivated before upgrade."
     50        error "Please run `sudo port deactivate cyrus-sasl2` and try again."
     51    }
    6052}
    6153
     54destroot.keepdirs \
     55    ${destroot}${prefix}/var/state/saslauthd \
     56    ${destroot}${prefix}/var/pwcheck
     57
    6258post-destroot {
    63               xinstall -d -m 755 ${destroot}${prefix}/share/doc
    64               file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
    65               xinstall -d -m 755 ${destroot}${prefix}/var/state/saslauthd
    66               xinstall -d -m 755 ${destroot}${prefix}/var/pwcheck
    67               destroot.keepdirs ${destroot}${prefix}/var/state/saslauthd \
    68               ${destroot}${prefix}/var/pwcheck
     59    xinstall -d \
     60        ${destroot}${prefix}/share/doc \
     61        ${destroot}${prefix}/var/state/saslauthd \
     62            ${destroot}${prefix}/var/pwcheck
     63
     64    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
    6965}
    7066
    7167platform darwin {}
    7268platform freebsd {}
    73 variant kerberos {
     69variant kerberos description "Enable Kerberos support (default)" {
     70    configure.args-append   --enable-gssapi \
     71                            --enable-keep-db-open
     72
    7473        if {[variant_isset darwin]} {
    75                 configure.args-append --enable-gssapi --with-gss_impl=mit
     74                configure.args-append --with-gss_impl=mit
    7675        }
    7776        if {[variant_isset freebsd]} {
    78                 configure.args-append --enable-gssapi --with-gss_impl=heimdal
     77                configure.args-append --with-gss_impl=heimdal
    7978        }
    8079}
    8180
    82 variant sql     { configure.args-append --enable-sql }
     81variant sql description "Enable SQL support" { configure.args-append --enable-sql }
    8382
    84 variant static  { configure.args-append --enable-static }
     83variant static description "Build static library" { configure.args-append --enable-static }
    8584
    8685livecheck.check regex
Note: See TracChangeset for help on using the changeset viewer.