From a4124738f4b572c37ff6d082c7decf7387cde1d2 Mon Sep 17 00:00:00 2001 From: Denis 'Gnutoo' Carikli Date: Fri, 12 Feb 2010 18:32:31 +0100 Subject: 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 --- recipes/wesnoth/wesnoth_1.6.5.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'recipes/wesnoth') 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 \ -- cgit 1.2.3-korg