summaryrefslogtreecommitdiff
path: root/games/exchess-book-small/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/exchess-book-small/Makefile')
-rw-r--r--games/exchess-book-small/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/games/exchess-book-small/Makefile b/games/exchess-book-small/Makefile
index d50fe3e0e73..aa76bb698a2 100644
--- a/games/exchess-book-small/Makefile
+++ b/games/exchess-book-small/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2006/03/04 21:29:41 jlam Exp $
+# $NetBSD: Makefile,v 1.14 2008/03/04 06:59:04 jlam Exp $
DISTNAME= small
PKGNAME= ${CHESS_ENGINE}-book-${DISTNAME}-20000511
@@ -14,6 +14,8 @@ DEPENDS+= exchess-[0-9]*:../../games/exchess
CONFLICTS= ${CHESS_ENGINE}-book-[0-9]*
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}
CHESS_ENGINE= exchess
DIST_SUBDIR= chessbooks
@@ -39,7 +41,7 @@ do-build:
cd ${WRKSRC} && exchess < ${CMDFILE}
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"