Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2007 17:52:11 +0900 (JST)
From:      NAKATA Maho <chat95@mac.com>
To:        ports@freebsd.org
Subject:   Re: Migration to gfortran42
Message-ID:  <20070111.175211.59715881.chat95@mac.com>
In-Reply-To: <20070109.175640.102530289.chat95@mac.com>
References:  <20070107.133544.78739935.chat95@mac.com> <20070109.175640.102530289.chat95@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
(trim portmgr@freebsd.org, kris@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@FreeBSD.org    gfortran        yes          source 
math/nsc2ke             ports@FreeBSD.org    gfortran        yes          source 
math/mumps              ports@FreeBSD.org    gfortran        yes          source 
math/petsc              ports@FreeBSD.org    gfortran        yes          source 
science/dft++           maho@FreeBSD.org     gfortran        yes          source 
math/sdpa               maho@FreeBSD.org     gfortran        yes          source 
math/sdpara             maho@FreeBSD.org     gfortran        yes          source 
math/metis-edf          ports@FreeBSD.org    gfortran        yes          source 
math/linpack            ports@FreeBSD.org    gfortran        yes          source   
---------------------------------------------------------------------------------
wip
---------------------------------------------------------------------------------
math/freefem++         ports@FreeBSD.org     gfortran        not yet      source 
science/abinit         maho@FreeBSD.org     gfortran        not yet      source 
math/R            eric+fbports@vangyzen.net   
benchmarks/hpl         oliver@FreeBSD.org
---------------------------------------------------------------------------------
migrated already
---------------------------------------------------------------------------------
astro/cfitsio           ports@FreeBSD.org    gfortran        yes          source 
math/atlas              maho@FreeBSD.org     gfortran        yes          source 
math/atlas-devel        maho@FreeBSD.org     gfortran        yes          source 
biology/molden          ports@FreeBSD.org    gfortran        yes          source 
benchmarks/himenobench  maho@FreeBSD.org     gfortran        yes          source 
math/blas               stas@FreeBSD.org     gfortran        yes          source 
math/lapack             jmz@FreeBSD.org      gfortran        yes          source 
biology/ortep3          ports@FreeBSD.org    gfortran        yes          source 
biology/psi88           ports@FreeBSD.org    f77             yes          source 
math/metis              ports@FreeBSD.org    gfortran        yes          source 
math/taucs              ports@FreeBSD.org    gfortran        yes          source 
math/arpack             ports@FreeBSD.org    gfortran        yes          source 
cad/calculix            maho@FreeBSD.org     gfortran        yes          source 
science/2dhf            maho@FreeBSD.org     gfortran        yes          source 
science/mpqc            maho@FreeBSD.org     gfortran        yes          link
science/psi3            maho@FreeBSD.org     gfortran        yes          source
math/suitesparse        maho@FreeBSD.org     gfortran        yes          source
math/lapack95           maho@FreeBSD.org     gfortran        yes          source
math/lapack++           maho@FreeBSD.org     gfortran        yes          source
science/elmer-eio       ports@FreeBSD.org    gfortran        yes          source 
science/elmer-matc      ports@FreeBSD.org    gfortran        yes          source 
science/elmer-hutiter   ports@FreeBSD.org    gfortran        yes          source 
math/blacs              maho@FreeBSD.org     gfortran        yes          source
math/scalapack          maho@FreeBSD.org     gfortran        yes          source
math/octave-devel       maho@FreeBSD.org     gfortran        yes          source (*)
math/blocksolve95       ports@FreeBSD.org    gfortran        yes          source 
science/elmer-fem       ports@FreeBSD.org    gfortran        yes          source 
science/elmergrid       ports@FreeBSD.org    gfortran        yes          source 
science/elmerpost       ports@FreeBSD.org    gfortran        yes          source 
net/mpich2              thierry@FreeBSD.org  gfortran        yes          source
science/elmerfront     ports@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@FreeBSD.org)



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