summaryrefslogtreecommitdiff
path: root/games/rtcw
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/rtcw
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/rtcw')
-rw-r--r--games/rtcw/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/games/rtcw/Makefile b/games/rtcw/Makefile
index 5c9c7492e1a..106359fadd7 100644
--- a/games/rtcw/Makefile
+++ b/games/rtcw/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2007/07/29 05:19:26 jlam Exp $
+# $NetBSD: Makefile,v 1.15 2008/03/04 06:59:05 jlam Exp $
DISTNAME= wolf-linux-1.33.x86
PKGNAME= rtcw-1.33
@@ -23,6 +23,8 @@ EMUL_MODULES.linux= base
# This package needs DRI support.
NOT_FOR_PLATFORM= NetBSD-*-*
+PKG_DESTDIR_SUPPORT= user-destdir
+
BUILD_DIRS= # empty
RTCWDIR= ${PREFIX}/lib/lokigames/rtcw
USE_TOOLS+= gtar
@@ -33,7 +35,7 @@ pre-extract:
${MKDIR} ${WRKSRC}
do-install:
- ${INSTALL_DATA_DIR} ${RTCWDIR}
- cd ${WRKSRC} && ${PAX} -rw -p am . ${RTCWDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${RTCWDIR}
+ cd ${WRKSRC} && ${PAX} -rw -p am . ${DESTDIR}${RTCWDIR}
.include "../../mk/bsd.pkg.mk"