* currently all ports using fortran are unstable. please wait until I announce
about it....
* kris will tell me how they are broken ;)

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)

not yet
------------------------------------------------------------
graphics/robot         bad f77 code
devel/root            !for amd64
science/hdf           !for amd64
graphics/cimg         non fetchable
math/py-numpy         -lg2c -> -lgfortran (?)
science/py-scipy      -lg2c -> -lgfortran (?)
science/py-scipy03    -lg2c -> -lgfortran (?)
------------------------------------------------------------

done (but not yet stable) 
ports                   maintainer           Used Fortran  committed    f77/f90?
--------------------------------------------------------------------------------------
astro/cfitsio           [EMAIL PROTECTED]    gfortran        yes          
source 
benchmarks/himenobench  [EMAIL PROTECTED]     gfortran        yes          
source 
benchmarks/hpl          [EMAIL PROTECTED]   gfortran        yes          source 
biology/molden          [EMAIL PROTECTED]    gfortran        yes          
source 
biology/ortep3          [EMAIL PROTECTED]    gfortran        yes          
source 
biology/platon          [EMAIL PROTECTED]    gfortran        yes          
source 
biology/psi88           [EMAIL PROTECTED]    gfortran        yes          
source 
biology/tinker          [EMAIL PROTECTED]    gfortran        yes          
source 
cad/calculix            [EMAIL PROTECTED]     gfortran        yes          
source 
cad/feappv              [EMAIL PROTECTED]    gfortran        yes          
source 
cad/sceptre              [EMAIL PROTECTED]    f77             yes          
source
cad/pdnmesh             [EMAIL PROTECTED]   gfortran        yes          source 
cad/tochnog             [EMAIL PROTECTED]    gfortran        yes          
source 
database/grass-i18n     [EMAIL PROTECTED]      gfortran        yes          link
devel/libU77            [EMAIL PROTECTED]    gfortran        yes          
source 
french/aster           [EMAIL PROTECTED]   gfortran        yes          source 
french/med             [EMAIL PROTECTED]     gfortran        yes          
source 
graphics/dataplot  [EMAIL PROTECTED]  gfortran        yes          source 
graphics/gplot          [EMAIL PROTECTED]    gfortran        yes          
source 
graphics/pgplot        [EMAIL PROTECTED]       gfortran        yes          
source 
graphics/xd3d        [EMAIL PROTECTED]     gfortran        yes          source 
lang/ratfor           [EMAIL PROTECTED]     gfortran        yes          source 
math/R             [EMAIL PROTECTED] gfortran        yes          source 
math/algae             [EMAIL PROTECTED]   gfortran        yes          source 
math/arpack             [EMAIL PROTECTED]    gfortran        yes          
source 
math/atlas              [EMAIL PROTECTED]     gfortran        yes          
source 
math/atlas-devel        [EMAIL PROTECTED]     gfortran        yes          
source 
math/blacs              [EMAIL PROTECTED]     gfortran        yes          
source
math/blas               [EMAIL PROTECTED]     gfortran        yes          
source 
math/blocksolve95       [EMAIL PROTECTED]    gfortran        yes          
source 
math/elmer-umfpack     [EMAIL PROTECTED]     gfortran        yes          
source 
math/elmer-mathlibs    [EMAIL PROTECTED]     gfortran        yes          
source 
math/fftw              [EMAIL PROTECTED]     gfortran        yes          source
math/freefem++         [EMAIL PROTECTED]     gfortran        yes          source
math/freemat           [EMAIL PROTECTED]     gfortran        yes          source
math/it++              [EMAIL PROTECTED]     gfortran        yes          source
math/jags      [EMAIL PROTECTED]     gfortran        yes          source 
math/kaskade            [EMAIL PROTECTED]    gfortran        yes          source
math/lapack             [EMAIL PROTECTED]      gfortran        yes          
source 
math/lapack++           [EMAIL PROTECTED]     gfortran        yes          
source
math/lapack95           [EMAIL PROTECTED]     gfortran        yes          
source
math/libRmath  [EMAIL PROTECTED]     gfortran        yes          source 
math/linpack            [EMAIL PROTECTED]    gfortran        yes          
source 
math/metis              [EMAIL PROTECTED]    gfortran        yes          
source 
math/metis-edf          [EMAIL PROTECTED]    gfortran        yes          
source 
math/mumps              [EMAIL PROTECTED]    gfortran        yes          source
math/nsc2ke             [EMAIL PROTECTED]    gfortran        yes          
source 
math/octave       [EMAIL PROTECTED]     gfortran        yes          source
math/octave-devel       [EMAIL PROTECTED]     gfortran        yes          
source (*)
math/petsc              [EMAIL PROTECTED]    gfortran        yes          
source 
math/plplot             [EMAIL PROTECTED]    gfortran        yes          
source 
math/scalapack          [EMAIL PROTECTED]     gfortran        yes          
source
math/scilab             [EMAIL PROTECTED]       gfortran        yes          
source
math/sdpa               [EMAIL PROTECTED]     gfortran        yes          link
math/sdpara             [EMAIL PROTECTED]     gfortran        yes          link
math/suitesparse        [EMAIL PROTECTED]     gfortran        yes          
source
math/superlu            [EMAIL PROTECTED]    gfortran        yes          
source 
math/superlu_mt         [EMAIL PROTECTED]    gfortran        yes          
source 
math/taucs              [EMAIL PROTECTED]    gfortran        yes          
source 
math/umfpack            [EMAIL PROTECTED]    gfortran        yes          
source 
net/mpich2              [EMAIL PROTECTED]  gfortran        yes          source
net/openmpi             [EMAIL PROTECTED]   gfortran        yes          source 
net/pvm                 [EMAIL PROTECTED]    gfortran        yes          
source 
science/2dhf            [EMAIL PROTECTED]     gfortran        yes          
source 
science/abinit          [EMAIL PROTECTED]     gfortran        yes          
source
science/at              [EMAIL PROTECTED]    gfortran        yes          
source 
science/cdf            [EMAIL PROTECTED]   gfortran        yes          source 
science/dft++           [EMAIL PROTECTED]     gfortran        yes          
source
science/elmer-eio       [EMAIL PROTECTED]    gfortran        yes          
source 
science/elmer-fem       [EMAIL PROTECTED]    gfortran        yes          
source 
science/elmer-hutiter   [EMAIL PROTECTED]    gfortran        yes          
source 
science/elmerfront      [EMAIL PROTECTED]    gfortran        yes          
source 
science/elmerpost       [EMAIL PROTECTED]    gfortran        yes          source
science/getdp           [EMAIL PROTECTED]    gfortran        yes          source
science/ghemical        [EMAIL PROTECTED]     gfortran        yes          link
science/isaac-cdf       [EMAIL PROTECTED]    gfortran        yes          
source 
science/libctl          [EMAIL PROTECTED]    gfortran        yes          
source 
science/libghemical     [EMAIL PROTECTED]     gfortran        yes          link
science/mbdyn           [EMAIL PROTECTED]   gfortran        yes          source
science/mpb             [EMAIL PROTECTED]    gfortran        yes          
source 
science/mpqc            [EMAIL PROTECTED]     gfortran        yes          link
science/mpqc-mpich      [EMAIL PROTECTED]     gfortran        yes          link
science/oases           [EMAIL PROTECTED]    gfortran        yes          
source 
science/oof             [EMAIL PROTECTED]     gfortran        yes          
source
--------------------------------------------------------------------------------------

Memo

WANT_FORTRAN=   yes #dummy but future use
BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
FC=             gfortran42
F77=            gfortran42
CONFIGURE_ENV+= FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}"
MAKE_ENV+=      FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}"

* Linking blas/lapack or atlas
next of .include <bsd.port.pre.mk>, add:
.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`/../../..
post-patch:
        ${DIRNAME} `${LOCALBASE}/bin/${F77} -print-libgcc-file-name` > 
${WRKSRC}/LIBDIR
        ${REINPLACE_CMD} -e "s+%%GCCLIBDIR%%+${GCCLIBDIR}+" -e 
"s+%%FORTRANLIBS%%+${FORTRANLIBS}+" ${WRKSRC}/somefile.

* Remove dependency of g2c.h etc. Install f2c from ports, and must
link against libf2c.so. I'm checking with following environment:
FreeBSD 6.2-RELEASE/amd64 with following fortran killer 
% cat ~/killfortran
tar cvfz /home/maho/F77-FBSD62amd64.tar.gz /usr/include/g2c.h /usr/bin/f77 
/usr/lib/libg2c.a  /usr/lib/libg2c.so /usr/lib/libg2c.so.2
rm /usr/include/g2c.h /usr/bin/f77 /usr/lib/libg2c.a  /usr/lib/libg2c.so 
/usr/lib/libg2c.so.2

thanks,
-- NAKATA, Maho ([EMAIL PROTECTED])
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to