aboutsummaryrefslogtreecommitdiff
path: root/textproc/flex/Makefile
diff options
context:
space:
mode:
authorJohan van Selst <johans@FreeBSD.org>2009-12-27 23:26:17 +0000
committerJohan van Selst <johans@FreeBSD.org>2009-12-27 23:26:17 +0000
commit36c08e3156f29a8e28b465e873eaa5412561a590 (patch)
tree8ab4b09cd4722f87aa8dfcc8c4363b3477247d09 /textproc/flex/Makefile
parent50ad588962591b0cb324b6e44ef7718012624100 (diff)
downloadports-36c08e3156f29a8e28b465e873eaa5412561a590.tar.gz
ports-36c08e3156f29a8e28b465e873eaa5412561a590.zip
- Enable NLS
- Claim maintainership
Notes
Notes: svn path=/head/; revision=246769
Diffstat (limited to 'textproc/flex/Makefile')
-rw-r--r--textproc/flex/Makefile22
1 files changed, 14 insertions, 8 deletions
diff --git a/textproc/flex/Makefile b/textproc/flex/Makefile
index e07c8b6782be..580d4c222770 100644
--- a/textproc/flex/Makefile
+++ b/textproc/flex/Makefile
@@ -7,11 +7,11 @@
PORTNAME= flex
PORTVERSION= 2.5.35
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= textproc
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= johans@stack.nl
COMMENT= Fast lexical analyzer generator
BUILD_DEPENDS= help2man:${PORTSDIR}/misc/help2man \
@@ -21,17 +21,23 @@ USE_BISON= build
USE_BZIP2= yes
GNU_CONFIGURE= yes
# install flex header to its own dir to avoid conflict with system flex.
-CONFIGURE_ARGS= --disable-nls --includedir=${PREFIX}/include/flex
+CONFIGURE_ARGS= --includedir=${PREFIX}/include/flex
USE_GMAKE= yes
MAN1= flex.1
INFO= flex
-PLIST_FILES= bin/flex include/flex/FlexLexer.h lib/libfl.a lib/libfl_pic.a
-PLIST_DIRS= include/flex
+
+.if !defined(WITHOUT_NLS)
+USE_ICONV= yes
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
post-patch: .SILENT
- ${REINPLACE_CMD} \
- -e 's/po //;s/tests//' ${WRKSRC}/Makefile.in
- ${REINPLACE_CMD} 's/@MAKEINFO@/& --no-split/g' \
+ ${REINPLACE_CMD} -e 's/tests//' ${WRKSRC}/Makefile.in
+ ${REINPLACE_CMD} -e 's/@MAKEINFO@/& --no-split/g' \
${WRKSRC}/doc/Makefile.in
${RM} -f ${WRKSRC}/doc/*.info*