summaryrefslogtreecommitdiff
path: root/devel/sgi-stl-docs
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 17:45:33 +0000
committerjlam <jlam>2008-03-03 17:45:33 +0000
commit7a1142123798f48c48fc2d1fe38690a6b94d1df7 (patch)
tree620d08cc8bf79f9bacb7746632192670c7d6350d /devel/sgi-stl-docs
parente629efdae96bb93a089e74409a36149a86e10f81 (diff)
downloadpkgsrc-7a1142123798f48c48fc2d1fe38690a6b94d1df7.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/sgi-stl-docs')
-rw-r--r--devel/sgi-stl-docs/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/devel/sgi-stl-docs/Makefile b/devel/sgi-stl-docs/Makefile
index 3361b4c3fc1..db2c7070f4d 100644
--- a/devel/sgi-stl-docs/Makefile
+++ b/devel/sgi-stl-docs/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2006/06/17 21:03:34 rillig Exp $
+# $NetBSD: Makefile,v 1.11 2008/03/03 17:45:37 jlam Exp $
DISTNAME= STL_doc
PKGNAME= sgi-stl-docs-3.3
@@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.sgi.com/tech/stl/
COMMENT= SGI Standard Template Library Programmer's Guide
+PKG_DESTDIR_SUPPORT= user-destdir
+
DIST_SUBDIR= ${PKGNAME_NOREV}
NO_CONFIGURE= yes
@@ -18,10 +20,10 @@ NO_BUILD= yes
HTMLDOCDIR= share/doc/sgi-stl/html
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/${HTMLDOCDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${HTMLDOCDIR}
cd ${WRKSRC}; for file in `${GREP} "^${HTMLDOCDIR}/" ${PLIST_SRC} \
| ${SED} "s,^${HTMLDOCDIR}/,,g"`; do \
- ${INSTALL_DATA} $${file} ${PREFIX}/${HTMLDOCDIR}/$${file}; \
+ ${INSTALL_DATA} $${file} ${DESTDIR}${PREFIX}/${HTMLDOCDIR}/$${file}; \
done
.include "../../mk/bsd.pkg.mk"