Migration to gfortran42
NAKATA Maho
chat95 at mac.com
Thu Jan 11 08:52:57 UTC 2007
(trim portmgr at freebsd.org, kris at obsecurity.org)
Please let me know which port is using Fortran!
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?
newly migrated
---------------------------------------------------------------------------------
math/fftw ports at FreeBSD.org gfortran yes source
math/nsc2ke ports at FreeBSD.org gfortran yes source
math/mumps ports at FreeBSD.org gfortran yes source
math/petsc ports at FreeBSD.org gfortran yes source
science/dft++ maho at FreeBSD.org gfortran yes source
math/sdpa maho at FreeBSD.org gfortran yes source
math/sdpara maho at FreeBSD.org gfortran yes source
math/metis-edf ports at FreeBSD.org gfortran yes source
math/linpack ports at FreeBSD.org gfortran yes source
---------------------------------------------------------------------------------
wip
---------------------------------------------------------------------------------
math/freefem++ ports at FreeBSD.org gfortran not yet source
science/abinit maho at FreeBSD.org gfortran not yet source
math/R eric+fbports at vangyzen.net
benchmarks/hpl oliver at FreeBSD.org
---------------------------------------------------------------------------------
migrated already
---------------------------------------------------------------------------------
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
---------------------------------------------------------------------------------
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.
FORTRANLIBS= -lgfortranbegin -lgfortran
GCCLIBDIR= -L`${CAT} ${WRKSRC}/LIBDIR` -L`${CAT} ${WRKSRC}/LIBDIR`/../../..
add ${DIRNAME} `${FC} -print-libgcc-file-name` > ${WRKSRC}/LIBDIR
@${REINPLACE_CMD} -e 's|%%FORTRANLIBS%%|${FORTRANLIBS}|g' -e 's|%%GCCLIBDIR%%|${GCCLIBDIR}|g' ${WRKSRC}/Makefile
thanks,
-- NAKATA, Maho (maho at FreeBSD.org)
More information about the freebsd-ports
mailing list