Ticket #508: Portfile

File Portfile, 1.9 KB (added by blb@…, 22 years ago)

Portfile

Line 
1# $Id: $
2PortSystem              1.0
3name                    hypermail
4version                 2.1.7
5categories              textproc
6maintainers             blb@pobox.com
7description             Hypermail, mail to cross-referenced HTML converter
8
9long_description        \
10Hypermail is a program that takes a file of mail messages in UNIX mailbox \
11format and generates a set of cross-referenced HTML documents.
12
13homepage                http://www.hypermail.org/
14
15master_sites            http://www.hypermail.org/dist/ \
16                        http://distfiles.opendarwin.org/:lt
17
18distfiles-append        ltconfig13:lt ltmain13:lt
19
20platforms               darwin
21checksums               ${distname}${extract.sufx} md5 bbbf059f8e29c4b0d6bbc995567050cd \
22                        ltconfig13 md5 ea53f42a550c9f9e653758a8ed91574e \
23                        ltmain13 md5 e094ae92724c4015dbab97de151c2525
24
25extract.only            ${distname}${extract.sufx}
26patchfiles              patch-msg2archive.c
27
28# Update configure and libtool files; rename INSTALL as make gets confused
29# otherwise (on HFS+ where INSTALL and install are the same file)
30post-patch              {
31                        system "cp ${distpath}/ltconfig13 ${worksrcpath}/src/pcre/ltconfig"
32                        system "cp ${distpath}/ltconfig13 ${worksrcpath}/src/fnv/ltconfig"
33                        system "cp ${distpath}/ltmain13 ${worksrcpath}/src/pcre/ltmain.sh"
34                        system "cp ${distpath}/ltmain13 ${worksrcpath}/src/fnv/ltmain.sh"
35                        system "cp /usr/share/libtool/config.* ${worksrcpath}/src/pcre"
36                        system "cp /usr/share/libtool/config.* ${worksrcpath}/src/fnv"
37                        system "mv ${worksrcpath}/INSTALL ${worksrcpath}/INSTALL.txt"
38}
39
40configure.env           CFLAGS="-L${prefix}/lib"
41configure.args          --with-cgidir=${destroot}/${prefix}/share/hypermail/cgi-bin \
42                        --with-htmldir=${destroot}/${prefix}/share/doc/hypermail \
43                        --without-gdbm
44
45install.args            prefix=${destroot}/${prefix}
46pre-install             {
47                        system "mkdir -p ${destroot}/${prefix}/share/doc/hypermail/images"
48}
49
50variant gdbm            {
51        depends_lib     lib:libgdbm:gdbm
52        configure.args  --with-cgidir=${destroot}/${prefix}/share/hypermail/cgi-bin \
53                        --with-htmldir=${destroot}/${prefix}/share/doc/hypermail \
54                        --with-gdbm=${prefix}
55}
56