diff options
author | tnn <tnn@pkgsrc.org> | 2009-10-24 20:15:05 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2009-10-24 20:15:05 +0000 |
commit | cb3ad3c7a4bbb1a83fbd658890009ff39145dba0 (patch) | |
tree | 23b501806988562f04bb68521d02d32d791e18be /lang/gcc44/options.mk | |
parent | d9f062064a293225c16d7db79a7945d169dbb2e4 (diff) | |
download | pkgsrc-cb3ad3c7a4bbb1a83fbd658890009ff39145dba0.tar.gz |
Turn native language support into an option and disable it by default
everywhere but on NetBSD (where we know it doesn't add any run-time
dependencies)
Diffstat (limited to 'lang/gcc44/options.mk')
-rw-r--r-- | lang/gcc44/options.mk | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lang/gcc44/options.mk b/lang/gcc44/options.mk new file mode 100644 index 00000000000..70a04919c9e --- /dev/null +++ b/lang/gcc44/options.mk @@ -0,0 +1,24 @@ +# $NetBSD: options.mk,v 1.1 2009/10/24 20:15:05 tnn Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.gcc44 +PKG_SUPPORTED_OPTIONS= nls +PKG_SUGGESTED_OPTIONS= +.if ${OPSYS} == "NetBSD" +PKG_SUGGESTED_OPTIONS+= nls +.endif + +.include "../../mk/bsd.options.mk" + +PLIST_VARS+= nls + +### +### Native Language Support +### +.if !empty(PKG_OPTIONS:Mnls) +PLIST.nls= yes +CONFIGURE_ARGS+= --enable-nls +.include "../../converters/libiconv/buildlink3.mk" +.include "../../devel/gettext-lib/buildlink3.mk" +.else +CONFIGURE_ARGS+= --disable-nls +.endif |