Ticket #33222: Portfile

File Portfile, 7.8 KB (added by kchr@…, 12 years ago)

mutt-devel Portfile, revision 1

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 96210 2012-08-04 13:31:23Z cal@macports.org $
3
4PortSystem          1.0
5
6name                mutt-devel
7version             1.5.21
8revision            3
9categories          mail
10platforms           darwin
11license             GPL-2
12maintainers         mnick openmaintainer
13description         Mongrel of Mail User Agents (part Elm, Pine, Mush, mh, etc)
14long_description    Mutt -- "The Mongrel of Mail User Agents" (part Elm, \
15                    part Pine, part mh, part slrn, part everything else) is \
16                    an interactive screen-oriented mailer program that \
17                    supersedes Elm, Pine, mail and mailx.  Features include \
18                    color support, message threading, MIME support \
19                    (including RFC1522 support for encoded headers), \
20                    customizable key bindings, POP3, Delivery Status \
21                    Notification (DSN) support, PGP/MIME, and S/MIME.
22
23homepage            http://www.mutt.org/
24master_sites        ftp://ftp.mutt.org/mutt/devel/ \
25                    sourceforge:project/mutt/mutt-dev
26distname            mutt-${version}
27checksums           ${distfiles} \
28                    md5     a29db8f1d51e2f10c070bf88e8a553fd \
29                    sha1    a8475f2618ce5d5d33bff85c0affdf21ab1d76b9 \
30                    rmd160  b235a42972ae410592253cdc117a90baf279f47a
31
32depends_lib         port:gettext \
33                    port:libiconv \
34                    port:ncurses
35
36patch.args          -p1
37# upstream changeset to fix segfault, ticket #28269
38patchfiles          1a4c43138685.diff
39# upstream changeset to fix build with automake 1.12, ticket #34296
40patchfiles-append   0488deb39a35.diff
41
42configure.args      --disable-warnings \
43                    --mandir=${prefix}/share/man \
44                    --with-docdir=${prefix}/share/doc/mutt \
45                    --with-libiconv-prefix=${prefix} \
46                    --with-curses=${prefix}
47
48default_variants    +pop +imap
49
50
51if {![variant_isset db4] && ![variant_isset qdbm] && ![variant_isset tokyocabinet]} {
52        variant_set gdbm
53}
54
55# These variants' patches modify Makefile.am
56if {[variant_isset compress] || [variant_isset sidebar]} {
57    use_autoreconf  yes
58}
59
60variant idn description {Internationalized Domain Name support} {
61    configure.args-append   --with-idn=${prefix}
62    depends_lib-append      port:libidn port:zlib
63}
64
65variant pop description {POP support} {
66    configure.args-append   --enable-pop
67}
68variant imap description {IMAP support} {
69    configure.args-append   --enable-imap
70}
71variant ssl description {Secure Sockets Layer support} {
72    configure.args-append   --with-ssl=${prefix}
73    depends_lib-append      port:openssl
74}
75variant sasl description {Simple Authentication and Security Layer support} {
76    configure.args-append   --with-sasl=${prefix}
77    depends_lib-append      port:cyrus-sasl2
78}
79
80variant debug description {Debugging support} {
81    configure.args-append   --enable-debug
82}
83
84variant gnuregex description {Use the GNU regular expression library} {
85    configure.args-append   --with-regex
86}
87
88variant compress description {Compressed folders} {
89    configure.args-append   --enable-compressed
90    patch_sites-append      http://www.mutt.org.ua/download/mutt-1.5.21/
91    patchfiles-append       patch-1.5.21.rr.compressed.gz
92    checksums-append        patch-1.5.21.rr.compressed.gz md5 \
93                                0632fd94c96b3e452144b730e3cf0fd3
94}
95
96variant headercache conflicts db4 description {Enable header caching (requires gdbm, qdbm, or tokyocabinet)} {
97    configure.args-append       --enable-hcache
98    configure.ldflags-append    "-L/usr/lib"
99}
100
101variant qdbm conflicts db4 gdbm tokyocabinet description {Use QDBM database} {
102    depends_lib-append      port:qdbm
103    configure.args-append   --with-qdbm --without-bdb --without-gdbm --without-tokyocabinet
104}
105
106variant gdbm conflicts db4 qdbm tokyocabinet description {Use GNU dbm database} {
107    depends_lib-append      port:gdbm
108    configure.args-append   --with-gdbm --without-bdb --without-qdbm --without-tokyocabinet
109}
110
111variant db4 conflicts qdbm gdbm tokyocabinet description {Use Berkeley DB database} {
112    depends_lib-append          port:db44
113    configure.args-append       --with-bdb=${prefix} --without-qdbm --without-gdbm --without-tokyocabinet
114    configure.cppflags-append   "-I${prefix}/include/db44"
115    configure.ldflags-append    "-L${prefix}/lib/db44"
116}
117
118variant tokyocabinet conflicts db4 gdbm qdbm description {Use Tokyo Cabinet database} {
119    depends_lib-append      port:tokyocabinet
120    configure.args-append   --enable-tokyocabinet --without-bdb --without-gdbm --without-qdbm
121}
122
123# The patches for nntp and sidebar conflict, see ticket #15135
124variant nntp conflicts sidebar description {NNTP support} {
125    configure.args-append   --enable-nntp
126    patch_sites-append      http://www.mutt.org.ua/download/mutt-1.5.21/
127    patchfiles-append       patch-1.5.21.vvv.nntp.gz
128    checksums-append        patch-1.5.21.vvv.nntp.gz md5 \
129                                afcf40f7e53a016b953cbf6af27b3cd8
130}
131
132variant deepif description {Allow nested if-else sequences in strings} {
133    patch_sites-append      http://home.uchicago.edu/~dgc/sw/mutt/
134    patchfiles-append       patch-1.5.8.dgc.deepif.1
135    checksums-append        patch-1.5.8.dgc.deepif.1 md5 \
136                                b892597eff7b60c450b48c011ab941cb
137}
138
139# whoa! messy FAIL
140#variant unbind description {Undo stroke and macro bindings} {
141#    patch_sites-append      http://home.uchicago.edu/~dgc/sw/mutt/
142#    patchfiles-append       patch-1.5.6.dgc.unbind.1
143#    checksums-append        patch-1.5.6.dgc.unbind.1 md5 \
144#                                47a1f47382b33f4cc5ce89de1cfea4e1
145#}
146
147variant date_conditional requires deepif description \
148    {Allow the format of dates in the index to vary based on how recent the message is} {
149    # original, but now dgc hosts it with -p1
150    #patch_sites-append http://www.schrab.com/aaron/mutt/
151    patch_sites-append      http://home.uchicago.edu/~dgc/sw/mutt/
152    patchfiles-append       patch-1.5.8.ats.date_conditional.1
153    checksums-append        patch-1.5.8.ats.date_conditional.1 md5 \
154                                83479a011390802b3f9f1c0f95b15199
155}
156
157variant xlabel description {Custom message-tagging - X-Label:} {
158    patchfiles-append       patch-1.5.21.mp.xlabel_ext.9
159}
160
161# patch_site appears to be dead, can re-enable the variant if a working one is found
162#variant checkseen {
163#    patch_sites-append      http://www.neuronix.cz/coding/mutt_imap/
164#    patchfiles-append       imap_checkseen_1.5.11.patch
165#    checksums-append        imap_checkseen_1.5.11.patch md5 \
166#                                37e49d7203149027e30e28a7bc74c365
167#}
168
169variant smtp description {Include internal SMTP relay support} {
170    configure.args-append   --enable-smtp
171}
172
173variant sidebar conflicts nntp description {Add a sidebar with a list of folders} {
174    # http://www.lunar-linux.org/index.php/en/component/content/article/44-mutt-sidebar.html
175    # "official" patch doesn't apply, use debians
176    patchfiles-append       patch-1.5.21-6.2.debian.sidebar.diff
177}
178
179variant trash description {Add a Trash folder} {
180    patchfiles-append       patch-1.5.20.bk.trash_folder-purge_message.1
181}
182
183variant gpgme description {Enable GPGME crypto support} {
184    configure.args-append   --enable-gpgme --with-gpgme-prefix=${prefix}
185    depends_lib-append      port:gpgme
186    # the following patch makes mutt 1.5.20 compatible with gpgme 1.2.0,
187    # cf. http://bugs.gentoo.org/show_bug.cgi?id=278394
188    # and http://dev.mutt.org/trac/ticket/3300
189    patchfiles-append         patch-1.5.20.gpgme.diff
190    checksums-append       patch-1.5.20.gpgme.diff md5 \
191                                 6faa84e2520dad7c603e8a8b9e0a9b30
192}
193
194livecheck.type      regex
195livecheck.regex     {Mutt (\d+(?:\.\d+)*) was released}