freebsd-ports/www/hypermail/Makefile
Baptiste Daroussin 638f52af55 Add a patch to configure the snprintf pattern used for the filename of the
archives. by default hypermail uses .4d while pipermail uses .6d.

This configuration switch allows to change hypermail configuration to make it
a drop in replacement for pipermail and not break existing archives links when
switching from pipermail to hypermail.
2020-11-27 10:09:51 +00:00

40 lines
860 B
Makefile

# Created by: mjhsieh
# $FreeBSD$
PORTNAME= hypermail
PORTVERSION= 2.4.0
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= www mail
MAINTAINER= bapt@FreeBSD.org
COMMENT= Program to generate a cross-referenced HTML mail archive
LICENSE= GPLv2
LIB_DEPENDS+= libpcre.so:devel/pcre \
libtrio.so:devel/trio
USES= localbase iconv desthack
USE_GITHUB= yes
GH_ACCOUNT= hypermail-project
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-htmldir=${STAGEDIR}${PREFIX}/share/doc/hypermail \
--without-gdbm \
--with-external-pcre=${LOCALBASE}/bin/pcre-config \
--enable-system-libtrio
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -L${LOCALBASE}/lib"
MAKE_ARGS= INSTALL_PROG=${INSTALL}
OPTIONS_DEFINE= DOCS
post-install:
${STRIP_CMD} ${STAGEDIR}/${PREFIX}/bin/hypermail \
${STAGEDIR}/${PREFIX}/bin/msg2archive \
${STAGEDIR}/${PREFIX}/bin/rdmsg
.include <bsd.port.mk>