summaryrefslogtreecommitdiff
path: root/games/gate88
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-06-20 01:09:05 +0000
committerjoerg <joerg@pkgsrc.org>2008-06-20 01:09:05 +0000
commit3b0d97b0de8516db29699676c860489da3f7f0e1 (patch)
treebb388f6b2532587595653e67cce25229ed050cb8 /games/gate88
parent10abca39942a8f34d088f39ccc073fee44271274 (diff)
downloadpkgsrc-3b0d97b0de8516db29699676c860489da3f7f0e1.tar.gz
Add DESTDIR support.
Diffstat (limited to 'games/gate88')
-rw-r--r--games/gate88/Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/games/gate88/Makefile b/games/gate88/Makefile
index 95179258999..9f6dbe931c1 100644
--- a/games/gate88/Makefile
+++ b/games/gate88/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/03/14 01:01:56 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2008/06/20 01:09:19 joerg Exp $
#
DISTNAME= Gate88_Mar19_05
@@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.queasygames.com/gate88/
COMMENT= Deep space intergalactic battle
+PKG_DESTDIR_SUPPORT= user-destdir
+
EMUL_PLATFORMS= linux-i386
EMUL_MODULES.linux= base x11
@@ -31,21 +33,21 @@ do-build:
sed "s,@PREFIX@,${PREFIX}," files/gate88server > \
${WRKSRC}/gate88server.sh
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/gate88.sh ${PREFIX}/bin/gate88
- ${INSTALL_SCRIPT} ${WRKSRC}/gate88server.sh ${PREFIX}/bin/gate88server
- ${INSTALL_PROGRAM} ${WRKSRC}/gate88 ${PREFIX}/lib/gate88
+ ${INSTALL_SCRIPT} ${WRKSRC}/gate88.sh ${DESTDIR}${PREFIX}/bin/gate88
+ ${INSTALL_SCRIPT} ${WRKSRC}/gate88server.sh ${DESTDIR}${PREFIX}/bin/gate88server
+ ${INSTALL_PROGRAM} ${WRKSRC}/gate88 ${DESTDIR}${PREFIX}/lib/gate88
for i in audio.conf colours.conf debug.conf irc_client.conf \
irc_connection.conf masterserver.conf multiplayer.conf \
practice.conf server.conf textcolours.conf video.conf; do \
- ${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/lib/gate88; \
+ ${INSTALL_DATA} ${WRKSRC}/$$i ${DESTDIR}${PREFIX}/lib/gate88; \
done
for i in LGPL_license.txt license.txt readme.txt manual.html; do \
- ${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/share/doc/gate88; \
+ ${INSTALL_DATA} ${WRKSRC}/$$i ${DESTDIR}${PREFIX}/share/doc/gate88; \
done
- ${INSTALL_LIB} ${WRKSRC}/lib/* ${PREFIX}/lib/gate88/lib
- ${INSTALL_DATA} ${WRKSRC}/music/*.ogg ${PREFIX}/lib/gate88/music
+ ${INSTALL_LIB} ${WRKSRC}/lib/* ${DESTDIR}${PREFIX}/lib/gate88/lib
+ ${INSTALL_DATA} ${WRKSRC}/music/*.ogg ${DESTDIR}${PREFIX}/lib/gate88/music
${INSTALL_DATA} ${WRKSRC}/music/non-ingame/*.ogg \
- ${PREFIX}/lib/gate88/music/non-ingame
- ${INSTALL_DATA} ${WRKSRC}/sound/* ${PREFIX}/lib/gate88/sound
+ ${DESTDIR}${PREFIX}/lib/gate88/music/non-ingame
+ ${INSTALL_DATA} ${WRKSRC}/sound/* ${DESTDIR}${PREFIX}/lib/gate88/sound
.include "../../mk/bsd.pkg.mk"