summaryrefslogtreecommitdiff
path: root/math/mtl
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-02-04 14:51:44 +0000
committerjoerg <joerg@pkgsrc.org>2010-02-04 14:51:44 +0000
commit2e075cf1787b8794e1d31569633e71c27a53d81e (patch)
tree81a3e23530a37cc3cc045606120c4147937974bf /math/mtl
parent0a60aa8c1ca56929690908f15846791f81e29a33 (diff)
downloadpkgsrc-2e075cf1787b8794e1d31569633e71c27a53d81e.tar.gz
DESTDIR support
Diffstat (limited to 'math/mtl')
-rw-r--r--math/mtl/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/math/mtl/Makefile b/math/mtl/Makefile
index fe35f33ca60..c3035397e64 100644
--- a/math/mtl/Makefile
+++ b/math/mtl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2008/03/10 10:33:38 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2010/02/04 14:51:44 joerg Exp $
DISTNAME= mtl-2.1.2-21
PKGNAME= mtl-2.1.2.21
@@ -9,18 +9,22 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.osl.iu.edu/research/mtl/
COMMENT= Matrix Template Library
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= yes
NO_BUILD= yes
CONFLICTS+= mtl-2.1.2-[0-9]*
USE_LANGUAGES= c c++
+INSTALLATION_DIRS+= share/doc/mtl share/examples/mtl
+
+INSTALL_MAKE_FLAGS+= includedir=${DESTDIR}${PREFIX}/include/mtl
+
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mtl
${INSTALL_DATA} ${WRKSRC}/contrib/examples/*.cc \
- ${PREFIX}/share/examples/mtl
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mtl
+ ${DESTDIR}${PREFIX}/share/examples/mtl
cd ${WRKSRC} && ${INSTALL_DATA} INSTALL LICENSE README \
- ${PREFIX}/share/doc/mtl
+ ${DESTDIR}${PREFIX}/share/doc/mtl
.include "../../mk/bsd.pkg.mk"