diff options
-rw-r--r-- | editors/ssed/Makefile | 9 | ||||
-rw-r--r-- | editors/ssed/pkg-plist | 18 | ||||
-rw-r--r-- | graphics/libexif/Makefile | 9 | ||||
-rw-r--r-- | graphics/libexif/pkg-plist | 6 |
4 files changed, 28 insertions, 14 deletions
diff --git a/editors/ssed/Makefile b/editors/ssed/Makefile index e1ec6be1..808194c 100644 --- a/editors/ssed/Makefile +++ b/editors/ssed/Makefile @@ -17,10 +17,17 @@ COMMENT= Super-sed is a heavily enhanced version of sed LIB_DEPENDS= iconv:${PORTSDIR}/converters/libiconv -USE_GETTEXT= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} --program-prefix=s MAN1= ssed.1 +.if !defined(WITHOUT_NLS) +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+=--disable-nls +PLIST_SUB+= NLS="@comment " +.endif + .include <bsd.port.mk> diff --git a/editors/ssed/pkg-plist b/editors/ssed/pkg-plist index 1c2f907..a7c90bb 100644 --- a/editors/ssed/pkg-plist +++ b/editors/ssed/pkg-plist @@ -1,10 +1,10 @@ bin/ssed -share/locale/nl/LC_MESSAGES/ssed.mo -share/locale/fr/LC_MESSAGES/ssed.mo -share/locale/ru/LC_MESSAGES/ssed.mo -share/locale/de/LC_MESSAGES/ssed.mo -share/locale/it/LC_MESSAGES/ssed.mo -share/locale/el/LC_MESSAGES/ssed.mo -share/locale/sk/LC_MESSAGES/ssed.mo -share/locale/pt_BR/LC_MESSAGES/ssed.mo -share/locale/sv/LC_MESSAGES/ssed.mo +%%NLS%%share/locale/nl/LC_MESSAGES/ssed.mo +%%NLS%%share/locale/fr/LC_MESSAGES/ssed.mo +%%NLS%%share/locale/ru/LC_MESSAGES/ssed.mo +%%NLS%%share/locale/de/LC_MESSAGES/ssed.mo +%%NLS%%share/locale/it/LC_MESSAGES/ssed.mo +%%NLS%%share/locale/el/LC_MESSAGES/ssed.mo +%%NLS%%share/locale/sk/LC_MESSAGES/ssed.mo +%%NLS%%share/locale/pt_BR/LC_MESSAGES/ssed.mo +%%NLS%%share/locale/sv/LC_MESSAGES/ssed.mo 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 |