summaryrefslogtreecommitdiff
path: root/games/crafty-doc
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 06:59:03 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 06:59:03 +0000
commit0c6a3253fe7d652e4d744555cc7352fffd4d103a (patch)
tree85dcef76c01a75047f6f6e519e34539fa17ae348 /games/crafty-doc
parent4e56d99acab2b215405ccc900e56d697c30ae727 (diff)
downloadpkgsrc-0c6a3253fe7d652e4d744555cc7352fffd4d103a.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'games/crafty-doc')
-rw-r--r--games/crafty-doc/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/games/crafty-doc/Makefile b/games/crafty-doc/Makefile
index 4ca6db21032..41ccb8db969 100644
--- a/games/crafty-doc/Makefile
+++ b/games/crafty-doc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2006/03/04 21:29:40 jlam Exp $
+# $NetBSD: Makefile,v 1.11 2008/03/04 06:59:03 jlam Exp $
DISTNAME= crafty-doc-18.0
CATEGORIES= games
@@ -8,6 +8,8 @@ DISTFILES= crafty.doc.ps
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Documentation for Crafty chess engine
+PKG_DESTDIR_SUPPORT= user-destdir
+
DIST_SUBDIR= ${PKGNAME_NOREV}
EXTRACT_ONLY= # empty
NO_CONFIGURE= yes
@@ -16,9 +18,10 @@ NO_BUILD= yes
DOCDIR= ${PREFIX}/share/doc/crafty
do-install:
- ${INSTALL_DATA_DIR} ${DOCDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
for file in ${DISTFILES}; do \
- ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/$${file} ${DOCDIR}; \
+ ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/$${file} \
+ ${DESTDIR}${DOCDIR}; \
done
.include "../../mk/bsd.pkg.mk"