From 303efad592a9613b953943d5fb052a26c166ee42 Mon Sep 17 00:00:00 2001 From: tijl Date: Fri, 26 Sep 2014 16:00:41 +0000 Subject: Depend on lang/gccXY if users wish to use a different version of gcc by default than lang/gcc (currently 4.8). (I don't fully agree with this implementation but this makes something like DEFAULT_VERSIONS+=gcc=4.9 in make.conf work correctly.) Reported by: Luca Pizzamiglio Approved by: gerald --- Mk/Uses/fortran.mk | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Mk/Uses') diff --git a/Mk/Uses/fortran.mk b/Mk/Uses/fortran.mk index 3d2e54c459fe..5d9798eb4e4c 100644 --- a/Mk/Uses/fortran.mk +++ b/Mk/Uses/fortran.mk @@ -18,8 +18,13 @@ fortran_ARGS= gcc .if ${fortran_ARGS} == gcc .include "${PORTSDIR}/Mk/bsd.default-versions.mk" _GCC_VER= ${GCC_DEFAULT:S/.//} +.if ${_GCC_VER} == 48 BUILD_DEPENDS+= gfortran${_GCC_VER}:${PORTSDIR}/lang/gcc RUN_DEPENDS+= gfortran${_GCC_VER}:${PORTSDIR}/lang/gcc +.else +BUILD_DEPENDS+= gfortran${_GCC_VER}:${PORTSDIR}/lang/gcc${_GCC_VER} +RUN_DEPENDS+= gfortran${_GCC_VER}:${PORTSDIR}/lang/gcc${_GCC_VER} +.endif USE_BINUTILS= yes F77= gfortran${_GCC_VER} FC= gfortran${_GCC_VER} -- cgit