summaryrefslogtreecommitdiff
path: root/math/parmetis/Makefile
diff options
context:
space:
mode:
authorStephen Montgomery-Smith <stephen@FreeBSD.org>2011-06-21 02:02:05 +0000
committerStephen Montgomery-Smith <stephen@FreeBSD.org>2011-06-21 02:02:05 +0000
commit9302dab78d14aa638d89a4bdc16be0884994dcee (patch)
treeeb7548989c164c3a4e9c5a11c9f4a6d5f9d5a23e /math/parmetis/Makefile
parentUpgrade to 0.3, and fix build with clang. (diff)
- 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/Makefile')
-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>