source: trunk/dports/mail/alpine/Portfile

Last change on this file was 146517, checked in by raimue@…, 17 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.0 KB
Line 
1# -*- 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
2# $Id: Portfile 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                alpine
7version             2.20
8revision            2
9categories          mail
10license             Apache-2
11maintainers         netpurgatory.com:john gmail.com:jerryyhom openmaintainer
12platforms           darwin
13
14homepage            http://patches.freeiz.com
15description         alpine - a Program for Internet News and Email
16long_description    Alpine is a tool for reading, sending, and \
17                    managing electronic messages that was designed \
18                    with novice users in mind.
19
20master_sites        http://patches.freeiz.com/alpine/release/src
21use_xz              yes
22checksums           rmd160  c6aed347725cc62f32e23017cf192335513dbd55 \
23                    sha256  ed639b6e5bb97e6b0645c85262ca6a784316195d461ce8d8411999bf80449227
24
25depends_lib         port:gettext \
26                    port:libiconv \
27                    port:ncurses
28
29configure.env       SSLDIR=${prefix}
30configure.args      --with-lib-path=${prefix}/lib \
31                    --with-include-path=${prefix}/include \
32                    -with-krb5-include-dir=${prefix}/include \
33                    -with-krb5-lib-dir=${prefix}/lib \
34                    -with-ldap-include-dir=${prefix}/include \
35                    -with-ldap-lib-dir=${prefix}/lib \
36                    --with-ssl-include-dir=${prefix}/include/openssl \
37                    --with-ssl-lib-dir=${prefix}/lib \
38                    --with-local-password-cache-method \
39                    --with-debug-level=0 \
40                    --without-krb5 \
41                    --without-ldap \
42                    --without-ssl \
43                    --without-tcl
44
45variant universal {}
46
47use_parallel_build  no
48build.env           SSLTYPE=none
49build.args          CC=${configure.cc} \
50                    EXTRACFLAGS="[get_canonical_archflags cc]" \
51                    EXTRALDFLAGS="[get_canonical_archflags ld]" \
52                    SPECIALS="GSSDIR=${prefix} SSLDIR=${prefix}"
53
54variant passfile description {Enable password files support} {
55    configure.args-delete   --with-local-password-cache-method
56    configure.args-append   --with-passfile=".pine.pwd"
57}
58
59variant kerberos description {Kerberos support} {
60    depends_lib-append      port:cyrus-sasl2
61    configure.args-delete   --without-krb5
62}
63
64variant ldap description {LDAP support} {
65    depends_lib-append      port:openldap
66    configure.args-delete   --without-ldap
67}
68
69variant ssl description {OpenSSL support} {
70    depends_lib-append      path:lib/libssl.dylib:openssl
71    configure.args-delete   --without-ssl
72    build.env-delete        SSLTYPE=none
73}
74
75variant tcl description {Tcl support (required by Alpine Web)} requires ssl {
76    # Should we force use of MacPorts' `tcl` port?
77    configure.args-delete   --without-tcl
78}
79
80default_variants +kerberos +ldap +ssl
81
82
83# ###############################################
84# TODO: Remove after 2016-02-20.
85#
86
87# Deprecate negative variants.
88variant without_krb5 conflicts kerberos description {Legacy variant} {}
89variant without_ldap conflicts ldap description {Legacy variant} {}
90variant without_ssl conflicts ssl description {Legacy variant} {}
91variant without_tcl conflicts tcl description {Legacy variant} {}
92
93# Remove default variants if user has explicitly enabled their inverses.
94if {[variant_isset without_krb5]} {
95    default_variants -kerberos
96}
97if {[variant_isset without_ldap]} {
98    default_variants -ldap
99}
100if {[variant_isset without_ssl]} {
101    default_variants -ssl
102}
103
104# Since +without_tcl used to be set by default, we need to test whether
105# the user set -without_tcl and set +tcl if so. However, if we just
106# checked for -without_tcl, new installs would get +tcl by default,
107# which we don't want. So we should continue setting +without_tcl by
108# default until we remove it.
109
110if {![variant_isset tcl]} {
111    default_variants +without_tcl
112}
113if {![variant_isset without_tcl]} {
114    default_variants +tcl
115}
116
117# ###############################################
Note: See TracBrowser for help on using the repository browser.