mirror of
https://git.freebsd.org/ports.git
synced 2025-06-03 20:06:29 -04:00
- Convert to OPTIONSng
This commit is contained in:
parent
b32b020217
commit
37511bb87c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=313861
1 changed files with 6 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue