pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/compiler Backout part of previous commit that was u...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5f889b80a05a
branches:  trunk
changeset: 487316:5f889b80a05a
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Jan 12 17:30:34 2005 +0000

description:
Backout part of previous commit that was unrelated.

diffstat:

 mk/compiler/mipspro.mk |  25 ++++++++++---------------
 mk/compiler/sunpro.mk  |  43 +++++++++++++++++++------------------------
 2 files changed, 29 insertions(+), 39 deletions(-)

diffs (128 lines):

diff -r 2e824fbb827d -r 5f889b80a05a mk/compiler/mipspro.mk
--- a/mk/compiler/mipspro.mk    Wed Jan 12 17:27:50 2005 +0000
+++ b/mk/compiler/mipspro.mk    Wed Jan 12 17:30:34 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mipspro.mk,v 1.32 2005/01/12 17:27:50 jlam Exp $
+# $NetBSD: mipspro.mk,v 1.33 2005/01/12 17:30:34 jlam Exp $
 
 .if !defined(COMPILER_MIPSPRO_MK)
 COMPILER_MIPSPRO_MK=   defined
@@ -7,15 +7,19 @@
 
 MIPSPROBASE?=  /usr
 
-# LANGUAGES.<compiler> is the list of supported languages by the
-# compiler.
-#
-LANGUAGES.mipspro=     # empty
+# LANGUAGES.<compiler> is the list of supported languages by the compiler.
+# _LANGUAGES.<compiler> is ${LANGUAGES.<compiler>} restricted to the ones
+# requested by the package in USE_LANGUAGES.
+# 
+LANGUAGES.mipspro=     c c++
+_LANGUAGES.mipspro=    # empty
+.for _lang_ in ${USE_LANGUAGES}
+_LANGUAGES.mipspro+=   ${LANGUAGES.mipspro:M${_lang_}}
+.endfor
 
 _MIPSPRO_DIR=          ${WRKDIR}/.mipspro
 _MIPSPRO_VARS=         # empty
 .if exists(${MIPSPROBASE}/bin/cc)
-LANGUAGES.mipspro+=    c
 _MIPSPRO_VARS+=                CC
 _MIPSPRO_CC=           ${_MIPSPRO_DIR}/bin/cc
 _ALIASES.CC=           cc
@@ -23,7 +27,6 @@
 PKG_CC:=               ${_MIPSPRO_CC}
 .endif
 .if exists(${MIPSPROBASE}/bin/CC)
-LANGUAGES.mipspro+=    c++
 _MIPSPRO_VARS+=                CXX
 _MIPSPRO_CXX=          ${_MIPSPRO_DIR}/bin/CC
 _ALIASES.CXX=          CC c++
@@ -55,14 +58,6 @@
 _COMPILER_ABI_FLAG.n32=        -n32
 _COMPILER_ABI_FLAG.64= -64
 
-# _LANGUAGES.<compiler> is ${LANGUAGES.<compiler>} restricted to the ones
-# requested by the package in USE_LANGUAGES.
-# 
-_LANGUAGES.mipspro=    # empty
-.for _lang_ in ${USE_LANGUAGES}
-_LANGUAGES.mipspro+=   ${LANGUAGES.mipspro:M${_lang_}}
-.endfor
-
 # Prepend the path to the compiler to the PATH.
 .if !empty(_LANGUAGES.mipspro)
 PREPEND_PATH+= ${_MIPSPRO_DIR}/bin
diff -r 2e824fbb827d -r 5f889b80a05a mk/compiler/sunpro.mk
--- a/mk/compiler/sunpro.mk     Wed Jan 12 17:27:50 2005 +0000
+++ b/mk/compiler/sunpro.mk     Wed Jan 12 17:30:34 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: sunpro.mk,v 1.28 2005/01/12 17:27:50 jlam Exp $
+# $NetBSD: sunpro.mk,v 1.29 2005/01/12 17:30:34 jlam Exp $
 
 .if !defined(COMPILER_SUNPRO_MK)
 COMPILER_SUNPRO_MK=    defined
@@ -7,28 +7,31 @@
 
 SUNWSPROBASE?= /opt/SUNWspro
 
-# LANGUAGES.<compiler> is the list of supported languages by the
-# compiler.
+# LANGUAGES.<compiler> is the list of supported languages by the compiler.
+# _LANGUAGES.<compiler> is ${LANGUAGES.<compiler>} restricted to the ones
+# requested by the package in USE_LANGUAGES.
 #
-LANGUAGES.sunpro=      # empty
+LANGUAGES.sunpro=      c c++
+_LANGUAGES.sunpro=     # empty
+.for _lang_ in ${USE_LANGUAGES}
+_LANGUAGES.sunpro+=    ${LANGUAGES.sunpro:M${_lang_}}
+.endfor
 
 _SUNPRO_DIR=   ${WRKDIR}/.sunpro
 _SUNPRO_VARS=  # empty
 .if exists(${SUNWSPROBASE}/bin/cc)
-LANGUAGES.sunpro+=     c
-_SUNPRO_VARS+=         CC
-_SUNPRO_CC=            ${_SUNPRO_DIR}/bin/cc
-_ALIASES.CC=           cc
-CCPATH=                        ${SUNWSPROBASE}/bin/cc
-PKG_CC:=               ${_SUNPRO_CC}
+_SUNPRO_VARS+= CC
+_SUNPRO_CC=    ${_SUNPRO_DIR}/bin/cc
+_ALIASES.CC=   cc
+CCPATH=                ${SUNWSPROBASE}/bin/cc
+PKG_CC:=       ${_SUNPRO_CC}
 .endif
 .if exists(${SUNWSPROBASE}/bin/CC)
-LANGUAGES.sunpro+=     c++
-_SUNPRO_VARS+=         CXX
-_SUNPRO_CXX=           ${_SUNPRO_DIR}/bin/CC
-_ALIASES.CXX=          CC c++
-CXXPATH=               ${SUNWSPROBASE}/bin/CC
-PKG_CXX:=              ${_SUNPRO_CXX}
+_SUNPRO_VARS+= CXX
+_SUNPRO_CXX=   ${_SUNPRO_DIR}/bin/CC
+_ALIASES.CXX=  CC c++
+CXXPATH=       ${SUNWSPROBASE}/bin/CC
+PKG_CXX:=      ${_SUNPRO_CXX}
 .endif
 _COMPILER_STRIP_VARS+= ${_SUNPRO_VARS}
 
@@ -49,14 +52,6 @@
 CC_VERSION?=           cc: Sun C
 .endif
 
-# _LANGUAGES.<compiler> is ${LANGUAGES.<compiler>} restricted to the
-# ones requested by the package in USE_LANGUAGES.
-#
-_LANGUAGES.sunpro=     # empty
-.for _lang_ in ${USE_LANGUAGES}
-_LANGUAGES.sunpro+=    ${LANGUAGES.sunpro:M${_lang_}}
-.endfor
-
 # Prepend the path to the compiler to the PATH.
 .if !empty(_LANGUAGES.sunpro)
 PREPEND_PATH+= ${_SUNPRO_DIR}/bin



Home | Main Index | Thread Index | Old Index