aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2007-01-13 07:57:22 +0800
committermaho <maho@FreeBSD.org>2007-01-13 07:57:22 +0800
commit664213e599f968960939cbf03e8cfd86f822eb1e (patch)
tree05815f0afda99a5ce6bedb60f28b2940166f0324 /math
parentdf2ce77feaf138b9f353dee03907e8b13931c2f1 (diff)
downloadfreebsd-ports-gnome-664213e599f968960939cbf03e8cfd86f822eb1e.tar.gz
freebsd-ports-gnome-664213e599f968960939cbf03e8cfd86f822eb1e.tar.zst
freebsd-ports-gnome-664213e599f968960939cbf03e8cfd86f822eb1e.zip
* Migrate to gfortran.
* Bump port revision. * Use gfortran compiled atlas/blas/lapack.
Diffstat (limited to 'math')
-rw-r--r--math/mumps/Makefile9
-rw-r--r--math/mumps/files/patch-Make.inc+Makefile.inc.generic2
2 files changed, 8 insertions, 3 deletions
diff --git a/math/mumps/Makefile b/math/mumps/Makefile
index 597e27ed5c4d..9163becbd263 100644
--- a/math/mumps/Makefile
+++ b/math/mumps/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mumps
PORTVERSION= 4.6.3
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= math
MASTER_SITES= http://www.enseeiht.fr/apo/MUMPS/ \
http://www.enseeiht.fr/irit/apo/MUMPS/ \
@@ -34,6 +34,8 @@ WANT_FORTRAN=yes #dummy but future use
BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
FC= gfortran42
F77= gfortran42
+FORTRANLIBS= -lgfortranbegin -lgfortran
+GCCLIBDIR= -L`${CAT} ${WRKSRC}/LIBDIR` -L`${CAT} ${WRKSRC}/LIBDIR`/../../..
.if defined(WITH_OPTIMIZED_FLAGS)
FFLAGS+= -O3 -ffast-math
@@ -44,7 +46,7 @@ WITH_ATLAS= yes
.endif
.if defined(WITH_ATLAS)
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
-BLAS_LIBS= -lptf77blas -latlas_r
+BLAS_LIBS= -lf77blas -latlas
.else
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
BLAS_LIBS= -lblas
@@ -92,9 +94,12 @@ post-patch:
.endif
pre-build:
+ @${DIRNAME} `${FC} -print-libgcc-file-name` > ${WRKSRC}/LIBDIR
@${REINPLACE_CMD} -e 's+@CC@+${CC}+g ; s+@FC@+${FC}+g ; \
s+@CFLAGS@+${CFLAGS}+g; \
s+@FCFLAGS@+${FCFLAGS}+g; \
+ s+@GCCLIBDIR@+${GCCLIBDIR}+g; \
+ s+@FORTRANLIBS@+${FORTRANLIBS}+g; \
s+@PTHREAD_LIBS@+${PTHREAD_LIBS}+g; \
s+@BLAS_LIBS@+${BLAS_LIBS}+ ; \
s+@LOCALBASE@+${LOCALBASE}+g;' \
diff --git a/math/mumps/files/patch-Make.inc+Makefile.inc.generic b/math/mumps/files/patch-Make.inc+Makefile.inc.generic
index d9928e597d08..ea086f94f75d 100644
--- a/math/mumps/files/patch-Make.inc+Makefile.inc.generic
+++ b/math/mumps/files/patch-Make.inc+Makefile.inc.generic
@@ -65,7 +65,7 @@
# DEFINE YOUR PTHREAD LIBRARY
-LIBOTHERS = -lpthread
-+LIBOTHERS = @PTHREAD_LIBS@ -lg2c
++LIBOTHERS = @PTHREAD_LIBS@ @GCCLIBDIR@ @FORTRANLIBS@
# FORTRAN/C COMPATIBILITY:
# Use: