summaryrefslogtreecommitdiff
path: root/emulators/swarm
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/swarm
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/swarm')
-rw-r--r--emulators/swarm/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/emulators/swarm/Makefile b/emulators/swarm/Makefile
index 3eb9eadde9f..4ffd0b4ec76 100644
--- a/emulators/swarm/Makefile
+++ b/emulators/swarm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2006/06/01 21:02:01 joerg Exp $
+# $NetBSD: Makefile,v 1.15 2008/03/03 19:21:38 jlam Exp $
#
DISTNAME= swarm-0.61
@@ -9,6 +9,8 @@ MAINTAINER= agc@NetBSD.org
HOMEPAGE= http://www.cl.cam.ac.uk/~mwd24/phd/swarm.html
COMMENT= Software arm7M core emulator
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/swarm
BUILD_DIRS= src
@@ -17,8 +19,9 @@ USE_LANGUAGES= c++
INSTALLATION_DIRS= bin
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/src/swarm ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/swarm
- ${INSTALL_DATA} ${WRKSRC}/doc/swarm.pdf ${PREFIX}/share/doc/swarm
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/swarm ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/swarm
+ ${INSTALL_DATA} ${WRKSRC}/doc/swarm.pdf \
+ ${DESTDIR}${PREFIX}/share/doc/swarm
.include "../../mk/bsd.pkg.mk"