Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Feb 2014 23:44:59 +0100 (CET)
From:      Gerald Pfeifer <gerald@pfeifer.com>
To:        Tijl Coosemans <tijl@FreeBSD.org>, Baptiste Daroussin <bapt@FreeBSD.org>
Cc:        svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org
Subject:   Re: svn commit: r336343 - in head: . Mk/Uses
Message-ID:  <alpine.LSU.2.11.1402262343320.2600@tuna.site>
In-Reply-To: <alpine.LSU.2.11.1402242318220.2233@tuna.site>
References:  <201312131322.rBDDMWZC038800@svn.freebsd.org> <alpine.LSU.2.11.1312160847420.2366@tuna.site> <20131217215533.3c0d9fcb@kalimero.tijl.coosemans.org> <20131217210048.GM99753@ithaqua.etoilebsd.net> <alpine.LSU.2.11.1402242318220.2233@tuna.site>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 26 Feb 2014, Gerald Pfeifer wrote:
>>> - I expect converting Fortran ports will be relatively straightforward
>>>   so the Fortran bits in bsd.gcc.mk can eventually be removed.
> This created more redundancy [...]

Some of this addressed thusly.

Gerald

====== snip ======
Author: gerald
Date: Wed Feb 26 22:42:58 2014
New Revision: 346234
URL: http://svnweb.freebsd.org/changeset/ports/346234
QAT: https://qat.redports.org/buildarchive/r346234/

Log:
  Instead of hardcoding the version of GCC to provide Fortran support,
  leverage ${GCC_DEFAULT} from ${PORTSDIR}/Mk/bsd.default-versions.mk.

Modified:
  head/Mk/Uses/fortran.mk

Modified: head/Mk/Uses/fortran.mk
==============================================================================
--- head/Mk/Uses/fortran.mk	Wed Feb 26 22:15:09 2014	(r346233)
+++ head/Mk/Uses/fortran.mk	Wed Feb 26 22:42:58 2014	(r346234)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.LSU.2.11.1402262343320.2600>