diff options
Diffstat (limited to 'math/sdpara/Makefile')
-rw-r--r-- | math/sdpara/Makefile | 20 |
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 ; \ |