summaryrefslogtreecommitdiff
path: root/emulators/m1
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/m1
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/m1')
-rw-r--r--emulators/m1/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/emulators/m1/Makefile b/emulators/m1/Makefile
index 070cafcf8b3..3d669bf12d0 100644
--- a/emulators/m1/Makefile
+++ b/emulators/m1/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2007/07/29 05:18:37 jlam Exp $
+# $NetBSD: Makefile,v 1.10 2008/03/03 19:21:38 jlam Exp $
DISTNAME= m1074b2-lnx
PKGNAME= m1-0.7.4c
@@ -14,16 +14,18 @@ COMMENT= Arcade video and pinball game sound emulator (Linux binary)
EMUL_PLATFORMS= linux-i386
EMUL_MODULES.linux= compat
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/m1-0.7.4
BUILD_DIRS= # empty
INSTALLATION_DIRS= bin
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/m1 ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/m1
- ${INSTALL_DATA} ${WRKSRC}/m1.txt ${PREFIX}/share/doc/m1
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/m1
- ${INSTALL_DATA} ${WRKSRC}/m1.ini ${PREFIX}/share/examples/m1
+ ${INSTALL_PROGRAM} ${WRKSRC}/m1 ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/m1
+ ${INSTALL_DATA} ${WRKSRC}/m1.txt ${DESTDIR}${PREFIX}/share/doc/m1
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/m1
+ ${INSTALL_DATA} ${WRKSRC}/m1.ini ${DESTDIR}${PREFIX}/share/examples/m1
.include "../../mk/bsd.pkg.mk"