aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Uses
diff options
context:
space:
mode:
authorgerald <gerald@FreeBSD.org>2015-01-26 08:03:46 +0800
committergerald <gerald@FreeBSD.org>2015-01-26 08:03:46 +0800
commita7bc0c572ac58069c499414733d4c0e53e97593b (patch)
tree59c566dcad09aba93118fd4b0c2b63aedbc149ec /Mk/Uses
parentbddc23315b89d3712d800acdd0f4ef5837f5c5d5 (diff)
downloadfreebsd-ports-gnome-a7bc0c572ac58069c499414733d4c0e53e97593b.tar.gz
freebsd-ports-gnome-a7bc0c572ac58069c499414733d4c0e53e97593b.tar.zst
freebsd-ports-gnome-a7bc0c572ac58069c499414733d4c0e53e97593b.zip
Move LANG_GCC_IS from bsd.gcc.mk to bsd.default-versions.mk and use
this and GCC_DEFAULT instead of hard-coding the version of GCC used by lang/gcc in Uses/fortran.mk. Approved by: portmgr (antoine)
Diffstat (limited to 'Mk/Uses')
-rw-r--r--Mk/Uses/fortran.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Uses/fortran.mk b/Mk/Uses/fortran.mk
index fa265c4a9812..890eaaf94700 100644
--- a/Mk/Uses/fortran.mk
+++ b/Mk/Uses/fortran.mk
@@ -18,7 +18,7 @@ fortran_ARGS= gcc
.if ${fortran_ARGS} == gcc
.include "${PORTSDIR}/Mk/bsd.default-versions.mk"
_GCC_VER= ${GCC_DEFAULT:S/.//}
-.if ${_GCC_VER} == 48
+.if ${GCC_DEFAULT} == ${LANG_GCC_IS}
BUILD_DEPENDS+= gfortran${_GCC_VER}:${PORTSDIR}/lang/gcc
RUN_DEPENDS+= gfortran${_GCC_VER}:${PORTSDIR}/lang/gcc
.else