summaryrefslogtreecommitdiff
path: root/shells/bash
diff options
context:
space:
mode:
authortriaxx <triaxx@pkgsrc.org>2019-10-24 11:53:13 +0000
committertriaxx <triaxx@pkgsrc.org>2019-10-24 11:53:13 +0000
commit94cd51547d562b232c4e5ec5f4c51044dab7093f (patch)
treef71136e96f2c73788ce9a37439e331187a76b359 /shells/bash
parent40c5f5c1d674188910b55935fa06a264dcae2b20 (diff)
downloadpkgsrc-94cd51547d562b232c4e5ec5f4c51044dab7093f.tar.gz
bash: add missing options.mk
Diffstat (limited to 'shells/bash')
-rw-r--r--shells/bash/options.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/shells/bash/options.mk b/shells/bash/options.mk
new file mode 100644
index 00000000000..bd98b7accf9
--- /dev/null
+++ b/shells/bash/options.mk
@@ -0,0 +1,21 @@
+# $NetBSD: options.mk,v 1.1 2019/10/24 11:53:13 triaxx Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.bash
+PKG_SUPPORTED_OPTIONS= nls
+
+PLIST_VARS+= nls
+
+.include "../../mk/bsd.options.mk"
+
+###
+### NLS support
+###
+.if !empty(PKG_OPTIONS:Mnls)
+USE_PKGLOCALEDIR= yes
+USE_TOOLS+= msgfmt msgmerge xgettext
+CONFIGURE_ARGS+= --enable-nls
+. include "../../devel/gettext-lib/buildlink3.mk"
+PLIST.nls= yes
+.else
+CONFIGURE_ARGS+= --disable-nls
+.endif