diff options
author | bsiegert <bsiegert@pkgsrc.org> | 2014-10-12 13:07:11 +0000 |
---|---|---|
committer | bsiegert <bsiegert@pkgsrc.org> | 2014-10-12 13:07:11 +0000 |
commit | 82bbe3c1ffec3c0a440348bad22511d682f18302 (patch) | |
tree | 89724d97f97df672342bb65f1e6dd39beb1777e5 | |
parent | 1b5af9269a983a97e611c3258f4ce9ef941d6f70 (diff) | |
download | pkgsrc-82bbe3c1ffec3c0a440348bad22511d682f18302.tar.gz |
Add an nls option to xz that can be disabled, but is on by default. If off,
gettext is not required.
-rw-r--r-- | archivers/xz/Makefile | 7 | ||||
-rw-r--r-- | archivers/xz/PLIST | 12 | ||||
-rw-r--r-- | archivers/xz/options.mk | 17 |
3 files changed, 28 insertions, 8 deletions
diff --git a/archivers/xz/Makefile b/archivers/xz/Makefile index 981544a5e19..1e0a3653346 100644 --- a/archivers/xz/Makefile +++ b/archivers/xz/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.18 2014/10/01 07:13:08 adam Exp $ +# $NetBSD: Makefile,v 1.19 2014/10/12 13:07:11 bsiegert Exp $ DISTNAME= xz-5.0.7 +PKGREVISION= 1 CATEGORIES= archivers MASTER_SITES= http://tukaani.org/xz/ EXTRACT_SUFX= .tar.bz2 @@ -10,6 +11,9 @@ HOMEPAGE= http://tukaani.org/xz/ COMMENT= XZ utilities LICENSE= public-domain AND gnu-gpl-v2 +.include "../../mk/bsd.prefs.mk" +.include "options.mk" + GNU_CONFIGURE= yes USE_LIBTOOL= yes PKGCONFIG_OVERRIDE= src/liblzma/liblzma.pc.in @@ -29,6 +33,5 @@ CONFIGURE_ENV+= ac_cv_have_decl_optreset=no CONFIGURE_ENV+= gl_cv_cc_visibility=no .endif -.include "../../devel/gettext-lib/buildlink3.mk" .include "../../mk/pthread.buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/archivers/xz/PLIST b/archivers/xz/PLIST index e673629676e..ef8226d095e 100644 --- a/archivers/xz/PLIST +++ b/archivers/xz/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.7 2012/07/02 06:16:23 adam Exp $ +@comment $NetBSD: PLIST,v 1.8 2014/10/12 13:07:11 bsiegert Exp $ bin/lzcat bin/lzcmp bin/lzdiff @@ -80,8 +80,8 @@ share/doc/xz/faq.txt share/doc/xz/history.txt share/doc/xz/lzma-file-format.txt share/doc/xz/xz-file-format.txt -share/locale/cs/LC_MESSAGES/xz.mo -share/locale/de/LC_MESSAGES/xz.mo -share/locale/fr/LC_MESSAGES/xz.mo -share/locale/it/LC_MESSAGES/xz.mo -share/locale/pl/LC_MESSAGES/xz.mo +${PLIST.nls}share/locale/cs/LC_MESSAGES/xz.mo +${PLIST.nls}share/locale/de/LC_MESSAGES/xz.mo +${PLIST.nls}share/locale/fr/LC_MESSAGES/xz.mo +${PLIST.nls}share/locale/it/LC_MESSAGES/xz.mo +${PLIST.nls}share/locale/pl/LC_MESSAGES/xz.mo diff --git a/archivers/xz/options.mk b/archivers/xz/options.mk new file mode 100644 index 00000000000..eb560bda2e2 --- /dev/null +++ b/archivers/xz/options.mk @@ -0,0 +1,17 @@ +# $NetBSD: options.mk,v 1.1 2014/10/12 13:07:11 bsiegert Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.xz +PKG_SUPPORTED_OPTIONS= nls +PKG_SUGGESTED_OPTIONS= nls + +.include "../../mk/bsd.options.mk" + +PLIST_VARS+= nls + +.if !empty(PKG_OPTIONS:Mnls) +PLIST.nls= yes +CONFIGURE_ARGS+= --enable-nls +.include "../../devel/gettext-lib/buildlink3.mk" +.else +CONFIGURE_ARGS+= --disable-nls +.endif |