Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 2009 06:47:02 +0100 (CET)
From:      Gerald Pfeifer <gerald@pfeifer.com>
To:        ports@FreeBSD.org, murashin@gfd-dennou.org
Subject:   Re: An update regarding CONFIGURE_ENV and ${F77}, ${FC}, ${FFLAGS}
Message-ID:  <alpine.LSU.1.99.0901180645250.12007@acrux.dbai.tuwien.ac.at>
In-Reply-To: <alpine.LSU.1.99.0901180551310.12007@acrux.dbai.tuwien.ac.at>
References:  <alpine.LSU.1.99.0901180551310.12007@acrux.dbai.tuwien.ac.at>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 18 Jan 2009, Gerald Pfeifer wrote:
> the following ports contain snippets along the lines of
> 
>   CONFIGURE_ENV+= FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}
> 
> These are no longer necessary after recent improvement I have made to
> the Mk/bsd.gcc.mk infrastructure related to the USE_FORTRAN knob.
> 
> Please update your ports removing these.

To provide a concrete example, in the case of science/dcl, something
like the following would move into the right direction (untested):

Gerald

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/science/dcl/Makefile,v
retrieving revision 1.8
diff -u -3 -p -r1.8 Makefile
--- Makefile	26 Sep 2008 08:54:21 -0000	1.8
+++ Makefile	18 Jan 2009 05:44:19 -0000
@@ -20,10 +20,7 @@ USE_XORG=	x11 xext
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--prefix=${PREFIX} --disable-gtk2 --disable-gtk --with-x
 
-WANT_FORTRAN=	yes #dummy but future use
-BUILD_DEPENDS+=	gfortran42:${PORTSDIR}/lang/gcc42
-FC=		gfortran42
-CONFIGURE_ENV+=	FC="${FC}" FFLAGS="${FFLAGS}"
+USE_FORTRAN=	yes
 
 DOCFILES=	CHECK CREDITS HISTORY README README_clrmap README_gt2dlib \
 		README_itr51 README_pslib README_umfmap



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