summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-07-10 19:18:46 +0000
committerkrion <krion@FreeBSD.org>2004-07-10 19:18:46 +0000
commit5886fb8ec54689066f2f72e44740b805bd5420d2 (patch)
tree93c1430648e13c595e5f450aa9c447f7de792d2b /graphics
parentf3ce307342532289604b4b22638f46ff8e627ae4 (diff)
downloadFreeBSD-ports-5886fb8ec54689066f2f72e44740b805bd5420d2.zip
FreeBSD-ports-5886fb8ec54689066f2f72e44740b805bd5420d2.tar.gz
Support WITHOUT_NLS
Diffstat (limited to 'graphics')
-rw-r--r--graphics/libexif/Makefile9
-rw-r--r--graphics/libexif/pkg-plist6
2 files changed, 11 insertions, 4 deletions
diff --git a/graphics/libexif/Makefile b/graphics/libexif/Makefile
index 4a3caad..de105cf 100644
--- a/graphics/libexif/Makefile
+++ b/graphics/libexif/Makefile
@@ -15,7 +15,6 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= yinjieh@csie.nctu.edu.tw
COMMENT= Library to read digital camera file meta-data
-USE_GETTEXT= yes
USE_GNOME= gnomehack gnometarget pkgconfig
USE_INC_LIBTOOL_VER=13
USE_REINPLACE= yes
@@ -23,6 +22,14 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-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
+
post-patch:
@${REINPLACE_CMD} -e 's|-g -Wall||g' ${WRKSRC}/configure
diff --git a/graphics/libexif/pkg-plist b/graphics/libexif/pkg-plist
index eaaa0df..c76092e 100644
--- a/graphics/libexif/pkg-plist
+++ b/graphics/libexif/pkg-plist
@@ -12,7 +12,7 @@ lib/libexif.a
lib/libexif.so
lib/libexif.so.10
libdata/pkgconfig/libexif.pc
-share/locale/de/LC_MESSAGES/libexif.mo
-share/locale/es/LC_MESSAGES/libexif.mo
-share/locale/fr/LC_MESSAGES/libexif.mo
+%%NLS%%share/locale/de/LC_MESSAGES/libexif.mo
+%%NLS%%share/locale/es/LC_MESSAGES/libexif.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/libexif.mo
@dirrm include/libexif
OpenPOWER on IntegriCloud