diff options
author | tijl <tijl@FreeBSD.org> | 2014-09-27 00:00:41 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2014-09-27 00:00:41 +0800 |
commit | 303efad592a9613b953943d5fb052a26c166ee42 (patch) | |
tree | 5e48dec97d9e2ca4278afaa3e40b822e19ad2231 /Mk/Uses | |
parent | 786988f23c8f56b0cfef3f356f28ed82cd929172 (diff) | |
download | freebsd-ports-gnome-303efad592a9613b953943d5fb052a26c166ee42.tar.gz freebsd-ports-gnome-303efad592a9613b953943d5fb052a26c166ee42.tar.zst freebsd-ports-gnome-303efad592a9613b953943d5fb052a26c166ee42.zip |
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 <luca.pizzamiglio@gmail.com>
Approved by: gerald
Diffstat (limited to 'Mk/Uses')
-rw-r--r-- | Mk/Uses/fortran.mk | 5 |
1 files changed, 5 insertions, 0 deletions
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} |