aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2004-03-25 20:16:56 +0800
committerkris <kris@FreeBSD.org>2004-03-25 20:16:56 +0800
commit6da196ee1c48858618c01ded952c5fcab2bda7b3 (patch)
treeb3c92545b419d83877606a6e0a197636a06f739d
parent25d2b0b36e41c43237af93cf1925c03b81647e31 (diff)
downloadfreebsd-ports-gnome-6da196ee1c48858618c01ded952c5fcab2bda7b3.tar.gz
freebsd-ports-gnome-6da196ee1c48858618c01ded952c5fcab2bda7b3.tar.zst
freebsd-ports-gnome-6da196ee1c48858618c01ded952c5fcab2bda7b3.zip
Support WITHOUT_NLS
-rw-r--r--archivers/libcomprex/Makefile9
-rw-r--r--archivers/libcomprex/pkg-plist4
2 files changed, 10 insertions, 3 deletions
diff --git a/archivers/libcomprex/Makefile b/archivers/libcomprex/Makefile
index b453b9655635..6bd7733f5f0b 100644
--- a/archivers/libcomprex/Makefile
+++ b/archivers/libcomprex/Makefile
@@ -22,7 +22,6 @@ LIB_DEPENDS= ltdl.4:${PORTSDIR}/devel/libltdl \
LIB_DEPENDS+= bz2.1:${PORTSDIR}/archivers/bzip2
.endif
-USE_GETTEXT= yes
USE_GNOME= gnomehack gnometarget pkgconfig
USE_LIBTOOL_VER= 13
LIBTOOLFLAGS= # none
@@ -30,6 +29,14 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lintl"
INSTALLS_SHLIB= yes
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
.include <bsd.port.pre.mk>
.include "Makefile.man"
.include <bsd.port.post.mk>
diff --git a/archivers/libcomprex/pkg-plist b/archivers/libcomprex/pkg-plist
index 68dfe52ade20..3451864c3ad2 100644
--- a/archivers/libcomprex/pkg-plist
+++ b/archivers/libcomprex/pkg-plist
@@ -33,8 +33,8 @@ lib/libcomprex.so
lib/libcomprex.so.3
libdata/pkgconfig/libcomprex.pc
share/aclocal/libcomprex.m4
-share/locale/it/LC_MESSAGES/libcomprex.mo
-share/locale/nl/LC_MESSAGES/libcomprex.mo
+%%NLS%%share/locale/it/LC_MESSAGES/libcomprex.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/libcomprex.mo
@dirrm lib/comprex/scheme
@dirrm lib/comprex/archive
@dirrm lib/comprex