summaryrefslogtreecommitdiff
path: root/games/rt2-demo/files/do-install
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2000-06-18 12:18:44 +0000
committerStefan Eßer <se@FreeBSD.org>2000-06-18 12:18:44 +0000
commit63e0947dbf82f57eefdd2fffb436b860635122d8 (patch)
treeec5038e3b351e2b34e3bda325c2754493328b236 /games/rt2-demo/files/do-install
parentRemove arch-specific optimisation options from configure script. They broke sdl (diff)
Demo version of Railroad Tyccon II running under Linux emulation.
Notes
Notes: svn path=/head/; revision=29676
Diffstat (limited to 'games/rt2-demo/files/do-install')
-rw-r--r--games/rt2-demo/files/do-install17
1 files changed, 17 insertions, 0 deletions
diff --git a/games/rt2-demo/files/do-install b/games/rt2-demo/files/do-install
new file mode 100644
index 000000000000..9f34e6494fac
--- /dev/null
+++ b/games/rt2-demo/files/do-install
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+PATH=/bin:/usr/bin
+PREFIX=$1
+DISTDIR=$2
+BINDIR=${PREFIX}/bin
+LIBDIR=${PREFIX}/lib/rt2_demo
+
+set -e
+
+mkdir -p ${LIBDIR}/
+SKIP=`strings ${DISTDIR}/rt2-demo.run | head -10 | grep ^skip= | cut -d= -f2`
+tail +$SKIP /usr/ports/distfiles/rt2-demo.run | \
+ tar -C ${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