aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/wesnoth
diff options
context:
space:
mode:
authorDenis 'Gnutoo' Carikli <GNUtoo@no-log.org>2010-02-12 18:32:31 +0100
committerDenis 'Gnutoo' Carikli <GNUtoo@no-log.org>2010-02-13 02:04:52 +0100
commita4124738f4b572c37ff6d082c7decf7387cde1d2 (patch)
treed04cc5ade67d88f59597489bcef76d843441269f /recipes/wesnoth
parent0911f0ad43f8b919611516f34aaaeb51dccf5bf8 (diff)
downloadopenembedded-a4124738f4b572c37ff6d082c7decf7387cde1d2.tar.gz
wesnoth: only compile tiny GUI when screen is smaller than 800x480(smallgui)
Wesnoth has a compile time option for making it work on smaller screen The minimum is 400x300,else you would have to modify /usr/share/wesnoth/data/themes/default.cfg to support your resolution. Basically it uses imagemagick-native to shrink the graphics,which leads to some problems like for instance: *Only a flag can be seen instead of a full village *The forest look like grass
Diffstat (limited to 'recipes/wesnoth')
-rw-r--r--recipes/wesnoth/wesnoth_1.6.5.bb5
1 files changed, 3 insertions, 2 deletions
diff --git a/recipes/wesnoth/wesnoth_1.6.5.bb b/recipes/wesnoth/wesnoth_1.6.5.bb
index cd1a50d2bc..3c8a451970 100644
--- a/recipes/wesnoth/wesnoth_1.6.5.bb
+++ b/recipes/wesnoth/wesnoth_1.6.5.bb
@@ -3,7 +3,8 @@ HOMEPAGE = "http://www.wesnoth.org/"
SECTION = "games"
LICENSE = "GPL"
-DEPENDS = "freetype libsdl-image libsdl-mixer libsdl-net libsdl-ttf zlib boost imagemagick-native pango libpng"
+DEPENDS = "freetype libsdl-image libsdl-mixer libsdl-net libsdl-ttf zlib boost pango libpng \
+${@base_ifelse(( int(bb.data.getVar('MACHINE_DISPLAY_WIDTH_PIXELS', d, 1) ) < 800 ) or ( int(bb.data.getVar('MACHINE_DISPLAY_HEIGHT_PIXELS',d,1) )< 480 ),"imagemagick-native","")}"
PR = "r0"
SRC_URI = "${SOURCEFORGE_MIRROR}/wesnoth/${PN}-${PV}.tar.bz2;name=tarball"
@@ -15,7 +16,7 @@ ARM_INSTRUCTION_SET = "arm"
inherit cmake
EXTRA_OECMAKE = "\
- -DGUI=tiny \
+ ${@base_ifelse( ( ( int(bb.data.getVar('MACHINE_DISPLAY_WIDTH_PIXELS', d, 1) ) < 800 ) or ( int(bb.data.getVar('MACHINE_DISPLAY_HEIGHT_PIXELS',d,1) ) < 480 ) ),"-DGUI=tiny","")} \
-DENABLE_EDITOR=ON \
-DENABLE_LOW_MEM=ON \
-DENABLE_FRIBIDI=OFF \