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