aboutsummaryrefslogtreecommitdiffstats
path: root/math/parmetis
diff options
context:
space:
mode:
authorstephen <stephen@FreeBSD.org>2011-06-21 10:02:05 +0800
committerstephen <stephen@FreeBSD.org>2011-06-21 10:02:05 +0800
commit3d49721fdb34ec61ee9240b076e23d0d0a9b7c5b (patch)
tree142edbcf6198b9892e4bc2791bb3df5b6317eacb /math/parmetis
parent2cd34fe79d81f15d341fc6ed415fe0ff4b87e7e1 (diff)
downloadfreebsd-ports-gnome-3d49721fdb34ec61ee9240b076e23d0d0a9b7c5b.tar.gz
freebsd-ports-gnome-3d49721fdb34ec61ee9240b076e23d0d0a9b7c5b.tar.zst
freebsd-ports-gnome-3d49721fdb34ec61ee9240b076e23d0d0a9b7c5b.zip
- Add option to use /net/openmpi instead of net/mpich2
- portlint PR: ports/156331 Submitted by: Klaus Aehlig <aehlig@linta.de> Approved by: maho (mentor)
Diffstat (limited to 'math/parmetis')
-rw-r--r--math/parmetis/Makefile20
1 files changed, 13 insertions, 7 deletions
diff --git a/math/parmetis/Makefile b/math/parmetis/Makefile
index 238f16337172..d438bcaf5f93 100644
--- a/math/parmetis/Makefile
+++ b/math/parmetis/Makefile
@@ -14,21 +14,27 @@ MASTER_SITES= http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/
MAINTAINER= ports@FreeBSD.org
COMMENT= A package for parallel (mpi) unstructured graph partitioning
+.if !defined(WITH_OPENMPI)
RUN_DEPENDS= ${LOCALBASE}/bin/mpirun:${PORTSDIR}/net/mpich2
BUILD_DEPENDS= ${LOCALBASE}/bin/mpicc:${PORTSDIR}/net/mpich2
+.else
+RUN_DEPENDS= ${LOCALBASE}/mpi/openmpi/bin/mpirun:${PORTSDIR}/net/openmpi
+BUILD_DEPENDS= ${LOCALBASE}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi
+MAKE_ARGS += CC=${LOCALBASE}/mpi/openmpi/bin/mpicc LD=${LOCALBASE}/mpi/openmpi/bin/mpicc
+.endif
ALL_TARGET=
do-install:
- @${MKDIR} $(PREFIX)/lib/parmetis
- $(INSTALL_DATA) $(WRKSRC)/libmetis.a $(PREFIX)/lib/parmetis
- $(INSTALL_DATA) $(WRKSRC)/libparmetis.a $(PREFIX)/lib/parmetis
- @${MKDIR} $(PREFIX)/include/parmetis
- $(INSTALL_DATA) $(WRKSRC)/parmetis.h $(PREFIX)/include/parmetis
+ @${MKDIR} ${PREFIX}/lib/parmetis
+ ${INSTALL_DATA} ${WRKSRC}/libmetis.a ${PREFIX}/lib/parmetis
+ ${INSTALL_DATA} ${WRKSRC}/libparmetis.a ${PREFIX}/lib/parmetis
+ @${MKDIR} ${PREFIX}/include/parmetis
+ ${INSTALL_DATA} ${WRKSRC}/parmetis.h ${PREFIX}/include/parmetis
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
- $(INSTALL_DATA) ${WRKSRC}/Manual/manual.ps ${DOCSDIR}
- $(INSTALL_DATA) ${WRKSRC}/Manual/manual.pdf ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/Manual/manual.ps ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/Manual/manual.pdf ${DOCSDIR}
.endif
.include <bsd.port.mk>