hi,

this is a standalone port of gfortran, to be used on archs which have gcc4
in base. this port is based on the gcc/4.2 port.

gfortran compiles both fortran 77 and fortran 95 code.

tested ok on amd64. if someone can try it on sparc64, i'd appreciate it.
comments on the port welcome of course.

if you want to try build some of the ports requiring f77 with this gfortran,
the diff below may be helpful.

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     12 Jun 2010 18:02:35 -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
+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

Attachment: gfortran-20100613.tgz
Description: application/tar-gz

Reply via email to