aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authormva <mva@FreeBSD.org>2014-01-18 03:54:14 +0800
committermva <mva@FreeBSD.org>2014-01-18 03:54:14 +0800
commitac63d53d4fda5c3db922a84bd52e253b267028b7 (patch)
tree296ae26d2e7a9c586ec787aa36c84d8d04056cda /games
parent492e418d1323e0658a394d1fafb4521c2684f38e (diff)
downloadfreebsd-ports-gnome-ac63d53d4fda5c3db922a84bd52e253b267028b7.tar.gz
freebsd-ports-gnome-ac63d53d4fda5c3db922a84bd52e253b267028b7.tar.zst
freebsd-ports-gnome-ac63d53d4fda5c3db922a84bd52e253b267028b7.zip
- Enable stagedir support
Diffstat (limited to 'games')
-rw-r--r--games/rt2-demo/Makefile3
-rw-r--r--games/rt2-demo/files/do-install17
-rw-r--r--games/rt2-demo/pkg-plist1
3 files changed, 11 insertions, 10 deletions
diff --git a/games/rt2-demo/Makefile b/games/rt2-demo/Makefile
index 0a853d98699b..6f67a8534576 100644
--- a/games/rt2-demo/Makefile
+++ b/games/rt2-demo/Makefile
@@ -17,8 +17,7 @@ NO_WRKSUBDIR= yes
NO_BUILD= yes
USE_LINUX= yes
-NO_STAGE= yes
do-install:
- @${SH} ${FILESDIR}/do-install ${PREFIX} ${DISTDIR}
+ @${SH} ${FILESDIR}/do-install ${STAGEDIR} ${PREFIX} ${DISTDIR}
.include <bsd.port.mk>
diff --git a/games/rt2-demo/files/do-install b/games/rt2-demo/files/do-install
index 8cf85360bd69..b2aaecbe456a 100644
--- a/games/rt2-demo/files/do-install
+++ b/games/rt2-demo/files/do-install
@@ -1,17 +1,18 @@
#!/bin/sh
PATH=/bin:/usr/bin
-PREFIX=$1
-DISTDIR=$2
-BINDIR=${PREFIX}/bin
-LIBDIR=${PREFIX}/lib/rt2_demo
+DESTDIR=$1
+PREFIX=$2
+DISTDIR=$3
+BINDIR=bin
+LIBDIR=lib/rt2_demo
set -e
-mkdir -p ${LIBDIR}/
+mkdir -p ${DESTDIR}${PREFIX}/${LIBDIR}/
SKIP=`strings ${DISTDIR}/rt2-demo.run | head -10 | grep ^skip= | cut -d= -f2`
tail +$SKIP ${DISTDIR}/rt2-demo.run | \
- tar -C ${LIBDIR}/ -xz -f - --exclude rt2_demo --exclude rt2_demo.ppc
+ tar -C ${DESTDIR}${PREFIX}/${LIBDIR}/ -xz -f - --exclude rt2_demo --exclude rt2_demo.ppc
-brandelf -t Linux ${LIBDIR}/rt2_demo.x86
-ln -sf ${LIBDIR}/rt2_demo.x86 ${BINDIR}/rt2_demo
+brandelf -t Linux ${DESTDIR}${PREFIX}/${LIBDIR}/rt2_demo.x86
+ln -sf ${PREFIX}/${LIBDIR}/rt2_demo.x86 ${DESTDIR}${PREFIX}/${BINDIR}/rt2_demo
diff --git a/games/rt2-demo/pkg-plist b/games/rt2-demo/pkg-plist
index d697ca6f56b0..564ede500ce3 100644
--- a/games/rt2-demo/pkg-plist
+++ b/games/rt2-demo/pkg-plist
@@ -1,3 +1,4 @@
+bin/rt2_demo
lib/rt2_demo/Manual/Imagesm/C101_raise_lower.jpg
lib/rt2_demo/Manual/Imagesm/C102_paint_terrain.jpg
lib/rt2_demo/Manual/Imagesm/C103_fill_terrain.jpg