aboutsummaryrefslogtreecommitdiff
path: root/math/mumps
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2007-01-12 23:57:22 +0000
committerMaho Nakata <maho@FreeBSD.org>2007-01-12 23:57:22 +0000
commit826e294ddaf877ce9b5e6254a2dee702c02b005b (patch)
treea4d61aa49b4df0d9f27f2f1810cb8a24be823530 /math/mumps
parent907f4c27bdfff211dd06df59acbbd1fe22ba3658 (diff)
downloadports-826e294ddaf877ce9b5e6254a2dee702c02b005b.tar.gz
ports-826e294ddaf877ce9b5e6254a2dee702c02b005b.zip
Notes
Diffstat (limited to 'math/mumps')
-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: