summaryrefslogtreecommitdiff
path: root/games/fortunes-futurama
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-futurama
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-futurama')
-rw-r--r--games/fortunes-futurama/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/games/fortunes-futurama/Makefile b/games/fortunes-futurama/Makefile
index 28401064a4d..1b5e57af618 100644
--- a/games/fortunes-futurama/Makefile
+++ b/games/fortunes-futurama/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2006/11/09 08:44:04 rillig Exp $
+# $NetBSD: Makefile,v 1.4 2008/03/04 06:59:04 jlam Exp $
#
DISTNAME= fortunes-futurama-0.2
@@ -12,6 +12,8 @@ COMMENT= Fortunes from the Futurama animated TV series
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} ${WRKSRC}/${DISTNAME} ${PREFIX}/share/games/fortune/futurama
- ${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.dat ${PREFIX}/share/games/fortune/futurama.dat
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/games/fortune/
+ ${INSTALL_DATA} ${WRKSRC}/${DISTNAME} \
+ ${DESTDIR}${PREFIX}/share/games/fortune/futurama
+ ${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.dat \
+ ${DESTDIR}${PREFIX}/share/games/fortune/futurama.dat
.include "../../mk/bsd.pkg.mk"