summaryrefslogtreecommitdiff
path: root/recipes/quake/quetoo_0.6.1.bb
blob: b031238da3538ee571b7c2ac6a5a635f94632cfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
DESCRIPTION = "Initially a fork of the Quake2Forge project, this engine aims to provide security and performance enhancements."
LICENSE = "GPLv2"

DEPENDS = "libsdl-x11 zlib virtual/libgl"
SRC_URI = "http://tastyspleen.net/~jdolan/quetoo-${PV}.tar.bz2"

PR = "r1"
inherit autotools pkgconfig


EXTRA_OECONF = "\
               --with-games=baseq2 \
	       --with-sdl \
	       --with-zlib \
	       "

do_configure() {
	for i in ctf qmass vanctf ; do
		mkdir -p ${S}/data/$i/sound
		mkdir -p ${S}/data/$i/maps 
		mkdir -p ${S}/src/$i
		touch ${S}/data/$i/Makefile.in
		touch ${S}/data/$i/sound/Makefile.in
		touch ${S}/data/$i/maps/Makefile.in
		touch ${S}/src/$i/Makefile.in	
	done

	sed -i -e s:-Werror::g ${S}/configure
	gnu-configize --force
	oe_runconf
	rm config.log
}

do_install_append() {
	mv ${D}${bindir}/${TARGET_PREFIX}quetoo ${D}${bindir}/quetoo
}

FILES_${PN}-dbg += "${libdir}/quetoo/baseq2/.debug"