svn commit: r341508 - head/devel/hp48cc
Baptiste Daroussin
bapt at FreeBSD.org
Tue Jan 28 08:03:34 UTC 2014
Author: bapt
Date: Tue Jan 28 08:03:33 2014
New Revision: 341508
URL: http://svnweb.freebsd.org/changeset/ports/341508
QAT: https://qat.redports.org/buildarchive/r341508/
Log:
Support stage
Add a EXAMPLES option
Modified:
head/devel/hp48cc/Makefile
Modified: head/devel/hp48cc/Makefile
==============================================================================
--- head/devel/hp48cc/Makefile Tue Jan 28 07:47:57 2014 (r341507)
+++ head/devel/hp48cc/Makefile Tue Jan 28 08:03:33 2014 (r341508)
@@ -13,28 +13,25 @@ COMMENT= C-like compiler that translates
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 <bsd.port.options.mk>
-
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 <bsd.port.mk>
More information about the svn-ports-all
mailing list