1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/www/hypermail/Makefile
Baptiste Daroussin 37df768b48 Somehow the configure script does not respect LDFLAGS or LIBS therefore
enforce -L in the cflags to allow the linker to find the libraries in localbase
to be able to link with them.

This fixes libtrio detection

Reported by:	leres@
2020-09-03 13:44:55 +00:00

40 lines
845 B
Makefile

# Created by: mjhsieh
# $FreeBSD$
PORTNAME= hypermail
PORTVERSION= 2.4.0
DISTVERSIONPREFIX= v
CATEGORIES= www mail
MAINTAINER= ports@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>