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
This commit is contained in:
parent
0b1b435c4b
commit
25f5b84389
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=60621
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user