1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="Super-fast 3D racing on hover bikes"
10 HOMEPAGE="http://www.linuxgamepublishing.com/info.php?id=ballistics"
11 # Patches: http://updatefiles.linuxgamepublishing.com/ballistics-demo/
12 # Unversioned filename, grrr (is pre-patched).
13 SRC_URI="http://demofiles.linuxgamepublishing.com/ballistics/${PN}.run"
17 KEYWORDS="~amd64 ~x86"
19 RESTRICT="mirror strip"
21 # Not bothering with "dynamic" USE flag.
23 # dynamic? ( dev-games/libgrapple )
34 app-emulation/emul-linux-x86-gtklibs
35 app-emulation/emul-linux-x86-sdl )"
40 unpack_makeself ${PN}.run
41 unpack ./data/data.tar.gz
43 rm -rf data lgp_* setup*
45 mv bin "${T}" || die "mv"
49 local dir=${GAMES_PREFIX_OPT}/${PN}
52 doexe "${T}"/bin/Linux/x86/* || die "doexe"
55 doins -r * || die "doins -r"
57 games_make_wrapper ${PN}-config ./ballistics_demo-config "${dir}" "${dir}"
58 games_make_wrapper ${PN} ./ballistics_demo "${dir}" "${dir}"
59 newicon icon.xpm ${PN}.xpm || die "newicon"
60 make_desktop_entry ${PN} "Ballistics (Demo)" ${PN}.xpm