a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 20413 2006-11-03 02:15:03Z jberry@macports.org $
PortSystem 1.0
name hypermail
version 2.1.8
categories mail textproc
maintainers nomaintainer@macports.org
description Hypermail, mail to cross-referenced HTML converter
long_description Hypermail is a program that takes a file of mail \
messages in UNIX mailbox format and generates a set of \
cross-referenced HTML documents.
homepage http://www.hypermail.org
master_sites ${homepage}/dist/
platforms darwin
checksums md5 bacd95589f2f3ca426631461fd9237dd
patchfiles patch-src-proto.h
# Rename INSTALL as make gets confused otherwise (on HFS+ where INSTALL and
# install are the same file)
post-patch {
system "mv ${worksrcpath}/INSTALL ${worksrcpath}/INSTALL.txt"
}
configure.env CFLAGS="-no-cpp-precomp -I${prefix}/include -L${prefix}/lib"
# enable-static/disable-shared are here as they need to be passed to the
# internal PCRE stuff, otherwise it'll build PCRE shared, but not install
# which is a bit bad...
configure.args --enable-static --disable-shared --without-gdbm \
--mandir=\\\${prefix}/share/man \
--with-cgidir=\\\${prefix}/share/hypermail/cgi-bin \
--with-htmldir=\\\${prefix}/share/doc/hypermail \
destroot.args prefix=${destroot}/${prefix}
variant gdbm { depends_lib lib:libgdbm:gdbm
configure.args-delete --without-gdbm
configure.args-append --with-gdbm=${prefix}
}