summaryrefslogtreecommitdiff
path: root/packages/gnuz/gnuz_0.3.bb
blob: 23a18325966e51f6be004b41cb3be33d306da46c (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
45
46
47
48
49
50
51
52
53
DESCRIPTION = "gnuZ is a Lemmings style game"
SECTION = "opie/games"
PRIORITY = "optional"
MAINTAINER = "Marcin Juszkiewicz <openembedded@hrw.one.pl>"
LICENSE = "GPL"
AUTHOR = "Lukas Fraser"
HOMEPAGE = "http://gnuz.4cows.net/eraser/gnuz/"
DEPENDS = "gnuz-levelmaker-native gnuz-package-native"

SRC_URI = "http://gnuz.4cows.net/eraser/gnuz/gnuz_0.3.tar.gz \
           http://gnuz.4cows.net/eraser/gnuz/gnuz_0.3_levels.tar.gz \
		   file://intro_level.patch;patch=1;pnum=0"

S = "${WORKDIR}/gnuz"

export OE_QMAKE_LINK="${CXX}"
EXTRA_QMAKEVARS_POST += "LIBS+=-lqpe"

inherit palmtop

do_compile_append() {

	cd ${WORKDIR}
	
	for level in *.conf
	do
		if [ $level != 'intro.conf' ] ;then
			${STAGING_BINDIR}/gnuz_levelmaker `basename $level .conf`.lvl $level
		fi
	done
	${STAGING_BINDIR}/gnuz_levelmaker intro intro.conf
	cd ${S}/data/
	${STAGING_BINDIR}/gnuz_package guiimages.dat gui
	${STAGING_BINDIR}/gnuz_package gnuimages.dat gnu
	
	
}

do_install() {

	install -d ${D}${palmtopdir}/apps/Games \
			   ${D}${palmtopdir}/pics \
			   ${D}${palmtopdir}/bin \
			   ${D}${palmtopdir}/share/gnuz/levels

	install -m 0755 gnuz ${D}${palmtopdir}/bin/
	install -m 0644 data/gnuz.desktop ${D}${palmtopdir}/apps/Games/
	install -m 0644 data/gnuz.png ${D}${palmtopdir}/pics/
	install -m 0644 ${WORKDIR}/*.lvl ${D}${palmtopdir}/share/gnuz/levels/
	install -m 0644 ${WORKDIR}/intro ${D}${palmtopdir}/share/gnuz/levels/
	install -m 0644 ${S}/data/*images.dat ${D}${palmtopdir}/share/gnuz/

}