diff options
author | jperkin <jperkin@pkgsrc.org> | 2018-01-12 11:35:28 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2018-01-12 11:35:28 +0000 |
commit | 8589042390f94f08d64230b6e8d360122b7b2346 (patch) | |
tree | 32cc92edfea07c2462ea1153e55fa9117770dbc3 | |
parent | 646d3d37fac1050d3160ab27373d51a4b41dbbc7 (diff) | |
download | pkgsrc-8589042390f94f08d64230b6e8d360122b7b2346.tar.gz |
xz: Only enable nls by default if msgfmt is builtin.
Avoids circular dependency issues as xz with nls depends on gettext-tools if
msgfmt comes from pkgsrc, which in turn depends on xz.
-rw-r--r-- | archivers/xz/options.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/archivers/xz/options.mk b/archivers/xz/options.mk index 9f84ac5e42b..9abc38cf9b6 100644 --- a/archivers/xz/options.mk +++ b/archivers/xz/options.mk @@ -1,8 +1,14 @@ -# $NetBSD: options.mk,v 1.4 2017/09/20 12:05:46 jperkin Exp $ +# $NetBSD: options.mk,v 1.5 2018/01/12 11:35:28 jperkin Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.xz PKG_SUPPORTED_OPTIONS= nls + +# Only add nls as a default option if msgfmt is builtin, otherwise there +# are circular dependency issues with xz -> gettext-tools -> xz. +.include "../../mk/bsd.prefs.mk" +.if exists(${TOOLS_PLATFORM.msgfmt}) PKG_SUGGESTED_OPTIONS= nls +.endif .include "../../mk/bsd.options.mk" @@ -10,6 +16,7 @@ PLIST_VARS+= nls .if !empty(PKG_OPTIONS:Mnls) USE_PKGLOCALEDIR= yes +USE_TOOLS+= msgfmt PLIST.nls= yes CONFIGURE_ARGS+= --enable-nls .include "../../devel/gettext-lib/buildlink3.mk" |