mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
Support stage
Add a EXAMPLES option
This commit is contained in:
parent
9e190ba5dc
commit
e519aa2ec3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341508
@ -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 <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>
|
||||
|
Loading…
Reference in New Issue
Block a user