summaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2002-06-04 21:34:43 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2002-06-04 21:34:43 +0000
commit25f5b84389cf4b7b2e078c85e5679b3bf6511ccf (patch)
tree05d511abae291c548391c831a6e416b19af76224 /Mk
parentUpdate to 1.01, assign the submitter to be the maintainer. (diff)
Add a new way to specify the GCC version your port needs.
Rather than USE_GCCXY, you now use USE_GCC=X.Y Approved by: kris
Notes
Notes: svn path=/head/; revision=60621
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk14
1 files changed, 6 insertions, 8 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index d49194757df1..3c4e44f9bf9f 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -141,9 +141,7 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# compression.
# USE_ZIP - Says that the port distfile uses zip, not tar w/[bg]zip
# for compression.
-# USE_GCC295 - Says that the port requires this version of gcc, either in
-# the system or installed from a port.
-# USE_GCC30 - Says that the port requires this version of gcc, either in
+# USE_GCC - Says that the port requires this version of gcc, either in
# the system or installed from a port.
# USE_GMAKE - Says that the port uses gmake.
# GMAKE - Set to path of GNU make if not in $PATH (default: gmake).
@@ -915,16 +913,16 @@ LIBTOOLFILES?= configure
.endif
LIBTOOLFLAGS?= --disable-ltlibs
.endif
-.if defined(USE_GCC295) && ${OSVERSION} < 400012
+.if defined(USE_GCC) && ${USE_GCC} == 2.95 && ( ${OSVERSION} < 400012 || ${OSVERSION} > 500034 )
CC= gcc295
CXX= g++295
BUILD_DEPENDS+= gcc295:${PORTSDIR}/lang/gcc295
MAKE_ENV+= CC=${CC} CXX=${CXX}
.endif
-.if defined(USE_GCC30) && ${OSVERSION} < 500999
-CC= gcc30
-CXX= g++30
-BUILD_DEPENDS+= gcc30:${PORTSDIR}/lang/gcc30
+.if defined(USE_GCC) && ${USE_GCC} == 3.1 && ${OSVERSION} < 500035
+CC= gcc31
+CXX= g++31
+BUILD_DEPENDS+= gcc31:${PORTSDIR}/lang/gcc31
MAKE_ENV+= CC=${CC} CXX=${CXX}
.endif