diff options
author | tnn <tnn@pkgsrc.org> | 2015-10-03 12:28:45 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2015-10-03 12:28:45 +0000 |
commit | ec111d968fdb9b7974055353742d893798fdff7f (patch) | |
tree | 021df81e152632ca22a360e6ab8e2171f9674b21 /archivers | |
parent | 5a4d8dedefdcaf2bf3897c90cd8ce5fc4f2f2bc1 (diff) | |
download | pkgsrc-ec111d968fdb9b7974055353742d893798fdff7f.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')
-rw-r--r-- | archivers/xz/options.mk | 12 |
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 |