From 6d9889cee533fe75f7ea8259fc6b04d1556e6dc8 Mon Sep 17 00:00:00 2001 From: Boris Samorodov Date: Mon, 18 Nov 2013 08:09:05 +0000 Subject: [PATCH] . use new LIB_DEPENDS syntax; . USE_GMAKE -> USES=gmake; . incorporate options; . unmute EXAMPLES installation; . support STAGE. --- textproc/chpp/Makefile | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/textproc/chpp/Makefile b/textproc/chpp/Makefile index 9403e552dfe7..1153c2567eb3 100644 --- a/textproc/chpp/Makefile +++ b/textproc/chpp/Makefile @@ -13,9 +13,9 @@ COMMENT= Non-intrusive full-featured text preprocessor LICENSE= GPLv2 -LIB_DEPENDS= gc.1:${PORTSDIR}/devel/boehm-gc +LIB_DEPENDS= libgc.so:${PORTSDIR}/devel/boehm-gc -USE_GMAKE= yes +USES= gmake USE_AUTOTOOLS= autoheader aclocal automake autoconf AUTOMAKE_ARGS= --add-missing --copy --force-missing CONFIGURE_ARGS= --libdir=${PREFIX}/share @@ -25,7 +25,8 @@ LDFLAGS+= -L${LOCALBASE}/lib INFO= chpp -NO_STAGE= yes +OPTIONS_DEFINE= DOCS EXAMPLES + .include .if ${ARCH} != "i386" && ${ARCH} != "amd64" @@ -49,15 +50,11 @@ post-patch: .endfor post-install: -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for file in AUTHORS NEWS README - ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR} .endfor -.endif -.if !defined(NOPORTEXAMPLES) - @${MKDIR} ${EXAMPLESDIR} - @(cd ${WRKSRC}/test && ${COPYTREE_SHARE} . ${EXAMPLESDIR}) -.endif + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/test && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) .include