1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

Support stage

Use options helpers
This commit is contained in:
Baptiste Daroussin 2014-01-27 13:35:10 +00:00
parent df0fed0b8a
commit a241cbcc33
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341404
2 changed files with 7 additions and 19 deletions

View File

@ -8,7 +8,7 @@ CATEGORIES= devel
MASTER_SITES= GNU
MAINTAINER= johans@FreeBSD.org
COMMENT= A parser generator from FSF, (mostly) compatible with Yacc
COMMENT= Parser generator from FSF, (mostly) compatible with Yacc
BUILD_DEPENDS= m4>=1.4.16,1:${PORTSDIR}/devel/m4
RUN_DEPENDS= m4>=1.4.16,1:${PORTSDIR}/devel/m4
@ -24,34 +24,21 @@ LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+=--disable-yacc
MAN1= bison.1
INFO= bison
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
OPTIONS_SUB= yes
post-extract:
@${RM} -f ${WRKSRC}/doc/bison.info*
@${REINPLACE_CMD} 's/MANS = yacc.1/MANS =/' ${WRKSRC}/doc/Makefile.in
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} 's/ install-exec-local//' ${WRKSRC}/lib/Makefile.in
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
PORTEXAMPLES= calc++
post-install:
${MKDIR} ${EXAMPLESDIR}/calc++
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/calc++
${INSTALL_DATA} ${WRKSRC}/examples/calc++/*.[chly]* \
${EXAMPLESDIR}/calc++
.endif
${STAGEDIR}${EXAMPLESDIR}/calc++
.include <bsd.port.mk>

View File

@ -1,4 +1,5 @@
bin/bison
man/man1/bison.1.gz
share/aclocal/bison-i18n.m4
%%DATADIR%%/README
%%DATADIR%%/bison.m4