freebsd-ports/news/c-nocem/Makefile
Dirk Meyer 8e450647cb - use STAGEDIR
- USES=gmake
2013-12-01 18:33:26 +00:00

40 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= c-nocem
PORTVERSION= 3.7
PORTREVISION= 4
CATEGORIES= news security
MASTER_SITES= http://sites.inka.de/~bigred/sw/ \
ftp://ftp.dinoex.de/pub/FreeBSD/distfiles/
MAINTAINER= dinoex@FreeBSD.org
COMMENT= NoCeM for C News and INN
FETCH_DEPENDS= ${DISTDIR}/c-news/c-news.tar.Z:${PORTSDIR}/${CNEWS_PORT}:checksum
BUILD_DEPENDS= ${CNEWSWRK}/conf/substitutions:${PORTSDIR}/${CNEWS_PORT}:configure
BUILD_DEPENDS+= ${LOCALBASE}/lib/libcnews.a:${PORTSDIR}/${CNEWS_PORT} \
gpgv:${PORTSDIR}/security/gnupg1
USES= perl5 gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-cnews=${CNEWSWRK}
CONFIGURE_ENV+= PERL=${PERL}
WRKSRC= ${WRKDIR}/c-nocem
PLIST_SUB+= NEWSBIN=${NEWSBIN:S=${PREFIX}/==}
PLIST_FILES= %%NEWSBIN%%/fastcancel %%NEWSBIN%%/c-nocem
CNEWS_PORT?= news/cnews
#CNEWSWRK?= ${WRKDIRPREFIX}${PORTSDIR}/${CNEWS_PORT}/work
# ${.CURDIR}/../.. can be diffrent from ${PORTSDIR}
CNEWSWRK?= ${WRKDIRPREFIX}${.CURDIR}/../../${CNEWS_PORT}/work
NEWSBIN?= ${PREFIX}/libexec/cnews
post-patch:
${REINPLACE_CMD} -e 's|@newsbin@|${STAGEDIR}@newsbin@|' \
${WRKSRC}/Makefile.in
pre-install:
${MKDIR} ${STAGEDIR}${NEWSBIN}
.include <bsd.port.mk>