summaryrefslogtreecommitdiff
path: root/games/xdoom
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 06:59:03 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 06:59:03 +0000
commit0c6a3253fe7d652e4d744555cc7352fffd4d103a (patch)
tree85dcef76c01a75047f6f6e519e34539fa17ae348 /games/xdoom
parent4e56d99acab2b215405ccc900e56d697c30ae727 (diff)
downloadpkgsrc-0c6a3253fe7d652e4d744555cc7352fffd4d103a.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'games/xdoom')
-rw-r--r--games/xdoom/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/games/xdoom/Makefile b/games/xdoom/Makefile
index 05ffd9f3a0b..3ee7002f6f9 100644
--- a/games/xdoom/Makefile
+++ b/games/xdoom/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2008/01/19 09:16:23 wiz Exp $
+# $NetBSD: Makefile,v 1.43 2008/03/04 06:59:06 jlam Exp $
DISTNAME= linuxdoom-1.10
PKGNAME= xdoom-1.10
@@ -15,6 +15,8 @@ COMMENT= 3D shoot-em-up for 8-bit X11 displays
LICENSE= xdoom-license
+PKG_DESTDIR_SUPPORT= user-destdir
+
EXTRACT_ONLY= doomsrc.zip
EXTRACT_OPTX_ZIP= -qo
@@ -46,10 +48,13 @@ do-build:
cd ${WRKSRC}/sndserv && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS}
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${DISTNAME}/linux/linuxxdoom ${PREFIX}/bin/xdoom
- ${INSTALL_PROGRAM} ${WRKSRC}/sndserv/linux/sndserver ${PREFIX}/bin/sndserver
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doom
- ${GUNZIP_CMD} -c ${DISTDIR}/doom-1.8.wad.gz > ${PREFIX}/share/doom/doom1.wad
+ ${INSTALL_PROGRAM} ${WRKSRC}/${DISTNAME}/linux/linuxxdoom \
+ ${DESTDIR}${PREFIX}/bin/xdoom
+ ${INSTALL_PROGRAM} ${WRKSRC}/sndserv/linux/sndserver \
+ ${DESTDIR}${PREFIX}/bin/sndserver
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doom
+ ${GUNZIP_CMD} -c ${DISTDIR}/doom-1.8.wad.gz \
+ > ${DESTDIR}${PREFIX}/share/doom/doom1.wad
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"