summaryrefslogtreecommitdiff
path: root/emulators/gnuboy-sdl
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-sdl
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-sdl')
-rw-r--r--emulators/gnuboy-sdl/Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/emulators/gnuboy-sdl/Makefile b/emulators/gnuboy-sdl/Makefile
index 459c3a8f9a5..ed9c467b7ab 100644
--- a/emulators/gnuboy-sdl/Makefile
+++ b/emulators/gnuboy-sdl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2006/06/12 16:28:06 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2008/03/03 19:21:38 jlam Exp $
DISTNAME= gnuboy-1.0.3
PKGNAME= ${DISTNAME:S/-/-sdl-/}
@@ -10,18 +10,21 @@ MAINTAINER= dillo@NetBSD.org
HOMEPAGE= http://gnuboy.unix-fu.org/
COMMENT= SDL port of Gameboy emulator
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS+=--with-sdl
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --with-sdl
.include "../../devel/SDL/buildlink3.mk"
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gnuboy-sdl
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnuboy-sdl
- ${INSTALL_PROGRAM} ${WRKSRC}/sdlgnuboy ${PREFIX}/bin/gnuboy-sdl
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/gnuboy-sdl
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/gnuboy-sdl
+ ${INSTALL_PROGRAM} ${WRKSRC}/sdlgnuboy \
+ ${DESTDIR}${PREFIX}/bin/gnuboy-sdl
${INSTALL_DATA} ${WRKSRC}/etc/sample.rc \
- ${PREFIX}/share/examples/gnuboy-sdl/
+ ${DESTDIR}${PREFIX}/share/examples/gnuboy-sdl/
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/docs/* \
- ${PREFIX}/share/doc/gnuboy-sdl/
+ ${DESTDIR}${PREFIX}/share/doc/gnuboy-sdl/
.include "../../mk/bsd.pkg.mk"