aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2010-11-14 22:00:23 +0000
committerThierry Thomas <thierry@FreeBSD.org>2010-11-14 22:00:23 +0000
commit7db179edb42024999f5ac287c3d633aad02c87ca (patch)
tree8c224de6d8dc6d3ee24f9a70da7351c634faba30 /math
parent9057d8b613a28938f843b07ce1ecc519556ce99f (diff)
downloadports-7db179edb42024999f5ac287c3d633aad02c87ca.tar.gz
ports-7db179edb42024999f5ac287c3d633aad02c87ca.zip
Notes
Diffstat (limited to 'math')
-rw-r--r--math/mumps/Makefile1
-rw-r--r--math/mumps/files/patch-Make.inc+Makefile.inc.generic2
-rw-r--r--math/petsc/Makefile14
-rw-r--r--math/sdpara/Makefile2
4 files changed, 14 insertions, 5 deletions
diff --git a/math/mumps/Makefile b/math/mumps/Makefile
index 3574b1aa89f2..348cc029f41f 100644
--- a/math/mumps/Makefile
+++ b/math/mumps/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mumps
PORTVERSION= 4.8.4
+PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= http://mumps.enseeiht.fr/ \
http://graal.ens-lyon.fr/MUMPS/ \
diff --git a/math/mumps/files/patch-Make.inc+Makefile.inc.generic b/math/mumps/files/patch-Make.inc+Makefile.inc.generic
index 7421456b4d47..464e45902abe 100644
--- a/math/mumps/files/patch-Make.inc+Makefile.inc.generic
+++ b/math/mumps/files/patch-Make.inc+Makefile.inc.generic
@@ -52,7 +52,7 @@
# LIBRARIES USED BY THE PARALLEL VERSION OF MUMPS: $(SCALAP) and MPI
-LIBPAR = $(SCALAP) -L/usr/lib -lmpi
-+LIBPAR = -L@LOCALBASE@/lib -lfmpich -lmpich $(SCALAP)
++LIBPAR = -L@LOCALBASE@/lib -lfmpich -lmpich -lmpl $(SCALAP)
# The parallel version is not concerned by the next two lines.
# They are related to the sequential library provided by MUMPS,
diff --git a/math/petsc/Makefile b/math/petsc/Makefile
index 80ba614cb627..dbcc84d68456 100644
--- a/math/petsc/Makefile
+++ b/math/petsc/Makefile
@@ -7,7 +7,7 @@
PORTNAME= petsc
DISTVERSION= 2.3.3-p0
-PORTREVISION= 4
+PORTREVISION= 5
PORTEPOCH= 1
CATEGORIES= math parallel
MASTER_SITES= ftp://ftp.mcs.anl.gov/pub/petsc/release-snapshots/
@@ -28,8 +28,8 @@ CONFIGURE_ENV= PETSC_ARCH=${TARGET} \
PETSC_DIR=${WRKSRC}
CONFIGURE_ARGS= --prefix=${PREFIX}/${PFX} --COPTFLAGS="${CFLAGS}" \
--CXXOPTFLAGS="${CXXFLAGS}" --FOPTFLAGS="${FFLAGS}" \
- --with-shared=1 --with-cc=${CC} --with-fc=${FC} \
- --CPPFLAGS="-I${LOCALBASE}/include"
+ --with-shared=1 --with-cc=${CC} --with-fc=${FC} \
+ --CPPFLAGS="-I${LOCALBASE}/include" --LDFLAGS=${PTHREAD_LIBS}
ALL_TARGET= all
MAKEFILE= makefile
MAKE_ENV= PETSC_DIR=${WRKSRC}
@@ -258,6 +258,14 @@ pre-configure:
${REINPLACE_CMD} -e "s|/bin/ksh|${LOCALBASE}/bin/ksh|" \
${WRKSRC}/bin/popup
@${RM} ${WRKSRC}/bin/popup.bak
+.if defined (WITH_MPI)
+. for ps in ml.py MPE.py
+ ${REINPLACE_CMD} -e "s|-lpmpich|-lmpl|" \
+ ${WRKSRC}/python/PETSc/packages/${ps}
+. endfor
+ ${REINPLACE_CMD} -e "s|libpmpich|libmpl|" \
+ ${WRKSRC}/python/BuildSystem/config/packages/MPI.py
+.endif
.if defined(PACKAGE_BUILDING)
${REINPLACE_CMD} -e "s|%%PACKAGE%%exit 1; ||" \
-e "s|%%PACKAGE%%sys.exit(3)||" \
diff --git a/math/sdpara/Makefile b/math/sdpara/Makefile
index fc9ba3bf166d..10ab164c1aeb 100644
--- a/math/sdpara/Makefile
+++ b/math/sdpara/Makefile
@@ -7,7 +7,7 @@
PORTNAME= sdpara
PORTVERSION= 7.2.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= math parallel
MASTER_SITES= http://sdpa.indsys.chuo-u.ac.jp/sdpa/files/
DISTFILES= ${SRCFILE}#${MANUALFILE}