freebsd-ports/news/c-nocem/Makefile

48 lines
1.2 KiB
Makefile
Raw Normal View History

# $FreeBSD$
PORTNAME= c-nocem
PORTVERSION= 3.7
2013-09-23 20:54:29 +02:00
PORTREVISION= 4
CATEGORIES= news security
MASTER_SITES= http://sites.inka.de/~bigred/sw/ \
ftp://ftp.dinoex.de/pub/FreeBSD/distfiles/
MAINTAINER= dinoex@FreeBSD.org
2003-02-20 19:26:42 +01:00
COMMENT= NoCeM for C News and INN
2017-01-29 12:06:17 +01:00
LICENSE= PD
FETCH_DEPENDS= ${DISTDIR}/c-news/c-news.tar.Z:${CNEWS_PORT}:checksum
BUILD_DEPENDS= ${CNEWSWRK}/conf/substitutions:${CNEWS_PORT}:configure
BUILD_DEPENDS+= ${LOCALBASE}/lib/libcnews.a:${CNEWS_PORT} \
gpgv:security/gnupg1
2013-12-01 19:33:26 +01:00
USES= perl5 gmake
2013-10-28 07:31:18 +01:00
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-cnews=${CNEWSWRK}
2013-12-01 19:33:26 +01:00
CONFIGURE_ENV+= PERL=${PERL}
WRKSRC= ${WRKDIR}/c-nocem
2013-12-01 19:33:26 +01:00
2013-10-28 07:31:18 +01:00
PLIST_SUB+= NEWSBIN=${NEWSBIN:S=${PREFIX}/==}
PLIST_FILES= %%NEWSBIN%%/fastcancel %%NEWSBIN%%/c-nocem
2013-12-01 19:33:26 +01:00
post-patch:
${REINPLACE_CMD} -e 's|@newsbin@|${STAGEDIR}@newsbin@|' \
${WRKSRC}/Makefile.in
pre-install:
${MKDIR} ${STAGEDIR}${NEWSBIN}
2016-05-16 16:25:31 +02:00
post-install:
${STRIP_CMD} ${STAGEDIR}/${PREFIX}/libexec/cnews/fastcancel
2015-11-21 18:23:43 +01:00
.include <bsd.port.pre.mk>
# CNEWS_PORT can be set in Makefile.local
CNEWS_PORT?= news/cnews
# ${.CURDIR}/../.. can be diffrent from ${PORTSDIR}
CNEWSWRK!= ${MAKE} -C ${.CURDIR}/../../${CNEWS_PORT} -V WRKSRC
NEWSBIN?= ${PREFIX}/libexec/cnews
.include <bsd.port.post.mk>