diff options
author | maho <maho@FreeBSD.org> | 2007-01-11 08:45:46 +0800 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2007-01-11 08:45:46 +0800 |
commit | 70fbf26d514d15ca8eb870b6433e44712438386d (patch) | |
tree | 37dedf8016cae0d6782c3846fdc4185ec0f138b2 /science | |
parent | e723d0264f1a2526d6bb7453fac7c0b4523eb712 (diff) | |
download | freebsd-ports-gnome-70fbf26d514d15ca8eb870b6433e44712438386d.tar.gz freebsd-ports-gnome-70fbf26d514d15ca8eb870b6433e44712438386d.tar.zst freebsd-ports-gnome-70fbf26d514d15ca8eb870b6433e44712438386d.zip |
* Migrate to gfortran.
* Use gfortran compiled atlas/blas/lapack.
Diffstat (limited to 'science')
-rw-r--r-- | science/oof/Makefile | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/science/oof/Makefile b/science/oof/Makefile index 5130ea323a8a..931c80f51167 100644 --- a/science/oof/Makefile +++ b/science/oof/Makefile @@ -14,33 +14,35 @@ DISTNAME= ${PORTNAME}-dist${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Finite Element Analysis of Real Material Microstructures -LIB_DEPENDS= forms.1:${PORTSDIR}/x11-toolkits/xforms -.ifdef WITH_ATLAS -LIB_DEPENDS+= atlas.1:${PORTSDIR}/math/atlas -.else -LIB_DEPENDS+= blas.1:${PORTSDIR}/math/blas +LIB_DEPENDS+= forms.1:${PORTSDIR}/x11-toolkits/xforms +.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS) +WITH_ATLAS= yes .endif - -.ifdef WITH_ATLAS +.if defined(WITH_ATLAS) +LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas BLAS_LIBS= -lf77blas -latlas .else -BLAS_LIBS?= -lblas +LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas +BLAS_LIBS= -lblas .endif +BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42 +FORTRANLIBDIR= `${DIRNAME} \`gfortran42 -print-libgcc-file-name\`` +FORTRANLIBDIR2= `${DIRNAME} \`gfortran42 -print-libgcc-file-name\``/../../../ +FORTRANLIBS= -lgfortranbegin -lgfortran + CXXFLAGS+= -DDONT_HAVE_STRSTREAM_H -DNEED_FDSTREAM .ifdef WITH_THERMAL CXXFLAGS+= -DTHERMAL .endif CXXFLAGS+= -Wno-deprecated - GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-cxxflags='${CXXFLAGS}' \ --with-libdirs=-L${LOCALBASE}/lib \ - --with-blas="-L${LOCALBASE}/lib ${BLAS_LIBS} -lg2c" \ + --with-blas="-L${LOCALBASE}/lib ${BLAS_LIBS} -L/usr/local/lib -L${FORTRANLIBDIR} -L${FORTRANLIBDIR2} ${FORTRANLIBS}" \ --x-includes=${X11BASE}/include \ --x-libraries=${X11BASE}/lib USE_GCC= 3.2+ - ALL_TARGET= all PLIST_FILES= bin/oof bin/ppm2oof |