summaryrefslogtreecommitdiff
path: root/games/knightcap-brain/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-04 06:59:03 +0000
committerjlam <jlam>2008-03-04 06:59:03 +0000
commit769a84077c1badca9f84e031b0acccd322865a99 (patch)
tree85dcef76c01a75047f6f6e519e34539fa17ae348 /games/knightcap-brain/Makefile
parent7b123f326cdc00a4b734669b2ce16963198987ed (diff)
downloadpkgsrc-769a84077c1badca9f84e031b0acccd322865a99.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'games/knightcap-brain/Makefile')
-rw-r--r--games/knightcap-brain/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/games/knightcap-brain/Makefile b/games/knightcap-brain/Makefile
index 6c33072ca1a..d459cae01da 100644
--- a/games/knightcap-brain/Makefile
+++ b/games/knightcap-brain/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2006/03/10 23:58:15 rillig Exp $
+# $NetBSD: Makefile,v 1.15 2008/03/04 06:59:04 jlam Exp $
DISTNAME= new_brain
PKGNAME= knightcap-brain-19980616
@@ -12,6 +12,8 @@ COMMENT= Book of losing moves for KnightCap
ONLY_FOR_PLATFORM= *-*-i386
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}
DIST_SUBDIR= ${PKGNAME_NOREV}
@@ -26,9 +28,10 @@ do-build:
> ${WRKSRC:Q}/newbrain.sh
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC:Q}/newbrain.sh ${PREFIX:Q}/bin/newbrain
- ${INSTALL_DATA_DIR} ${EGDIR:Q}
+ ${INSTALL_SCRIPT} ${WRKSRC:Q}/newbrain.sh \
+ ${DESTDIR}${PREFIX:Q}/bin/newbrain
+ ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR:Q}
${INSTALL_DATA} ${DISTDIR:Q}/${DIST_SUBDIR:Q}/new_brain.dat \
- ${EGDIR:Q}/brain.dat
+ ${DESTDIR}${EGDIR:Q}/brain.dat
.include "../../mk/bsd.pkg.mk"