summaryrefslogtreecommitdiff
path: root/math/parmetis/Makefile
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2013-12-27 23:33:34 +0000
committerJohn Marino <marino@FreeBSD.org>2013-12-27 23:33:34 +0000
commit3f1612cf1df33ea646567cb3326d16818a4cfeb1 (patch)
tree6d28e215efa498fa979ccbb30b2a80cbe4872aa2 /math/parmetis/Makefile
parent- Modernize dos2unix and gmake (diff)
math/parmetis: Add metis.h file, support stage
Install metis.h file in order to support software that requires both metis and parmetis such as Trilino <http://trilinos.org>. While here, support stage. PR: ports/179930 Approved by: maintainer timeout (6 months)
Diffstat (limited to 'math/parmetis/Makefile')
-rw-r--r--math/parmetis/Makefile35
1 files changed, 20 insertions, 15 deletions
diff --git a/math/parmetis/Makefile b/math/parmetis/Makefile
index baeb0e6ac833..cfe0c38c1ff5 100644
--- a/math/parmetis/Makefile
+++ b/math/parmetis/Makefile
@@ -3,7 +3,7 @@
PORTNAME= ParMetis
PORTVERSION= 4.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= math parallel
MASTER_SITES= http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/%SUBDIR%/
MASTER_SITE_SUBDIR= . OLD
@@ -23,12 +23,15 @@ OPENMPI_DESC= Use openmpi instead of mpich2
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
-PLIST_DIRS= include/parmetis lib/parmetis
+PLIST_FILES= include/parmetis/metis.h \
+ include/parmetis/parmetis.h \
+ lib/parmetis/libmetis.a \
+ lib/parmetis/libparmetis.a \
+ ${DOCSDIR}/manual.pdf
+PLIST_DIRS= include/parmetis \
+ lib/parmetis \
+ ${DOCSDIR}
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPENMPI}
@@ -53,14 +56,16 @@ do-configure:
${MAKEFILE} config prefix="${PREFIX}" cc="${MPICC}"
do-install:
- @${MKDIR} ${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 ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/manual/manual.pdf ${DOCSDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${PREFIX}/include/parmetis \
+ ${STAGEDIR}${PREFIX}/lib/parmetis \
+ ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/include/parmetis.h \
+ ${WRKSRC}/metis/include/metis.h \
+ ${STAGEDIR}${PREFIX}/include/parmetis
+ ${INSTALL_DATA} ${WRKSRC}/build/libmetis/libmetis.a \
+ ${STAGEDIR}${PREFIX}/lib/parmetis
+ ${INSTALL_DATA} ${WRKSRC}/build/libparmetis/libparmetis.a \
+ ${STAGEDIR}${PREFIX}/lib/parmetis
+ ${INSTALL_DATA} ${WRKSRC}/manual/manual.pdf ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>