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

Last change on this file since 95899 was 95899, checked in by jmr@…, 7 years ago

correct license formatting

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 95899 2012-07-26 10:56:29Z jmr@macports.org $
3
4PortSystem 1.0
5
6name    alpine
7version 2.00
8revision 4
9categories  mail
10license     Apache-2
11maintainers nomaintainer
12description alpine - a Program for Internet News and Email
13homepage  http://www.washington.edu/alpine/
14platforms darwin
15use_parallel_build  no
16
17long_description Alpine is a tool for reading, sending, and managing \
18  electronic messages that was designed with novice users in mind.
19
20master_sites  ftp://ftp.cac.washington.edu/alpine/ \
21  ftp://ftp.cac.washington.edu/alpine/old/
22checksums  md5 84e44cbf71ed674800a5d57eed9c1c52
23use_bzip2  yes
24
25patchfiles patch-Makefile.in.diff \
26           patch-configure.diff \
27           patch-imap_Makefile.diff
28patch.pre_args -p1
29
30if {${os.platform} == "darwin" && ${os.major} >= 10} {
31  patchfiles-append alpine-osx-10.6.patch
32}
33
34post-patch {
35    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/imap/Makefile
36}
37
38default_variants +without_tcl
39
40depends_lib \
41  port:openssl \
42  port:libiconv \
43  port:gettext \
44  port:openldap \
45  port:ncurses \
46  port:cyrus-sasl2
47
48configure.env \
49  SSLDIR=${prefix}
50
51configure.args \
52  -with-lib-dir=${prefix}/lib \
53  -with-include-dir=${prefix}/include \
54  -with-krb5-include-dir=${prefix}/include \
55  -with-krb5-lib-dir=${prefix}/lib \
56  -with-ldap-include-dir=${prefix}/include \
57  -with-ldap-lib-dir=${prefix}/lib \
58  --with-ssl-include-dir=${prefix}/include/openssl \
59  --with-ssl-lib-dir=${prefix}/lib \
60  --with-local-password-cache-method \
61  --with-debug-level=0
62
63variant universal {}
64
65build.args \
66  CC=${configure.cc} \
67  EXTRACFLAGS="[get_canonical_archflags cc]" \
68  EXTRALDFLAGS="[get_canonical_archflags ld]" \
69  SPECIALS="GSSDIR=${prefix} SSLDIR=${prefix}"
70
71variant without_krb5 description {Disable Kerberos5 support} {
72  depends_lib-delete port:cyrus-sasl2
73  configure.args-append --without-krb5
74}
75
76variant without_ldap description {Disable LDAP support} {
77  depends_lib-delete port:openldap
78  configure.args-append --without-ldap
79}
80
81variant without_ssl description {Disable SSL support} {
82  depends_lib-delete port:openssl
83  configure.args-append --without-ssl
84  build.env-append SSLTYPE=none
85}
86
87variant without_tcl description {Disable TCL support (disables Alpine Web)} {
88  configure.args-append --without-tcl
89}
90
91variant passfile description {Enable password files support} {
92  configure.args-delete --with-local-password-cache-method
93  configure.args-append --with-passfile=".pine.pwd"
94}
Note: See TracBrowser for help on using the repository browser.