blob: bb567107e6f5e6d985eca47fd84b34994849e593 (
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
|
require supertux_${PV}.bb
DESCRIPTION += "(QVGA, size-optimized version)"
DEPENDS += "imagemagick-native pngcrush-native"
SRC_URI += " \
file://supertux-smallsize-data.tar.bz2 \
file://gp2x.patch \
file://img-resize.sh \
"
S = "${WORKDIR}/supertux-${PV}"
EXTRA_OECONF += " --enable-320x240 "
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/
}
|