pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/gcc44 Turn native language support into an option...
details: https://anonhg.NetBSD.org/pkgsrc/rev/46e944cef7d8
branches: trunk
changeset: 400689:46e944cef7d8
user: tnn <tnn%pkgsrc.org@localhost>
date: Sat Oct 24 20:15:05 2009 +0000
description:
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:
lang/gcc44/Makefile | 7 +++----
lang/gcc44/options.mk | 24 ++++++++++++++++++++++++
2 files changed, 27 insertions(+), 4 deletions(-)
diffs (60 lines):
diff -r 2e86d8d6a18f -r 46e944cef7d8 lang/gcc44/Makefile
--- a/lang/gcc44/Makefile Sat Oct 24 17:05:15 2009 +0000
+++ b/lang/gcc44/Makefile Sat Oct 24 20:15:05 2009 +0000
@@ -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 @@
UNLIMIT_RESOURCES+= datasize
.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
# Determine whether to use binutils
@@ -169,8 +170,6 @@
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 -r 2e86d8d6a18f -r 46e944cef7d8 lang/gcc44/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc44/options.mk Sat Oct 24 20:15:05 2009 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index