source: trunk/dports/mail/alpine/Portfile @ 139229

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

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