From 9302dab78d14aa638d89a4bdc16be0884994dcee Mon Sep 17 00:00:00 2001 From: Stephen Montgomery-Smith Date: Tue, 21 Jun 2011 02:02:05 +0000 Subject: - Add option to use /net/openmpi instead of net/mpich2 - portlint PR: ports/156331 Submitted by: Klaus Aehlig Approved by: maho (mentor) --- math/parmetis/Makefile | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'math/parmetis/Makefile') 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 -- cgit v1.2.3