summaryrefslogtreecommitdiff
path: root/emulators/arnold/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 19:21:37 +0000
committerjlam <jlam>2008-03-03 19:21:37 +0000
commitcdc5e6dd9688136784a32410486ee5582c6bea45 (patch)
treec5e0c30c0b353fd2092305665ed106c2ef4ca346 /emulators/arnold/Makefile
parent10c92f44a52d654ee28ddd9184c9ea6d81284467 (diff)
downloadpkgsrc-cdc5e6dd9688136784a32410486ee5582c6bea45.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'emulators/arnold/Makefile')
-rw-r--r--emulators/arnold/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/emulators/arnold/Makefile b/emulators/arnold/Makefile
index 081b343dcd7..5547ec771ed 100644
--- a/emulators/arnold/Makefile
+++ b/emulators/arnold/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2008/02/27 12:52:41 rillig Exp $
+# $NetBSD: Makefile,v 1.18 2008/03/03 19:21:37 jlam Exp $
#
DISTNAME= arnsrc27012002
@@ -12,6 +12,8 @@ MAINTAINER= dillo@NetBSD.org
HOMEPAGE= http://arnold.emuunlim.com/
COMMENT= Amstrad CPC, Amstrad CPC+ and KC Compact emulator
+PKG_DESTDIR_SUPPORT= user-destdir
+
# we want case sensitive file names.
EXTRACT_OPTS_ZIP= -aqo
@@ -27,9 +29,10 @@ MAKE_ENV+= SHAREDIR=${SHAREDIR}
AUTO_MKDIRS= yes
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/arnold ${PREFIX}/bin
- cd ${WRKSRC}/roms && pax -wr * ${SHAREDIR}/roms/
- cd ${WRKSRC} && ${INSTALL_DATA} readme.* ${PREFIX}/share/doc/arnold
+ ${INSTALL_PROGRAM} ${WRKSRC}/arnold ${DESTDIR}${PREFIX}/bin
+ cd ${WRKSRC}/roms && pax -wr * ${DESTDIR}${SHAREDIR}/roms/
+ cd ${WRKSRC} && ${INSTALL_DATA} readme.* \
+ ${DESTDIR}${PREFIX}/share/doc/arnold
.include "../../mk/oss.buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"