Ticket #24212: Portfile

File Portfile, 2.2 KB (added by todmorrison (Tod Morrison), 15 years ago)

Alpine Portfile with universal variant support

Line 
1# $Id$
2
3PortSystem 1.0
4
5name    alpine
6version 2.00
7revision 1
8categories  mail
9maintainers gmail.com:todmorrison
10description alpine - a Program for Internet News and Email
11homepage  http://www.washington.edu/alpine/
12platforms darwin
13use_parallel_build  no
14
15long_description Alpine is a tool for reading, sending, and managing \
16  electronic messages that was designed with novice users in mind.
17
18distname ${name}
19master_sites  ftp://ftp.cac.washington.edu/alpine/ \
20  ftp://ftp.cac.washington.edu/alpine/old/
21checksums  md5 84e44cbf71ed674800a5d57eed9c1c52
22use_bzip2  yes
23
24worksrcdir ${distname}-${version}
25
26platform darwin 10 {
27  patchfiles alpine-osx-10.6.patch
28  patch.pre_args -p1
29}
30
31default_variants +without_tcl
32
33depends_lib \
34  port:openssl \
35  port:libiconv \
36  port:gettext \
37  port:openldap \
38  port:ncurses \
39  port:cyrus-sasl2
40
41configure.env \
42  SSLDIR=${prefix}
43
44configure.args \
45  -with-lib-dir=${prefix}/lib \
46  -with-include-dir=${prefix}/include \
47  -with-krb5-include-dir=${prefix}/include \
48  -with-krb5-lib-dir=${prefix}/lib \
49  -with-ldap-include-dir=${prefix}/include \
50  -with-ldap-lib-dir=${prefix}/lib \
51  -with-ssl-include-dir=${prefix}/include \
52  -with-ssl-lib-dir=${prefix}/lib \
53  --with-local-password-cache-method \
54  --with-debug-level=0
55
56build.args \
57  C_CLIENT_SPECIALS="GSSLIB=/${prefix}/lib SSLDIR=${prefix}"
58
59variant without_krb5 description {Disable Kerberos5 support} {
60  depends_lib-delete port:cyrus-sasl2
61  configure.args-append --without-krb5
62}
63
64variant without_ldap description {Disable LDAP support} {
65  depends_lib-delete port:openldap
66  configure.args-append --without-ldap
67}
68
69variant without_ssl description {Disable SSL support} {
70  depends_lib-delete port:openssl
71  configure.args-append --without-ssl
72  build.env-append SSLTYPE=none
73}
74
75variant without_tcl description {Disable TCL support (disables Alpine Web)} {
76  configure.args-append --without-tcl
77}
78
79variant passfile description {Enable password files support} {
80  configure.args-delete --with-local-password-cache-method
81  configure.args-append --with-passfile=".pine.pwd"
82}
83
84variant universal {
85  build.args-append \
86    EXTRACFLAGS="${configure.universal_cflags}" \
87    EXTRALDFLAGS="${configure.universal_ldflags}"
88}