- Convert to OPTIONSng

This commit is contained in:
Pietro Cerutti 2013-03-11 08:28:30 +00:00
parent b32b020217
commit 37511bb87c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=313861

View file

@ -66,18 +66,19 @@ NOCCACHE= yes
PLIST_SUB= PORTVERSION=${PORTVERSION}
.include <bsd.port.pre.mk>
.include <bsd.port.options.mk>
.if defined(WITHOUT_NLS)
PLIST_SUB+= NLS="@comment "
.else
.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
post-patch:
${REINPLACE_CMD} -e 's|<FlexLexer.h>|"/usr/include/FlexLexer.h"|' \
${WRKSRC}/lily/include/includable-lexer.hh
.if defined(WITHOUT_NLS)
${REINPLACE_CMD} -e '/^PO_FILES/s|= |= #|' ${WRKSRC}/${MAKEFILE}
.if empty(${PORT_OPTIONS:MNLS})
${REINPLACE_CMD} -e '/^PO_FILES/s|= |= #|' ${WRKSRC}/${MAKEFILE}.in
.endif
post-install: