aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/libtre
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-03-28 22:54:00 +0800
committerkrion <krion@FreeBSD.org>2004-03-28 22:54:00 +0800
commitf3f0b781bc74b577ac1ec9253c201ec728f5152b (patch)
tree64d80ec4f07b50fedd66168a9ebb15be835d1c0e /textproc/libtre
parenta501881282b4a9b31c5e32daf68b4ded68b60ad2 (diff)
downloadfreebsd-ports-graphics-f3f0b781bc74b577ac1ec9253c201ec728f5152b.tar.gz
freebsd-ports-graphics-f3f0b781bc74b577ac1ec9253c201ec728f5152b.tar.zst
freebsd-ports-graphics-f3f0b781bc74b577ac1ec9253c201ec728f5152b.zip
- Support WITHOUT_NLS
Diffstat (limited to 'textproc/libtre')
-rw-r--r--textproc/libtre/Makefile9
-rw-r--r--textproc/libtre/pkg-plist2
2 files changed, 9 insertions, 2 deletions
diff --git a/textproc/libtre/Makefile b/textproc/libtre/Makefile
index a33771dcc7f..9807c07a4f4 100644
--- a/textproc/libtre/Makefile
+++ b/textproc/libtre/Makefile
@@ -15,7 +15,6 @@ DISTNAME= tre-${PORTVERSION}
MAINTAINER= krion@FreeBSD.org
COMMENT= A lightweight fully POSIX compliant regexp matching library
-USE_GETTEXT= yes
USE_BZIP2= yes
USE_GNOME= gnomehack gnometarget pkgconfig lthack
USE_GETOPT_LONG= yes
@@ -27,6 +26,14 @@ INSTALLS_SHLIB= yes
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib -lintl
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g' ${WRKSRC}/configure
diff --git a/textproc/libtre/pkg-plist b/textproc/libtre/pkg-plist
index 80cc9566cac..2fae2a45f88 100644
--- a/textproc/libtre/pkg-plist
+++ b/textproc/libtre/pkg-plist
@@ -6,5 +6,5 @@ lib/libtre.a
lib/libtre.so
lib/libtre.so.4
libdata/pkgconfig/tre.pc
-share/locale/fi/LC_MESSAGES/tre.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/tre.mo
@dirrm include/tre