Ticket #20971: Portfile.2

File Portfile.2, 2.0 KB (added by todmorrison (Tod Morrison), 15 years ago)

Here's another attempt at a working Portfile

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
26default_variants +without_tcl
27
28depends_lib \
29  port:openssl \
30  port:libiconv \
31  port:gettext \
32  port:openldap \
33  port:ncurses \
34  port:cyrus-sasl2
35
36configure.env \
37  SSLDIR=${prefix}
38
39configure.args \
40  -with-lib-dir=${prefix}/lib \
41  -with-include-dir=${prefix}/include \
42  -with-krb5-include-dir=${prefix}/include \
43  -with-krb5-lib-dir=${prefix}/lib \
44  -with-ldap-include-dir=${prefix}/include \
45  -with-ldap-lib-dir=${prefix}/lib \
46  -with-ssl-include-dir=${prefix}/include \
47  -with-ssl-lib-dir=${prefix}/lib \
48  --with-c-client-target=oxp \
49  --with-local-password-cache-method \
50  --with-debug-level=0
51
52build.args \
53  C_CLIENT_SPECIALS="GSSLIB=/${prefix}/lib SSLDIR=${prefix}"
54
55variant without_krb5 description {Disable Kerberos5 support} {
56  depends_lib-delete port:cyrus-sasl2
57  configure.args-append --without-krb5
58}
59
60variant without_ldap description {Disable LDAP support} {
61  depends_lib-delete port:openldap
62  configure.args-append --without-ldap
63}
64
65variant without_ssl description {Disable SSL support} {
66  depends_lib-delete port:openssl
67  configure.args-append --without-ssl
68  build.env-append SSLTYPE=none
69}
70
71variant without_tcl description {Disable TCL support (disables Alpine Web)} {
72  configure.args-append --without-tcl
73}
74
75variant passfile description {Enable password files support} {
76  configure.args-delete --with-local-password-cache-method
77  configure.args-append --with-passfile=".pine.pwd"
78}