summaryrefslogtreecommitdiff
path: root/emulators/openmsx
diff options
context:
space:
mode:
authorjoerg <joerg>2010-01-29 23:01:53 +0000
committerjoerg <joerg>2010-01-29 23:01:53 +0000
commit5d6b5743166897c719c77f671c1d6455a7626b77 (patch)
tree5e367561d2fd2a0e21379350aae8f8561765e096 /emulators/openmsx
parentc3b95601130cf3d084bb837949b6fb43de6d4a05 (diff)
downloadpkgsrc-5d6b5743166897c719c77f671c1d6455a7626b77.tar.gz
DESTDIR support
Diffstat (limited to 'emulators/openmsx')
-rw-r--r--emulators/openmsx/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/emulators/openmsx/Makefile b/emulators/openmsx/Makefile
index 85c4bde96de..45e8c5178b0 100644
--- a/emulators/openmsx/Makefile
+++ b/emulators/openmsx/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2010/01/18 09:58:49 wiz Exp $
+# $NetBSD: Makefile,v 1.23 2010/01/29 23:01:53 joerg Exp $
#
DISTNAME= openmsx-0.6.2
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://openmsx.sourceforge.net/
COMMENT= MSX emulator that aims for perfection
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= gmake
USE_LANGUAGES= c c++
HAS_CONFIGURE= yes
@@ -37,8 +39,11 @@ post-build:
${ECHO} 'exec ${PREFIX}/openmsx/bin/openmsx $$@' \
) > ${WRKSRC}/openmsx.sh
+INSTALLATION_DIRS+= bin
+INSTALL_MAKE_FLAGS+= OPENMSX_INSTALL=${DESTDIR}${PREFIX}/openmsx
+
post-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/openmsx.sh ${PREFIX}/bin/openmsx
+ ${INSTALL_SCRIPT} ${WRKSRC}/openmsx.sh ${DESTDIR}${PREFIX}/bin/openmsx
.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"