From e519aa2ec386cba30eeadc4b963ee40c8cb39c6b Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Tue, 28 Jan 2014 08:03:33 +0000 Subject: [PATCH] Support stage Add a EXAMPLES option --- devel/hp48cc/Makefile | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/devel/hp48cc/Makefile b/devel/hp48cc/Makefile index 671f41e102f2..01c368ae8f7a 100644 --- a/devel/hp48cc/Makefile +++ b/devel/hp48cc/Makefile @@ -13,28 +13,25 @@ COMMENT= C-like compiler that translates input code to the HP48 RPL language LICENSE= GPLv2 +OPTIONS_DEFINE= EXAMPLES + USES= bison GNU_CONFIGURE= yes MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" -MAN1= ${PORTNAME}.1 -PLIST_FILES= bin/${PORTNAME} +PLIST_FILES= bin/${PORTNAME} \ + man/man1/${PORTNAME}.1.gz PORTEXAMPLES= * OPTIONS_DEFINE= EXAMPLES -NO_STAGE= yes -.include - post-patch: # Fix the Makefile to unbreak parallel builds @${REINPLACE_CMD} -e 's,(YACC),& -o parser.c, ; \ s,(LEX),& -olexer.c, ; /mv/d' ${WRKSRC}/src/Makefile.in post-install: -.if ${PORT_OPTIONS:MEXAMPLES} - @${MKDIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR} -.endif + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} .include