aboutsummaryrefslogtreecommitdiff
path: root/recipes/supertux/supertux-qvga_0.1.3.bb
blob: 3be85da3989a84880c89e3e552d14f34472d2563 (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
require supertux.inc

PR = "${INC_PR}.0"

DESCRIPTION += "(QVGA, size-optimized version)"
DEPENDS += "imagemagick-native pngcrush-native libsdl-gfx"

SRC_URI += " \
           file://supertux-smallsize-data.tar.bz2 \
	   file://gp2x.patch \
	   file://img-resize.sh \
	   "

S = "${WORKDIR}/supertux-${PV}"

EXTRA_OECONF += " --enable-320x240 LIBS=-L${STAGING_LIBDIR}"

do_compile_prepend() {
    for d in background shared tilesets title worldmap; do
	cd ${S}/data/images/$d
	sh ${WORKDIR}/img-resize.sh
    done
}

do_install_prepend() {
    # *-fast.* music plays when time for a level is running out
    # byte-wise, it's the same file with few bytes changes (for .mod's). 
    # Well, seller feature, what to say, but we won't waste megabytes on 
    # that. Folks should learn to control tempo in there player lib.
    rm -f ${S}/data/music/*-fast.*
    # ogg is too heavy for embedded systems
    rm -f ${S}/data/music/*.ogg
#    cp ${WORKDIR}/*.mod ${S}/data/music/
}