aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2009-02-18 14:19:36 +0800
committermaho <maho@FreeBSD.org>2009-02-18 14:19:36 +0800
commit88e36a4684ebc4b00f39f316ce56adb55bdcbcb3 (patch)
treed5b589bd567686b7f6c62b7b9030643c9eebcba2 /math
parent9f2b12b91c94d2e97dec69e3104c5ffa6d031f93 (diff)
downloadfreebsd-ports-gnome-88e36a4684ebc4b00f39f316ce56adb55bdcbcb3.tar.gz
freebsd-ports-gnome-88e36a4684ebc4b00f39f316ce56adb55bdcbcb3.tar.zst
freebsd-ports-gnome-88e36a4684ebc4b00f39f316ce56adb55bdcbcb3.zip
Fix build.
Spotted by: QAT
Diffstat (limited to 'math')
-rw-r--r--math/sdpara/Makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/math/sdpara/Makefile b/math/sdpara/Makefile
index 1689d06eb248..ff8550c3d3bc 100644
--- a/math/sdpara/Makefile
+++ b/math/sdpara/Makefile
@@ -16,6 +16,10 @@ EXTRACT_ONLY= ${SRCFILE}
MAINTAINER= maho@FreeBSD.org
COMMENT= SDPARA paralell version of SDPA (math/sdpa)
+LIB_DEPENDS= scalapack:${PORTSDIR}/math/scalapack \
+ blacs:${PORTSDIR}/math/blacs \
+ mpich:${PORTSDIR}/net/mpich2
+
.include <bsd.port.pre.mk>
SRCDATE= 20090109
@@ -28,10 +32,6 @@ USE_GMAKE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}.${PORTVERSION}
USE_BLAS?= reference
-LIB_DEPENDS= scalapack:${PORTSDIR}/math/scalapack \
- blacs:${PORTSDIR}/math/blacs \
- mpich:${PORTSDIR}/net/mpich2
-
.if exists(${LOCALBASE}/lib/libgoto.so)
USE_BLAS= gotoblas
.elif exists(${LOCALBASE}/lib/libatlas_r.so)
@@ -61,9 +61,9 @@ FORTRAN_LIBS= -lgfortran
GCCLIBDIR = -L`${CAT} ${WRKSRC}/LIBDIR` -L`${CAT} ${WRKSRC}/LIBDIR`/../../..
post-patch:
- @${REINPLACE_CMD} -e 's|%%MPICC%%|mpicc|g ; \
- s|%%MPICXX%%|mpicxx|g ; \
- s|%%MPIF77%%|mpif77|g ; \
+ @${REINPLACE_CMD} -e 's|%%MPICC%%|${LOCALBASE}/mpich2/bin/mpicc|g ; \
+ s|%%MPICXX%%|${LOCALBASE}/mpich2/bin/mpicxx|g ; \
+ s|%%MPIF77%%|${LOCALBASE}/mpich2/bin/mpif77|g ; \
s|%%CFLAGS%%|${CFLAGS}|g ; \
s|%%CXXFLAGS%%|${CXXFLAGS}|g ; \
s|%%FFLAGS%%|${FFLAGS}|g ; \
@@ -72,9 +72,9 @@ post-patch:
s|%%SCALAPACK%%|${SCALAPACK}|g ; \
s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g ; \
s|%%FORTRAN_LIBS%%|${GCCLIBDIR} ${FORTRAN_LIBS}|g ' ${WRKSRC}/Makefile
- @${REINPLACE_CMD} -e 's|%%MPICC%%|mpicc|g ; \
- s|%%MPICXX%%|mpicxx|g ; \
- s|%%MPIF77%%|mpif77|g ; \
+ @${REINPLACE_CMD} -e 's|%%MPICC%%|${LOCALBASE}/mpich2/bin/mpicc|g ; \
+ s|%%MPICXX%%|${LOCALBASE}/mpich2/bin/mpicxx|g ; \
+ s|%%MPIF77%%|${LOCALBASE}/mpich2/bin/mpif77|g ; \
s|%%CFLAGS%%|${CFLAGS}|g ; \
s|%%CXXFLAGS%%|${CXXFLAGS}|g ; \
s|%%FFLAGS%%|${FFLAGS}|g ; \