diff options
author | John Marino <marino@FreeBSD.org> | 2013-12-27 22:56:50 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2013-12-27 22:56:50 +0000 |
commit | 3a05d17f7d3e0813615858b9efbc12db0d20ee7e (patch) | |
tree | 2fad524a3850a76b505d35ade725c15d20178746 | |
parent | Stage support (diff) |
math/parmetis: Unbreak on FreeBSD 10+
ParMetis requires both cmake and gmake. Apparently gmake sets ${MAKE}
to value of "make" if undefined, and this causes the bmake to be launched
for subdirectories rather than gmake. That's the cause of the build
failure for FreeBSD 10+. The eventual fix using MAKE_ARGS took me hours
to figure out, this drove me crazy!
Fix covered by portmgr general blanket for ports modernization (bmake).
-rw-r--r-- | math/parmetis/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/math/parmetis/Makefile b/math/parmetis/Makefile index a4c455cda986..baeb0e6ac833 100644 --- a/math/parmetis/Makefile +++ b/math/parmetis/Makefile @@ -10,7 +10,7 @@ MASTER_SITE_SUBDIR= . OLD DISTNAME= ${PORTNAME:L}-${PORTVERSION} MAINTAINER= bf@FreeBSD.org -COMMENT= A package for parallel (mpi) unstructured graph partitioning +COMMENT= Package for parallel (mpi) unstructured graph partitioning LICENSE= METIS LICENSE_NAME= University of Minnesota METIS License @@ -20,9 +20,9 @@ LICENSE_PERMS= auto-accept OPTIONS_DEFINE= OPENMPI DOCS OPENMPI_DESC= Use openmpi instead of mpich2 -USES= cmake -USE_GMAKE= yes +USES= cmake gmake +MAKE_ARGS+= MAKEFLAGS=MAKE=${GMAKE} PORTDOCS= manual.pdf PLIST_FILES= include/parmetis/parmetis.h \ lib/parmetis/libmetis.a lib/parmetis/libparmetis.a @@ -44,12 +44,12 @@ MPICC= ${LOCALBASE}/bin/mpicc post-patch: @${REINPLACE_CMD} -e \ 's|BUILDDIR =.*|BUILDDIR = build| ; \ - s|make -C|$$(MAKE) -C|' ${WRKSRC}/Makefile + s|make -C|${MAKE_CMD} -C|' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e \ 's|"-O3"|""|' ${WRKSRC}/metis/GKlib/GKlibSystem.cmake do-configure: - @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \ + @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \ ${MAKEFILE} config prefix="${PREFIX}" cc="${MPICC}" do-install: |