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