mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Support stage
Use options helpers
This commit is contained in:
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
|
@ -8,7 +8,7 @@ CATEGORIES= devel
|
||||||
MASTER_SITES= GNU
|
MASTER_SITES= GNU
|
||||||
|
|
||||||
MAINTAINER= johans@FreeBSD.org
|
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
|
BUILD_DEPENDS= m4>=1.4.16,1:${PORTSDIR}/devel/m4
|
||||||
RUN_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
|
CONFIGURE_ARGS+=--disable-yacc
|
||||||
|
|
||||||
MAN1= bison.1
|
|
||||||
INFO= bison
|
INFO= bison
|
||||||
|
|
||||||
NO_STAGE= yes
|
NLS_USES= gettext
|
||||||
.include <bsd.port.options.mk>
|
NLS_CONFIGURE_ENABLE= nls
|
||||||
|
OPTIONS_SUB= yes
|
||||||
.if ${PORT_OPTIONS:MNLS}
|
|
||||||
USES+= gettext
|
|
||||||
PLIST_SUB+= NLS=""
|
|
||||||
.else
|
|
||||||
CONFIGURE_ARGS+=--disable-nls
|
|
||||||
PLIST_SUB+= NLS="@comment "
|
|
||||||
.endif
|
|
||||||
|
|
||||||
post-extract:
|
post-extract:
|
||||||
@${RM} -f ${WRKSRC}/doc/bison.info*
|
@${RM} -f ${WRKSRC}/doc/bison.info*
|
||||||
@${REINPLACE_CMD} 's/MANS = yacc.1/MANS =/' ${WRKSRC}/doc/Makefile.in
|
@${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++
|
PORTEXAMPLES= calc++
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
${MKDIR} ${EXAMPLESDIR}/calc++
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/calc++
|
||||||
${INSTALL_DATA} ${WRKSRC}/examples/calc++/*.[chly]* \
|
${INSTALL_DATA} ${WRKSRC}/examples/calc++/*.[chly]* \
|
||||||
${EXAMPLESDIR}/calc++
|
${STAGEDIR}${EXAMPLESDIR}/calc++
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
bin/bison
|
bin/bison
|
||||||
|
man/man1/bison.1.gz
|
||||||
share/aclocal/bison-i18n.m4
|
share/aclocal/bison-i18n.m4
|
||||||
%%DATADIR%%/README
|
%%DATADIR%%/README
|
||||||
%%DATADIR%%/bison.m4
|
%%DATADIR%%/bison.m4
|
||||||
|
|
Loading…
Add table
Reference in a new issue