summaryrefslogtreecommitdiff
path: root/math/newmat
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 17:57:17 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 17:57:17 +0000
commita80fd13efc426f96e55870df48a2030daea0f14b (patch)
treeea772f1017a149bdf8c86107c24d16246695614e /math/newmat
parent31c6c3a796edf9dd9bae5586339c5e2e023ca408 (diff)
downloadpkgsrc-a80fd13efc426f96e55870df48a2030daea0f14b.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'math/newmat')
-rw-r--r--math/newmat/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/math/newmat/Makefile b/math/newmat/Makefile
index 42ea8bc3e9d..8e1e7934140 100644
--- a/math/newmat/Makefile
+++ b/math/newmat/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2006/09/09 02:43:10 obache Exp $
+# $NetBSD: Makefile,v 1.11 2008/03/04 18:12:59 jlam Exp $
#
DISTNAME= newmat10 # actually newmat10B, but no such distfile
@@ -11,6 +11,8 @@ MAINTAINER= jschauma@NetBSD.org
HOMEPAGE= http://www.robertnz.net/ol_doc.htm
COMMENT= Newmat C++ Matrix Library
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}
DIST_SUBDIR= newmat10B
MAKE_FILE= nm_cc.mak
@@ -25,12 +27,12 @@ DOCDIR= ${PREFIX}/share/doc/html/newmat
INSTALLATION_DIRS= lib
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/include/newmat
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/newmat
.for header in ${HEADERS}
- ${INSTALL_DATA} ${WRKSRC}/${header} ${PREFIX}/include/newmat
+ ${INSTALL_DATA} ${WRKSRC}/${header} ${DESTDIR}${PREFIX}/include/newmat
.endfor
- ${INSTALL_DATA} ${WRKSRC}/libnewmat.a ${PREFIX}/lib
- ${INSTALL_DATA_DIR} ${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/nm10.htm ${DOCDIR}/index.html
+ ${INSTALL_DATA} ${WRKSRC}/libnewmat.a ${DESTDIR}${PREFIX}/lib
+ ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/nm10.htm ${DESTDIR}${DOCDIR}/index.html
.include "../../mk/bsd.pkg.mk"