diff options
author | ryoon <ryoon@pkgsrc.org> | 2014-04-22 20:49:38 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2014-04-22 20:49:38 +0000 |
commit | ca0308931a8171ba69a17e5fdfaa98bd43a6e6eb (patch) | |
tree | 6baa64590f3bde62009edfc8871f7cac85f81910 /mk/compiler | |
parent | d5c86e6711aaf367412f6b5cde888c199961c3b0 (diff) | |
download | pkgsrc-ca0308931a8171ba69a17e5fdfaa98bd43a6e6eb.tar.gz |
Support per language gcc48 packages
Diffstat (limited to 'mk/compiler')
-rw-r--r-- | mk/compiler/gcc.mk | 44 |
1 files changed, 30 insertions, 14 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk index a9819b0a22e..f6cdc2d6081 100644 --- a/mk/compiler/gcc.mk +++ b/mk/compiler/gcc.mk @@ -1,4 +1,4 @@ -# $NetBSD: gcc.mk,v 1.144 2014/02/04 12:11:57 fhajny Exp $ +# $NetBSD: gcc.mk,v 1.145 2014/04/22 20:49:38 ryoon Exp $ # # This is the compiler definition for the GNU Compiler Collection. # @@ -456,24 +456,40 @@ _USE_GCC_SHLIB?= yes . endif .elif !empty(_NEED_GCC48:M[yY][eE][sS]) # -# We require gcc-4.8.x in the lang/gcc48 directory. +# We require gcc-4.8.x in the lang/gcc48-* directory. # -_GCC_PKGBASE= gcc48 -. if !empty(PKGPATH:Mlang/gcc48) +_GCC_PKGBASE= gcc48-cc++ +. if !empty(PKGPATH:Mlang/gcc48-cc++) _IGNORE_GCC= yes MAKEFLAGS+= _IGNORE_GCC=yes +_IGNORE_GCC48CXX= yes +MAKEFLAGS+= _IGNORE_GCC48CXX=yes +_USE_GCC_SHLIB?= yes . endif -. if !defined(_IGNORE_GCC) && !empty(_LANGUAGES.gcc) -_GCC_PKGSRCDIR= ../../lang/gcc48 -_GCC_DEPENDENCY= gcc48>=${_GCC_REQD}:../../lang/gcc48 -. if !empty(_LANGUAGES.gcc:Mc++) || \ - !empty(_LANGUAGES.gcc:Mfortran) || \ - !empty(_LANGUAGES.gcc:Mfortran77) || \ - !empty(_LANGUAGES.gcc:Mgo) || \ - !empty(_LANGUAGES.gcc:Mobjc) || \ - !empty(_LANGUAGES.gcc:Mobj-c++) +. if !defined(_IGNORE_GCC) && \ + (!empty(_LANGUAGES.gcc:Mc) || !empty(_LANGUAGES.gcc:Mc++)) +_GCC_PKGSRCDIR= ../../lang/gcc48-cc++ +_GCC_DEPENDENCY= gcc48-cc++>=${_GCC_REQD}:../../lang/gcc48-cc++ +. endif +. if !empty(PKGPATH:Mlang/gcc48-fortran) +_IGNORE_GCC48FORTRAN= yes +MAKEFLAGS+= _IGNORE_GCC48FORTRAN=yes +. endif +. if !defined(_IGNORE_GCC48FORTRAN) && \ + (!empty(_LANGUAGES.gcc:Mfortran77) || !empty(_LANGUAGES.gcc:Mfortran)) +_GCC_PKGSRCDIR+= ../../lang/gcc48-fortran +_GCC_DEPENDENCY+= gcc48-fortran>=${_GCC_REQD}:../../lang/gcc48-fortran +_USE_GCC_SHLIB?= yes +. endif +. if !empty(PKGPATH:Mlang/gcc48-objc) +_IGNORE_GCC48OBJC= yes +MAKEFLAGS+= _IGNORE_GCC48OBJC=yes +. endif +. if !defined(_IGNORE_GCC48OBJC) && \ + (!empty(_LANGUAGES.gcc:Mobjc) || !empty(_LANGUAGES.gcc:Mobj-c++)) +_GCC_PKGSRCDIR+= ../../lang/gcc48-objc +_GCC_DEPENDENCY+= gcc48-objc>=${_GCC_REQD}:../../lang/gcc48-objc _USE_GCC_SHLIB?= yes -. endif . endif .elif !empty(_NEED_GCC_AUX:M[yY][eE][sS]) # |