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 | 8109f14f077fd3e138038c09346f27aafc51e78a (patch) | |
tree | 23b501806988562f04bb68521d02d32d791e18be /lang/gcc44 | |
parent | b3ead9f3a586398bb0389ee813857eff4a2ce8e9 (diff) | |
download | pkgsrc-8109f14f077fd3e138038c09346f27aafc51e78a.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')
-rw-r--r-- | lang/gcc44/Makefile | 7 | ||||
-rw-r--r-- | lang/gcc44/options.mk | 24 |
2 files changed, 27 insertions, 4 deletions
diff --git a/lang/gcc44/Makefile b/lang/gcc44/Makefile index 7e01d65d234..d21dcfb214e 100644 --- a/lang/gcc44/Makefile +++ b/lang/gcc44/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.9 2009/09/25 09:37:57 wiz Exp $ +# $NetBSD: Makefile,v 1.10 2009/10/24 20:15:05 tnn Exp $ # DISTNAME= gcc-${GCC_VERSION} PKGNAME= gcc44-${GCC_VERSION} -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= lang MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC_VERSION}/} EXTRACT_SUFX= .tar.bz2 @@ -36,6 +36,7 @@ NOT_FOR_PLATFORM= Interix-*-* UNLIMIT_RESOURCES+= datasize .include "../../mk/bsd.prefs.mk" +.include "options.mk" # Determine whether to use binutils @@ -169,8 +170,6 @@ GENERATE_PLIST+= \ cd ${DESTDIR}${PREFIX} && ${FIND} ${GCC_SUBPREFIX} \( -type f -o -type l \) -print \ | ${SORT} ; -.include "../../converters/libiconv/buildlink3.mk" -.include "../../devel/gettext-lib/buildlink3.mk" .include "../../devel/gmp/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" .include "../../math/mpfr/buildlink3.mk" 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 |