1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils unpacker
7 DESCRIPTION="design and build bridges and then stress test them with trains"
8 HOMEPAGE="http://www.chroniclogic.com/pontifex2.htm"
9 SRC_URI="ftp://ggdev-1.homelan.com/bcs/bcsdemo_v${PV/./_}.sh.bin
10 http://www.highprogrammer.com/alan/pfx2/openal-alan-hack-0.0.1.tar.gz"
14 KEYWORDS="-* ~amd64 ~x86"
19 media-libs/libsdl[abi_x86_32(-)]
21 x11-libs/libX11[abi_x86_32(-)]
22 x11-libs/libXau[abi_x86_32(-)]
23 x11-libs/libXdmcp[abi_x86_32(-)]
24 x11-libs/libXext[abi_x86_32(-)]
25 virtual/opengl[abi_x86_32(-)]"
31 QA_PREBUILT="${dir:1}/*"
34 unpack_makeself bcsdemo_v${PV/./_}.sh.bin
35 unpack openal-alan-hack-0.0.1.tar.gz
41 tar -zxf bcsdemo.tar.gz -C "${Ddir}" || die
42 rm -f "${Ddir}"/bcs-linux-openal-fixer.sh || die
45 # doexe bin/Linux/x86/rungame.sh
47 mv "${Ddir}"/bcs "${Ddir}"/bcs-bin
48 newexe libopenal.so.0.0.6 libopenal.so.0
49 echo '#!/bin/bash' >> "${Ddir}"/bcs
50 echo 'LD_PRELOAD="./libopenal.so.0" ./bcs-bin' >> "${Ddir}"/bcs
51 fperms 755 "${dir}"/bcs
52 make_wrapper bcs-demo ./bcs "${dir}" "${dir}"