diff options
author | Dennis Herrmann <dhn@FreeBSD.org> | 2011-09-01 17:46:30 +0000 |
---|---|---|
committer | Dennis Herrmann <dhn@FreeBSD.org> | 2011-09-01 17:46:30 +0000 |
commit | d5e533cc124e2bc15b84c0b22e2af0fda77ac602 (patch) | |
tree | d6227e3c0e49633ce3756befd5966ccbbac5260e /math/parmetis/Makefile | |
parent | Update python dependancy to 2.5+ (diff) |
- Update to 4.0
PR: ports/160126
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'math/parmetis/Makefile')
-rw-r--r-- | math/parmetis/Makefile | 57 |
1 files changed, 38 insertions, 19 deletions
diff --git a/math/parmetis/Makefile b/math/parmetis/Makefile index 7c803b0bf3b8..6065a8cc0623 100644 --- a/math/parmetis/Makefile +++ b/math/parmetis/Makefile @@ -6,38 +6,57 @@ # PORTNAME= ParMetis -PORTVERSION= 3.1 -PORTREVISION= 6 +PORTVERSION= 4.0 CATEGORIES= math parallel -MASTER_SITES= http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/ +MASTER_SITES= http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/%SUBDIR%/ +MASTER_SITE_SUBDIR= . OLD +DISTNAME= ${PORTNAME:L}-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= A package for parallel (mpi) unstructured graph partitioning -DEPRECATED= No more public distfiles -EXPIRATION_DATE= 2011-09-01 +OPTIONS= OPENMPI "Use openmpi instead of mpich2" off -.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 +USE_CMAKE= yes +USE_GMAKE= yes + +PORTDOCS= manual.pdf +PLIST_FILES= include/parmetis/parmetis.h \ + lib/parmetis/libmetis.a lib/parmetis/libparmetis.a +PLIST_DIRS= include/parmetis lib/parmetis + +.include <bsd.port.pre.mk> + +.if defined(WITH_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 +RUN_DEPENDS= ${LOCALBASE}/mpi/openmpi/bin/mpirun:${PORTSDIR}/net/openmpi +MPICC= ${LOCALBASE}/mpi/openmpi/bin/mpicc +.else +BUILD_DEPENDS= ${LOCALBASE}/bin/mpicc:${PORTSDIR}/net/mpich2 +RUN_DEPENDS= ${LOCALBASE}/bin/mpirun:${PORTSDIR}/net/mpich2 +MPICC= ${LOCALBASE}/bin/mpicc .endif -ALL_TARGET= +post-patch: + @${REINPLACE_CMD} -e \ + 's|BUILDDIR =.*|BUILDDIR = build| ; \ + s|make -C|$$(MAKE) -C|' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e \ + 's|"-O3"|""|' ${WRKSRC}/metis/GKlib/GKlibSystem.cmake + +do-configure: + @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \ + ${MAKEFILE} config prefix="${PREFIX}" cc="${MPICC}" 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 + ${INSTALL_DATA} ${WRKSRC}/include/parmetis.h ${PREFIX}/include/parmetis + @${MKDIR} ${PREFIX}/lib/parmetis + ${INSTALL_DATA} ${WRKSRC}/build/libmetis/libmetis.a ${PREFIX}/lib/parmetis + ${INSTALL_DATA} ${WRKSRC}/build/libparmetis/libparmetis.a ${PREFIX}/lib/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.pdf ${DOCSDIR} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |