1SUMMARY="A 3D shooter game"
2DESCRIPTION="DeathChase 3D is a game where a player controls a \
3motorcycle-riding mercenary as he pursues two other motorcycles \
4through a forest. Your goal is to try to destroy these motorcycles \
5for points, but try to avoid hitting the trees as you go. Control \
6the motorcycle with Z,X,K, and M, press space to fire, and ESC to exit."
7HOMEPAGE="https://osgameclones.com/"
8COPYRIGHT="2002 Paul Robson"
9LICENSE="GNU GPL v2"
10REVISION="2"
11SOURCE_URI="https://web.archive.org/web/20070711231311/http://www.robsons.org.uk/archive/www.autismuk.freeserve.co.uk/deathchase3d-0.9.tar.gz"
12CHECKSUM_SHA256="42b4c5551be4662fcba6a6c7476ff6235307cf39e13781d6f1f13abe26a7db2a"
13SOURCE_DIR="deathchase3d-$portVersion"
14
15ARCHITECTURES="all"
16
17PROVIDES="
18	deathchase3d = $portVersion
19	app:deathchase3d = $portVersion
20	"
21REQUIRES="
22	haiku
23	lib:libSDL_1.2
24	"
25
26BUILD_REQUIRES="
27	haiku_devel
28	devel:libSDL
29	"
30BUILD_PREREQUIRES="
31	cmd:aclocal
32	cmd:autoreconf
33	cmd:ld
34	cmd:libtoolize
35	cmd:g++
36	cmd:make
37	"
38
39PATCH()
40{
41	sed -E 's|(\$\(top_srcdir\)/)?admin/libtool.m4.in||g' -i Makefile.am
42	cat admin/acinclude.m4.in special.m4.in > acinclude.m4
43}
44
45BUILD()
46{
47	autoreconf -vfi
48	runConfigure --omit-dirs binDir \
49		./configure --bindir="$appsDir"
50	make $jobArgs
51}
52
53INSTALL()
54{
55   	make install
56	addAppDeskbarSymlink $appsDir/deathchase3d DeathChase3D
57}
58