summaryrefslogtreecommitdiff
path: root/emulators/gnuboy
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-03 19:21:37 +0000
committerjlam <jlam@pkgsrc.org>2008-03-03 19:21:37 +0000
commit0bb78c6c9d3855e92497417696475484322d451c (patch)
treec5e0c30c0b353fd2092305665ed106c2ef4ca346 /emulators/gnuboy
parent9bd3464e7e916d97f1e733a71b79c48999897987 (diff)
downloadpkgsrc-0bb78c6c9d3855e92497417696475484322d451c.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'emulators/gnuboy')
-rw-r--r--emulators/gnuboy/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/emulators/gnuboy/Makefile b/emulators/gnuboy/Makefile
index 1aebc3969c2..5eaa5d57d50 100644
--- a/emulators/gnuboy/Makefile
+++ b/emulators/gnuboy/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2007/11/25 11:52:44 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2008/03/03 19:21:38 jlam Exp $
DISTNAME= gnuboy-1.0.3
PKGREVISION= 2
@@ -9,18 +9,20 @@ MAINTAINER= njl@sdf.lonestar.org
#HOMEPAGE= http://gnuboy.unix-fu.org/
COMMENT= Gameboy emulator
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= yes
INSTALLATION_DIRS= bin
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gnuboy
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnuboy
- ${INSTALL_PROGRAM} ${WRKSRC}/xgnuboy ${PREFIX}/bin/
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/gnuboy
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/gnuboy
+ ${INSTALL_PROGRAM} ${WRKSRC}/xgnuboy ${DESTDIR}${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/etc/sample.rc \
- ${PREFIX}/share/examples/gnuboy/
+ ${DESTDIR}${PREFIX}/share/examples/gnuboy/
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/docs/* \
- ${PREFIX}/share/doc/gnuboy/
+ ${DESTDIR}${PREFIX}/share/doc/gnuboy/
BUILDLINK_DEPMETHOD.libXt?= build