diff options
author | Denis 'Gnutoo' Carikli <GNUtoo@no-log.org> | 2009-12-07 20:22:51 +0100 |
---|---|---|
committer | Denis 'Gnutoo' Carikli <GNUtoo@no-log.org> | 2009-12-07 20:44:19 +0100 |
commit | 579e0bbc025ae643b1761bbb62b8b333bb36d617 (patch) | |
tree | bbf026a9f1cec11328613adfe41eb2bec634bf2b | |
parent | 0d0a49c2b69de16fea2e00ecd9ad1a84318ecfab (diff) |
wesnoth: add version 1.6.5
First thanks to:
*hrw for telling me how to solve a complicated libpng3 RDEPENDS problem:
libpng is,as pb_ explained,is renamed to libpng3 in a way that we can't
predict...so the solution was to add libpng3 to RDEPENDS and bitbake
would have renamed it automatically,and it did. thanks a lot!
*Ivanovic in #wesnoth-dev for telling me that removing the cmake script
that finds boost make it uses the one shipped with cmake and so
it finds more recent versions of boost
Tested on:
*shr/merge with om-gta02 machine
*boost 1.41.0(boost 1.40.0 didn't configure for me because of a bug that
made it require MPI)
*640x480 resolution(the campaign don't work in 480x640 because the dialog
of the character that appear at the bottom of the screen trigger assertions
that makes the program abort)
The solution for it would be to re-use the wml and maybe also the
source code of the port wesnoth to the iphone available here:
http://wesnoth.repositoryhosting.com/trac/wesnoth_wesnoth/
the wml files in question are located here:
/usr/share/wesnoth/data/themes/default.cfg
they contain the screen layout definitions.
This recipe compiles wesnoth with tiny GUI,that is better because we can go
in lower resolutions,but the in the game,the forests appear as grass
(that's because of the side effects of resizing a picture)
-rw-r--r-- | recipes/wesnoth/wesnoth_1.6.5.bb | 172 |
1 files changed, 172 insertions, 0 deletions
diff --git a/recipes/wesnoth/wesnoth_1.6.5.bb b/recipes/wesnoth/wesnoth_1.6.5.bb new file mode 100644 index 0000000000..4b7b9b67de --- /dev/null +++ b/recipes/wesnoth/wesnoth_1.6.5.bb @@ -0,0 +1,172 @@ +DESCRIPTION = "The Battle for Wesnoth is a turn-based strategy game with a fantasy theme." +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" +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/wesnoth/${PN}-${PV}.tar.bz2;name=tarball" +SRC_URI[tarball.md5sum] = "493826bbd9ba355930765a7e8fe3749a" +SRC_URI[tarball.sha256sum] = "7ef047ae364278a5bf9bdc69228f77d825f793f1c4d9adae8b47f0882e7f30d7" + +ARM_INSTRUCTION_SET = "arm" + +inherit cmake + +EXTRA_OECMAKE = "\ + -DGUI=tiny \ + -DENABLE_EDITOR=ON \ + -DENABLE_LOW_MEM=ON \ + -DENABLE_FRIBIDI=OFF \ + \ + -DCMAKE_BUILD_TYPE=Debug \ + " + +PACKAGES = "wesnoth-editor wesnoth-doc wesnoth-music wesnoth-sounds \ + wesnoth-aoi wesnoth-did wesnoth-ei wesnoth-httt wesnoth-l \ + wesnoth-nr wesnoth-sof wesnoth-sotbe wesnoth-thot wesnoth-trow \ + wesnoth-tsg wesnoth-tb wesnoth-utbs \ + wesnoth-data \ + wesnoth-all-campaigns \ + wesnoth-all \ + wesnoth wesnoth-dbg \ + wesnothd \ + " + +DESCRIPTION_wesnoth-editor = "Map Editor for The Battle for Wesnoth" +DESCRIPTION_wesnoth-all = "The Battle for Wesnoth with all campaigns, music and sounds" +DESCRIPTION_wesnoth-all-campaigns = "The Battle for Wesnoth with all campaigns." +DESCRIPTION_wesnoth-sounds = "Optional sound package for The Battle for Wesnoth" +DESCRIPTION_wesnoth-music = "Optional music package for The Battle for Wesnoth" +DESCRIPTION_wesnoth-data = "Mandatory data package for The Battle for Wesnoth" +DESCRIPTION_wesnothd = "Optional Battle for Wesnoth server" + +do_configure_prepend(){ + export HOST_SYS="${HOST_SYS}" + export BUILD_SYS="${BUILD_SYS}" + export STAGING_LIBDIR="${STAGING_LIBDIR}" + export STAGING_INCDIR="${STAGING_INCDIR}" + rm -f ${S}/cmake/FindBoost.cmake +} + +do_install_append() { + #ugly hack but otherwise it would have required to + #have MANDIR:STRING=share/man that would require a + #second python function + if [ -d ${D}${prefix}/man ];then + mv ${D}${prefix}/man ${D}${mandir} + fi +} + +RDEPENDS_wesnoth = "wesnoth-data libpng" + +RDEPENDS_wesnoth-editor = "wesnoth-data" + +RDEPENDS_wesnoth-all-campaigns = "wesnoth \ + wesnoth-aoi wesnoth-did wesnoth-ei wesnoth-httt wesnoth-l \ + wesnoth-nr wesnoth-sof wesnoth-sotbe wesnoth-thot wesnoth-trow \ + wesnoth-tsg wesnoth-tb wesnoth-utbs" + +# Installing wesnoth-all should pull everything in (like in Debian). +RDEPENDS_wesnoth-all = "wesnoth wesnoth-sounds wesnoth-music" + +FILES_wesnoth-music = "\ + ${datadir}/wesnoth/data/core/music \ +" + +FILES_wesnoth-sounds = "\ + ${datadir}/wesnoth/data/core/sounds \ +" + +# Picks up remaining translations and data. Must be packaged after +# wesnoth-music, wesnoth-sounds and all campaigns. +FILES_wesnoth-data = "\ + ${datadir}/wesnoth/sounds \ + ${datadir}/wesnoth/images \ + ${datadir}/wesnoth/data \ + ${datadir}/wesnoth/fonts \ + ${datadir}/wesnoth/translations \ +" + +FILES_${PN} = "\ + ${bindir}/wesnoth \ + ${datadir}/icons \ + ${datadir}/applications/wesnoth.desktop \ + ${datadir}/pixmaps/wesnoth-icon.png \ +" + +FILES_wesnothd = "\ + ${bindir}/wesnothd \ +" + +FILES_wesnoth-editor = "\ + ${bindir}/wesnoth_editor \ + ${datadir}/applications/wesnoth_editor.desktop \ + ${datadir}/pixmaps/wesnoth_editor-icon.png \ +" + +FILES_wesnoth-aoi = "\ + ${datadir}/wesnoth/data/campaigns/An_Orcish_Incursion \ + ${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-aoi.mo \ +" + +FILES_wesnoth-did = "\ + ${datadir}/wesnoth/data/campaigns/Descent_Into_Darkness \ + ${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-did.mo \ +" + +FILES_wesnoth-ei = "\ + ${datadir}/wesnoth/data/campaigns/Eastern_Invasion \ + ${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-ei.mo \ +" + +FILES_wesnoth-httt = "\ + ${datadir}/wesnoth/data/campaigns/Heir_To_The_Throne \ + ${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-httt.mo \ +" + +FILES_wesnoth-l = "\ + ${datadir}/wesnoth/data/campaigns/Liberty \ + ${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-l.mo \ +" + +FILES_wesnoth-nr = "\ + ${datadir}/wesnoth/data/campaigns/Northern_Rebirth \ + ${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-nr.mo \ +" + +FILES_wesnoth-sof = "\ + ${datadir}/wesnoth/data/campaigns/Sceptre_Of_Fire \ + ${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-sof.mo \ +" + +FILES_wesnoth-sotbe = "\ + ${datadir}/wesnoth/data/campaigns/Son_Of_The_Black_Eye \ + ${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-sotbe.mo \ +" + +FILES_wesnoth-thot = "\ + ${datadir}/wesnoth/data/campaigns/The_Hammer_Of_Thursagan \ + ${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-thot.mo \ +" + +FILES_wesnoth-trow = "\ + ${datadir}/wesnoth/data/campaigns/The_Rise_Of_Wesnoth \ + ${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-trow.mo \ +" + +FILES_wesnoth-tsg = "\ + ${datadir}/wesnoth/data/campaigns/The_South_Guard \ + ${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-tsg.mo \ +" + +FILES_wesnoth-tb = "\ + ${datadir}/wesnoth/data/campaigns/Two_Brothers \ + ${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-tb.mo \ +" + +FILES_wesnoth-utbs = "\ + ${datadir}/wesnoth/data/campaigns/Under_the_Burning_Suns \ + ${datadir}/wesnoth/translations/*/LC_MESSAGES/wesnoth-utbs.mo \ +" |