# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $ PortSystem 1.0 name alpine version 2.20 categories mail license Apache-2 maintainers netpurgatory.com:john gmail.com:jerryyhom openmaintainer platforms darwin homepage http://patches.freeiz.com description alpine - a Program for Internet News and Email long_description Alpine is a tool for reading, sending, and \ managing electronic messages that was designed \ with novice users in mind. master_sites http://patches.freeiz.com/alpine/release/src use_xz yes checksums rmd160 c6aed347725cc62f32e23017cf192335513dbd55 \ sha256 ed639b6e5bb97e6b0645c85262ca6a784316195d461ce8d8411999bf80449227 depends_lib port:gettext \ port:libiconv \ port:ncurses configure.env SSLDIR=${prefix} configure.args --with-lib-path=${prefix}/lib \ --with-include-path=${prefix}/include \ -with-krb5-include-dir=${prefix}/include \ -with-krb5-lib-dir=${prefix}/lib \ -with-ldap-include-dir=${prefix}/include \ -with-ldap-lib-dir=${prefix}/lib \ --with-ssl-include-dir=${prefix}/include/openssl \ --with-ssl-lib-dir=${prefix}/lib \ --with-local-password-cache-method \ --with-debug-level=0 \ --without-krb5 \ --without-ldap \ --without-ssl \ --without-tcl variant universal {} use_parallel_build no build.env SSLTYPE=none build.args CC=${configure.cc} \ EXTRACFLAGS="[get_canonical_archflags cc]" \ EXTRALDFLAGS="[get_canonical_archflags ld]" \ SPECIALS="GSSDIR=${prefix} SSLDIR=${prefix}" variant passfile description {Enable password files support} { configure.args-delete --with-local-password-cache-method configure.args-append --with-passfile=".pine.pwd" } variant kerberos description {Kerberos support} { depends_lib-append port:cyrus-sasl2 configure.args-delete --without-krb5 } variant ldap description {LDAP support} { depends_lib-append port:openldap configure.args-delete --without-ldap } variant ssl description {OpenSSL support} { depends_lib-append path:lib/libssl.dylib:openssl configure.args-delete --without-ssl build.env-delete SSLTYPE=none } variant tcl description {Tcl support (required by Alpine Web)} requires ssl { # Should we force use of MacPorts' `tcl` port? configure.args-delete --without-tcl } default_variants +kerberos +ldap +ssl # ############################################### # TODO: Remove after 2016-02-20. # # Deprecate negative variants. variant without_krb5 conflicts kerberos description {Legacy variant} {} variant without_ldap conflicts ldap description {Legacy variant} {} variant without_ssl conflicts ssl description {Legacy variant} {} variant without_tcl conflicts tcl description {Legacy variant} {} # Remove default variants if user has explicitly enabled their inverses. if {[variant_isset without_krb5]} { default_variants -kerberos } if {[variant_isset without_ldap]} { default_variants -ldap } if {[variant_isset without_ssl]} { default_variants -ssl } # Since +without_tcl used to be set by default, we need to test whether # the user set -without_tcl and set +tcl if so. However, if we just # checked for -without_tcl, new installs would get +tcl by default, # which we don't want. So we should continue setting +without_tcl by # default until we remove it. if {![variant_isset tcl]} { default_variants +without_tcl } if {![variant_isset without_tcl]} { default_variants +tcl } # ###############################################