aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorgerald <gerald@FreeBSD.org>2014-02-27 06:42:58 +0800
committergerald <gerald@FreeBSD.org>2014-02-27 06:42:58 +0800
commitbe7499eb5bf176085fae719574e8e04926c52fed (patch)
tree4d8cdc3267cdda50bd7f72fa04994bcf91c6db39 /Mk
parent73c8890e41d09c87ac8b6498e63d0ec667f0530f (diff)
downloadfreebsd-ports-gnome-be7499eb5bf176085fae719574e8e04926c52fed.tar.gz
freebsd-ports-gnome-be7499eb5bf176085fae719574e8e04926c52fed.tar.zst
freebsd-ports-gnome-be7499eb5bf176085fae719574e8e04926c52fed.zip
Instead of hardcoding the version of GCC to provide Fortran support,
leverage ${GCC_DEFAULT} from ${PORTSDIR}/Mk/bsd.default-versions.mk.
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/fortran.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/Mk/Uses/fortran.mk b/Mk/Uses/fortran.mk
index 688c8eb5a49e..fe7da4b2d23e 100644
--- a/Mk/Uses/fortran.mk
+++ b/Mk/Uses/fortran.mk
@@ -16,7 +16,8 @@ fortran_ARGS= gcc
.endif
.if ${fortran_ARGS} == gcc
-_GCC_VER= 46
+.include "${PORTSDIR}/Mk/bsd.default-versions.mk"
+_GCC_VER= ${GCC_DEFAULT:S/.//}
BUILD_DEPENDS+= gfortran${_GCC_VER}:${PORTSDIR}/lang/gcc
RUN_DEPENDS+= gfortran${_GCC_VER}:${PORTSDIR}/lang/gcc
USE_BINUTILS= yes