summaryrefslogtreecommitdiff
path: root/archivers/xz
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2015-10-03 12:28:45 +0000
committertnn <tnn@pkgsrc.org>2015-10-03 12:28:45 +0000
commit0ff4e32c94748ce6557124928235079735b5ce00 (patch)
tree021df81e152632ca22a360e6ab8e2171f9674b21 /archivers/xz
parentfcf4ab79b139e06bba75bd1ebe4f1603f893b5fd (diff)
downloadpkgsrc-0ff4e32c94748ce6557124928235079735b5ce00.tar.gz
Try to resolve circular dependency between xz and gettext; don't suggest
to enable the nls option by default if gettext is not builtin. Also, the nls option needs the msg* tools.
Diffstat (limited to 'archivers/xz')
-rw-r--r--archivers/xz/options.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/archivers/xz/options.mk b/archivers/xz/options.mk
index eb560bda2e2..00a6a5f6c6e 100644
--- a/archivers/xz/options.mk
+++ b/archivers/xz/options.mk
@@ -1,8 +1,15 @@
-# $NetBSD: options.mk,v 1.1 2014/10/12 13:07:11 bsiegert Exp $
+# $NetBSD: options.mk,v 1.2 2015/10/03 12:28:45 tnn Exp $
+
+CHECK_BUILTIN.gettext:=yes
+.include "../../devel/gettext-lib/builtin.mk"
+CHECK_BUILTIN.gettext:=no
PKG_OPTIONS_VAR= PKG_OPTIONS.xz
PKG_SUPPORTED_OPTIONS= nls
-PKG_SUGGESTED_OPTIONS= nls
+PKG_SUGGESTED_OPTIONS=
+.if !empty(USE_BUILTIN.gettext:M[yY][eE][sS])
+PKG_SUGGESTED_OPTIONS+= nls
+.endif
.include "../../mk/bsd.options.mk"
@@ -11,6 +18,7 @@ PLIST_VARS+= nls
.if !empty(PKG_OPTIONS:Mnls)
PLIST.nls= yes
CONFIGURE_ARGS+= --enable-nls
+USE_TOOLS+= msgfmt msgmerge xgettext
.include "../../devel/gettext-lib/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-nls