Ticket #1054: Portfile

File Portfile, 1.3 KB (added by blb@…, 21 years ago)

Portfile

Line 
1# $Id: Portfile,v 1.2 2003/08/05 09:29:18 jkh Exp $
2PortSystem      1.0
3name            hypermail
4version         2.1.8
5categories      mail textproc
6maintainers     blb@pobox.com
7description     Hypermail, mail to cross-referenced HTML converter
8long_description        Hypermail is a program that takes a file of mail messages in UNIX mailbox \
9                        format and generates a set of cross-referenced HTML documents.
10
11homepage        http://www.hypermail.org/
12
13master_sites    http://www.hypermail.org/dist/
14
15platforms       darwin
16checksums       md5 bacd95589f2f3ca426631461fd9237dd
17
18# Rename INSTALL as make gets confused otherwise (on HFS+ where INSTALL and
19# install are the same file)
20post-patch {
21                system "mv ${worksrcpath}/INSTALL ${worksrcpath}/INSTALL.txt"
22}
23
24configure.env   CFLAGS="-no-cpp-precomp -I${prefix}/include -L${prefix}/lib"
25# enable-static/disable-shared are here as they need to be passed to the
26# internal PCRE stuff, otherwise it'll build PCRE shared, but not install
27# which is a bit bad...
28configure.args  --enable-static --disable-shared --without-gdbm \
29                --mandir=\\\${prefix}/share/man \
30                --with-cgidir=\\\${prefix}/share/hypermail/cgi-bin \
31                --with-htmldir=\\\${prefix}/share/doc/hypermail \
32
33destroot.args   prefix=${destroot}/${prefix}
34
35variant gdbm {  depends_lib     lib:libgdbm:gdbm
36                configure.args-delete   --without-gdbm
37                configure.args-append   --with-gdbm=${prefix}
38}
39