pkgsrc/math/metis/Makefile
jlam a80fd13efc Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
2008-03-04 17:57:17 +00:00

34 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.11 2008/03/04 18:12:59 jlam Exp $
DISTNAME= metis-4.0
CATEGORIES= math
MASTER_SITES= http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://glaros.dtc.umn.edu/gkhome/views/metis/
COMMENT= Unstructured graph partitioning and sparse matrix ordering system
PKG_DESTDIR_SUPPORT= user-destdir
BUILD_TARGET= default
INSTALLATION_DIRS= bin lib
do-install:
cd ${WRKSRC} && ${INSTALL_PROGRAM} graphchk kmetis mesh2dual \
mesh2nodal oemetis onmetis partdmesh partnmesh pmetis \
${DESTDIR}${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/libmetis.a ${DESTDIR}${PREFIX}/lib
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/metis
${INSTALL_DATA} ${WRKSRC}/Lib/*.h \
${DESTDIR}${PREFIX}/include/metis/
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/metis
${INSTALL_DATA} ${WRKSRC}/Doc/manual.ps \
${DESTDIR}${PREFIX}/share/doc/metis
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/metis
cd ${WRKSRC}/Graphs && ${INSTALL_DATA} 0README 4elt.graph \
metis.mesh test.mgraph \
${DESTDIR}${PREFIX}/share/examples/metis/
${INSTALL_DATA} ${WRKSRC}/Test/mtest.c \
${DESTDIR}${PREFIX}/share/examples/metis
.include "../../mk/bsd.pkg.mk"