summaryrefslogtreecommitdiff
path: root/games/fortunes-calvin
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/fortunes-calvin
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/fortunes-calvin')
-rw-r--r--games/fortunes-calvin/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/games/fortunes-calvin/Makefile b/games/fortunes-calvin/Makefile
index 0d79b349db8..e185d4cb49a 100644
--- a/games/fortunes-calvin/Makefile
+++ b/games/fortunes-calvin/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2006/11/09 08:36:46 rillig Exp $
+# $NetBSD: Makefile,v 1.5 2008/03/04 06:59:04 jlam Exp $
#
DISTNAME= fortunes-calvin-0.2
@@ -12,6 +12,8 @@ COMMENT= Fortunes from the famous Calvin & Hobbes comic strips
BUILD_DEPENDS+= fortune-strfile-[0-9]*:../../games/fortune-strfile
+PKG_DESTDIR_SUPPORT= user-destdir
+
STRFILE= ${LOCALBASE}/bin/strfile
WRKSRC= ${WRKDIR}
@@ -19,8 +21,10 @@ do-build:
${STRFILE} ${WRKDIR}/${DISTNAME}
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/games/fortune/
- ${INSTALL_DATA} ${WRKDIR}/${DISTNAME} ${PREFIX}/share/games/fortune/calvin
- ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}.dat ${PREFIX}/share/games/fortune/calvin.dat
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/games/fortune/
+ ${INSTALL_DATA} ${WRKDIR}/${DISTNAME} \
+ ${DESTDIR}${PREFIX}/share/games/fortune/calvin
+ ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}.dat \
+ ${DESTDIR}${PREFIX}/share/games/fortune/calvin.dat
.include "../../mk/bsd.pkg.mk"