summaryrefslogtreecommitdiff
path: root/games/colchess-book-large
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/colchess-book-large
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/colchess-book-large')
-rw-r--r--games/colchess-book-large/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/games/colchess-book-large/Makefile b/games/colchess-book-large/Makefile
index 3378d170cd6..356abf6b296 100644
--- a/games/colchess-book-large/Makefile
+++ b/games/colchess-book-large/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2006/03/04 21:29:40 jlam Exp $
+# $NetBSD: Makefile,v 1.13 2008/03/04 06:59:03 jlam Exp $
DISTNAME= book_large
PKGNAME= ${CHESS_ENGINE}-book-large-20000512
@@ -13,6 +13,8 @@ DEPENDS+= colchess>=7.0:../../games/colchess
CONFLICTS= ${CHESS_ENGINE}-book-[0-9]*
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}
CHESS_ENGINE= colchess
DIST_SUBDIR= chessbooks
@@ -28,7 +30,7 @@ do-build:
cd ${WRKSRC}; ${LN} ${DISTNAME}.dat ${BOOK_FILE}
do-install:
- ${INSTALL_DATA_DIR} ${BOOKDIR}
- ${INSTALL_DATA} ${WRKSRC}/${BOOK_FILE} ${BOOKDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${BOOKDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${BOOK_FILE} ${DESTDIR}${BOOKDIR}
.include "../../mk/bsd.pkg.mk"