> > sure, 4.2.1 port attached (hardly changed wrt 4.2.4 port). > > only built blas/cblas with it, and that also works. > > tested with gfortran 4.2.1 the ports which have fortran in MODULES. > this is on amd64. now we should compare regress to building with g77.
I reworked the port some more, to use cc1 and libiberty from base, and separated it into gfortran and libgfortran subpackages. New tgz attached. Comments/tests/ok welcome. Below a diff that will help you test it. Index: fortran.port.mk =================================================================== RCS file: /cvs/ports/infrastructure/mk/fortran.port.mk,v retrieving revision 1.6 diff -u -r1.6 fortran.port.mk --- fortran.port.mk 5 Jun 2010 16:38:47 -0000 1.6 +++ fortran.port.mk 20 Jun 2010 21:02:59 -0000 @@ -1,6 +1,11 @@ # $OpenBSD: fortran.port.mk,v 1.5 2010/05/25 10:10:43 espie Exp $ -.if ${COMPILER_VERSION:L:Mgcc[34]*} +.if ${COMPILER_VERSION:L:Mgcc4*} +MODFORTRAN_LIB_DEPENDS77 = gfortran::lang/gfortran,-lib +MODFORTRAN_WANTLIB77 = +MODFORTRAN_BUILD_DEPENDS77 = ::lang/gfortran +FC = gfortran +.elif ${COMPILER_VERSION:L:Mgcc3*} MODFORTRAN_LIB_DEPENDS77 = g2c::devel/libf2c MODFORTRAN_WANTLIB77 = MODFORTRAN_BUILD_DEPENDS77 = ::lang/g77 ::devel/libf2c
gfortran-20100620.tgz
Description: application/tar-gz