aboutsummaryrefslogtreecommitdiff
path: root/recipes/quake/quetoo_0.6.1.bb
blob: 8e2142b3475be8dd2eb85bceb87838676226243e (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
39
40
41
42
43
44
DESCRIPTION = "Initially a fork of the Quake2Forge project, this engine aims to provide security and performance enhancements."
LICENSE = "GPLv2"

DEPENDS = "virtual/libsdl 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"

SRC_URI[md5sum] = "2255c1d9857c725f6e82662593fcb51e"
SRC_URI[sha256sum] = "f39180bbf8ca641a4a4b9a2d19fb5ef61f2e368b53729944588549b8cb9ac3c0"
#CHECKSUMS.INI MISMATCH: I've got this instead:
#SRC_URI[md5sum] = "8b0e885dc9abf0c2af53d396d5e221bf"
#SRC_URI[sha256sum] = "d04fc5b38d473f43d4bb950edb5181a1350b1303728c6c3f3e96c608fa4208fe"