diff options
author | Stefan Eßer <se@FreeBSD.org> | 2000-06-18 12:18:44 +0000 |
---|---|---|
committer | Stefan Eßer <se@FreeBSD.org> | 2000-06-18 12:18:44 +0000 |
commit | 63e0947dbf82f57eefdd2fffb436b860635122d8 (patch) | |
tree | ec5038e3b351e2b34e3bda325c2754493328b236 /games/rt2-demo/files | |
parent | d5c3fc66bb220bb4472b2ce628aa7bc3ae444e96 (diff) | |
download | ports-63e0947dbf82f57eefdd2fffb436b860635122d8.tar.gz ports-63e0947dbf82f57eefdd2fffb436b860635122d8.zip |
Notes
Diffstat (limited to 'games/rt2-demo/files')
-rw-r--r-- | games/rt2-demo/files/do-install | 17 |
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 |