pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/compiler Reorder some lines so that a default defin...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f1bb8d2f6da2
branches: trunk
changeset: 467973:f1bb8d2f6da2
user: jlam <jlam%pkgsrc.org@localhost>
date: Mon Feb 09 05:22:43 2004 +0000
description:
Reorder some lines so that a default definition for some variables is
present in global context.
diffstat:
mk/compiler/gcc.mk | 27 ++++++++++++++-------------
1 files changed, 14 insertions(+), 13 deletions(-)
diffs (61 lines):
diff -r a8ee2b6c61a9 -r f1bb8d2f6da2 mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk Mon Feb 09 04:52:10 2004 +0000
+++ b/mk/compiler/gcc.mk Mon Feb 09 05:22:43 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.48 2004/02/09 00:37:32 jlam Exp $
+# $NetBSD: gcc.mk,v 1.49 2004/02/09 05:22:43 jlam Exp $
.if !defined(COMPILER_GCC_MK)
COMPILER_GCC_MK= one
@@ -102,16 +102,23 @@
. endif
. endfor
+# Assume by default that GCC will only provide a C compiler.
+LANGUAGES.gcc?= c
+. if !empty(_NEED_GCC2:M[yY][eE][sS])
+LANGUAGES.gcc= c c++ fortran objc
+. elif !empty(_NEED_GCC3:M[yY][eE][sS])
+LANGUAGES.gcc= c c++ fortran java objc
+. endif
+_LANGUAGES.gcc= # empty
+. for _lang_ in ${USE_LANGUAGES}
+_LANGUAGES.gcc+= ${LANGUAGES.gcc:M${_lang_}}
+. endfor
+
. if !empty(_NEED_GCC2:M[yY][eE][sS])
#
# We require gcc-2.x in the lang/gcc directory.
#
_GCC_PKGBASE= gcc
-LANGUAGES.gcc= c c++ fortran objc
-_LANGUAGES.gcc= # empty
-. for _lang_ in ${USE_LANGUAGES}
-_LANGUAGES.gcc+= ${LANGUAGES.gcc:M${_lang_}}
-. endfor
. if !empty(PKGPATH:Mlang/gcc)
_IGNORE_GCC= yes
MAKEFLAGS+= _IGNORE_GCC=yes
@@ -128,11 +135,6 @@
# We require gcc-3.x in the lang/gcc3-* directories.
#
_GCC_PKGBASE= gcc3-c
-LANGUAGES.gcc= c c++ fortran java objc
-_LANGUAGES.gcc= # empty
-. for _lang_ in ${USE_LANGUAGES}
-_LANGUAGES.gcc+= ${LANGUAGES.gcc:M${_lang_}}
-. endfor
. if !empty(PKGPATH:Mlang/gcc3-c)
_IGNORE_GCC= yes
MAKEFLAGS+= _IGNORE_GCC=yes
@@ -170,9 +172,8 @@
. endif
. if !defined(_USE_PKGSRC_GCC)
-. if !empty(_IS_BUILTIN_GCC:M[nN][oO])
_USE_PKGSRC_GCC= YES
-. else
+. if !empty(_IS_BUILTIN_GCC:M[yY][eE][sS])
_GCC_TEST_DEPENDS= gcc>=${_GCC_REQD}
_USE_PKGSRC_GCC!= \
if ${PKG_ADMIN} pmatch '${_GCC_TEST_DEPENDS}' ${_GCC_PKG}; then \
Home |
Main Index |
Thread Index |
Old Index