Migration to gfortran42

NAKATA Maho chat95 at mac.com
Thu Jan 11 01:37:39 UTC 2007


(trim portmgr at freebsd.org, kris at obsecurity.org)

current status of migration

wait ... wait for commit approval
source ... f90/f77 sources exist
link   ... only exist link against f90/f77 complied libraries
gfortran ... used compiler is gfortran42 
f77     ...  used compiler is g77 (there are some compilation problem with gfortran)

ports                   maintainer           Used Fortran  committed    f77/f90?
astro/cfitsio           ports at FreeBSD.org    gfortran        yes          source 
math/atlas              maho at FreeBSD.org     gfortran        yes          source 
math/atlas-devel        maho at FreeBSD.org     gfortran        yes          source 
biology/molden          ports at FreeBSD.org    gfortran        yes          source 
benchmarks/himenobench  maho at FreeBSD.org     gfortran        yes          source 
math/blas               stas at FreeBSD.org     gfortran        yes          source 
math/lapack             jmz at FreeBSD.org      gfortran        yes          source 
biology/ortep3          ports at FreeBSD.org    gfortran        yes          source 
biology/psi88           ports at FreeBSD.org    f77             yes          source 
math/metis              ports at FreeBSD.org    gfortran        yes          source 
math/taucs              ports at FreeBSD.org    gfortran        yes          source 
math/arpack             ports at FreeBSD.org    gfortran        yes          source 
cad/calculix            maho at FreeBSD.org     gfortran        yes          source 
science/2dhf            maho at FreeBSD.org     gfortran        yes          source 
science/mpqc            maho at FreeBSD.org     gfortran        yes          link
science/psi3            maho at FreeBSD.org     gfortran        yes          source
math/suitesparse        maho at FreeBSD.org     gfortran        yes          source
math/lapack95           maho at FreeBSD.org     gfortran        yes          source
math/lapack++           maho at FreeBSD.org     gfortran        yes          source
science/elmer-eio       ports at FreeBSD.org    gfortran        yes          source 
science/elmer-matc      ports at FreeBSD.org    gfortran        yes          source 
science/elmer-hutiter   ports at FreeBSD.org    gfortran        yes          source 
math/blacs              maho at FreeBSD.org     gfortran        yes          source
math/scalapack          maho at FreeBSD.org     gfortran        yes          source
math/octave-devel       maho at FreeBSD.org     gfortran        yes          source (*)
math/blocksolve95       ports at FreeBSD.org    gfortran        yes          source 
science/elmer-fem       ports at FreeBSD.org    gfortran        yes          source 
science/elmergrid       ports at FreeBSD.org    gfortran        yes          source 
science/elmerpost       ports at FreeBSD.org    gfortran        yes          source 
net/mpich2              thierry at FreeBSD.org  gfortran        yes          source
science/elmerfront     ports at FreeBSD.org     gfortran        not yet      source 
---------------------------------------------------------------------------------
math/freefem++         ports at FreeBSD.org     gfortran        not yet      source 
science/abinit         ports at FreeBSD.org     gfortran        not yet      source 
--------------------------------------------------------------------
many are not yet done...

here is the newest tip

* Migrate to gfortran42
WANT_FORTRAN=yes #dummy but future use
BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
FC=	gfortran42
F77=	gfortran42
* Linking blas/lapack or atlas
.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
WITH_ATLAS=     yes
.endif
.if defined(WITH_ATLAS)
LIB_DEPENDS+=   atlas.2:${PORTSDIR}/math/atlas
BLAS=		-lf77blas -latlas
LAPACK=		-lalapack
.else
LIB_DEPENDS+=   blas.2:${PORTSDIR}/math/blas
LIB_DEPENDS+=   lapack.4:${PORTSDIR}/math/lapack
BLAS=		-lblas
LAPACK=		-llapack
.endif

* Useful for other stuffs for gfortran related libaries when link against -lblas with C/C++ programs 
this corresponds to when some program want to link against libg2c of libf2c with GNU f77.

FORTRANLIBDIR=  `${DIRNAME} \`gfortran42 -print-libgcc-file-name\``
FORTRANLIBDIR2= `${DIRNAME} \`gfortran42 -print-libgcc-file-name\``/../../../
FORTRANLIBS=    -lgfortranbegin -lgfortran

thanks,
-- NAKATA, Maho (maho at FreeBSD.org)


More information about the freebsd-ports mailing list