diff --git a/packages/addons/games/wesnoth/addon b/packages/addons/games/wesnoth/addon new file mode 100755 index 0000000000..a2adc8a93d --- /dev/null +++ b/packages/addons/games/wesnoth/addon @@ -0,0 +1,14 @@ +#!/bin/sh + +. config/options $1 + +mkdir -p $ADDON_BUILD/mkimage + cp -R $PKG_BUILD/data $ADDON_BUILD/mkimage + cp -R $PKG_BUILD/fonts $ADDON_BUILD/mkimage + cp -R $PKG_BUILD/images $ADDON_BUILD/mkimage + cp -R $PKG_BUILD/sounds $ADDON_BUILD/mkimage + cp -R $PKG_BUILD/translations $ADDON_BUILD/mkimage + cp $PKG_BUILD/l10n-track $ADDON_BUILD/mkimage + +mkdir -p $ADDON_BUILD/mkimage/bin + cp $PKG_BUILD/build/wesnoth $ADDON_BUILD/mkimage/bin diff --git a/packages/addons/games/wesnoth/build b/packages/addons/games/wesnoth/build index 9d0d759ab7..963cdd1de3 100755 --- a/packages/addons/games/wesnoth/build +++ b/packages/addons/games/wesnoth/build @@ -2,22 +2,6 @@ . config/options $1 -$SCRIPTS/build toolchain -$SCRIPTS/build boost -$SCRIPTS/build lua -$SCRIPTS/build zlib -$SCRIPTS/build libX11 -$SCRIPTS/build pango -$SCRIPTS/build fontconfig -$SCRIPTS/build SDL -$SCRIPTS/build SDL_image -$SCRIPTS/build SDL_mixer -$SCRIPTS/build SDL_net -$SCRIPTS/build SDL_ttf - -ADDON_ID="addon.games.$1" -ADDON_VERSION="1" - cd $PKG_BUILD rm -rf build @@ -29,18 +13,3 @@ cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \ .. make - -cd .. - -mkdir -p .addons/$ADDON_ID - cp -R data fonts images sounds translations .addons/$ADDON_ID - cp l10n-track .addons/$ADDON_ID - cp -R $PKG_DIR/scripts/* .addons/$ADDON_ID - $SED "s|@ADDON_VERSION@|$OS_VERSION.$ADDON_VERSION|g" -i .addons/$ADDON_ID/addon.xml - $SED "s|@ADDON_ID@|$ADDON_ID|g" -i .addons/$ADDON_ID/addon.xml - -mkdir -p .addons/$ADDON_ID/bin - cp build/wesnoth .addons/$ADDON_ID/bin - -cd .addons - zip -rq $ADDON_ID-$OS_VERSION.$ADDON_VERSION.zip $ADDON_ID diff --git a/packages/addons/games/wesnoth/scripts/changelog.txt b/packages/addons/games/wesnoth/changelog.txt similarity index 100% rename from packages/addons/games/wesnoth/scripts/changelog.txt rename to packages/addons/games/wesnoth/changelog.txt diff --git a/packages/addons/games/wesnoth/scripts/icon.png b/packages/addons/games/wesnoth/icon/icon.png similarity index 100% rename from packages/addons/games/wesnoth/scripts/icon.png rename to packages/addons/games/wesnoth/icon/icon.png diff --git a/packages/addons/games/wesnoth/install b/packages/addons/games/wesnoth/install deleted file mode 100755 index 7f5191f63b..0000000000 --- a/packages/addons/games/wesnoth/install +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -. config/options $1 - -ADDON_ID="addon.games.$1" -ADDON_VERSION="1" - -if [ "$2" = addons ]; then - mkdir -p $TARGET_ADDONS/$ADDON_ID - cp $PKG_BUILD/.addons/$ADDON_ID-$OS_VERSION.$ADDON_VERSION.zip $TARGET_ADDONS/$ADDON_ID - cp $PKG_DIR/scripts/changelog.txt $TARGET_ADDONS/$ADDON_ID/changelog-$OS_VERSION.$ADDON_VERSION.txt - cp $PKG_DIR/scripts/icon.png $TARGET_ADDONS/$ADDON_ID/icon.png -fi diff --git a/packages/addons/games/wesnoth/meta b/packages/addons/games/wesnoth/meta new file mode 100644 index 0000000000..8533eae3f1 --- /dev/null +++ b/packages/addons/games/wesnoth/meta @@ -0,0 +1,16 @@ +PKG_NAME="wesnoth" +PKG_VERSION="1.8.3" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="OSS" +PKG_SITE="http://www.glest.org" +PKG_URL="http://sourceforge.net/projects/wesnoth/files/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.bz2" +PKG_DEPENDS="boost zlib libX11 pango fontconfig SDL SDL_image SDL_mixer SDL_net SDL_ttf" +PKG_BUILD_DEPENDS="toolchain boost lua zlib libX11 pango fontconfig SDL SDL_image SDL_mixer SDL_net SDL_ttf" +PKG_PRIORITY="optional" +PKG_SECTION="games" +PKG_SHORTDESC="(Game) The Battle for Wesnoth" +PKG_LONGDESC="The Battle for Wesnoth is a turn-based strategy game with a fantasy theme. Build up a great army, gradually turning raw recruits into hardened veterans. In later games, recall your toughest warriors and form a deadly host against whom none can stand! Choose units from a large pool of specialists, and hand-pick a force with the right strengths to fight well on different terrains against all manner of opposition. Wesnoth has many different sagas waiting to be played out. Fight to regain the throne of Wesnoth, of which you are the legitimate heir... step into the boots of a young officer sent to guard a not-so-sleepy frontier outpost... vanquish a horde of undead warriors unleashed by a foul necromancer, who also happens tohave taken your brother hostage... guide a band of elvish survivors in an epic quest to find a new home. 200+ unit types. 16 races. 6 major factions. Hundreds of years of history. The world of Wesnoth is absolutely huge and limited only by your creativity - make your own custom units, compose your own maps, and write your own scenarios or even full-blown campaigns. You can also challenge up to 8 friends - or strangers - and fight in epic multi-player fantasy battles." +PKG_IS_ADDON="yes" + + diff --git a/packages/addons/games/wesnoth/scripts/addon.xml b/packages/addons/games/wesnoth/scripts/addon.xml deleted file mode 100644 index 9a07d00f18..0000000000 --- a/packages/addons/games/wesnoth/scripts/addon.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - executable - - - The Battle for Wesnoth - -The Battle for Wesnoth is a turn-based strategy game with a fantasy theme. -Build up a great army, gradually turning raw recruits into hardened veterans. In later games, recall your toughest warriors and form a deadly host against whom none can stand! Choose units from a large pool of specialists, and hand-pick a force with the right strengths to fight well on different terrains against all manner of opposition. Wesnoth has many different sagas waiting to be played out. Fight to regain the throne of Wesnoth, of which you are the legitimate heir... step into the boots of a young officer sent to guard a not-so-sleepy frontier outpost... vanquish a horde of undead warriors unleashed by a foul necromancer, who also happens tohave taken your brother hostage... guide a band of elvish survivors in an epic quest to find a new home. -200+ unit types. 16 races. 6 major factions. Hundreds of years of history. The world of Wesnoth is absolutely huge and limited only by your creativity - make your own custom units, compose your own maps, and write your own scenarios or even full-blown campaigns. You can also challenge up to 8 friends - or strangers - and fight in epic multi-player fantasy battles. - - all - - diff --git a/packages/addons/games/wesnoth/scripts/default.py b/packages/addons/games/wesnoth/scripts/default.py deleted file mode 100644 index 6ad5d8a9a5..0000000000 --- a/packages/addons/games/wesnoth/scripts/default.py +++ /dev/null @@ -1,26 +0,0 @@ -################################################################################ -# Copyright (C) 2009-2010 OpenELEC.tv -# http://www.openelec.tv -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -import sys -import xbmcaddon -import os - -if ( __name__ == "__main__" ): - os.system("sh start.sh") diff --git a/packages/addons/games/wesnoth/scripts/start.sh b/packages/addons/games/wesnoth/scripts/start.sh index 36b2098f02..84bd763da1 100755 --- a/packages/addons/games/wesnoth/scripts/start.sh +++ b/packages/addons/games/wesnoth/scripts/start.sh @@ -24,7 +24,10 @@ RESOLUTION=`xrandr | grep Screen | cut -f2 -d"," | sed -e "s/ //g" -e "s/current RESOLUTION_WIDTH=`echo $RESOLUTION | cut -f1 -d "x"` RESOLUTION_HEIGHT=`echo $RESOLUTION | cut -f2 -d "x"` -# fix permissions lost after unpack - chmod +x ./bin/wesnoth +mkdir -p image + mount -o loop,ro wesnoth.img image -./bin/wesnoth . -f -r ${RESOLUTION_WIDTH}x${RESOLUTION_HEIGHT} +ln -sf image/* . +./bin/wesnoth . -f # -r ${RESOLUTION_WIDTH}x${RESOLUTION_HEIGHT} + +umount image diff --git a/packages/addons/games/wesnoth/url b/packages/addons/games/wesnoth/url deleted file mode 100644 index 8127d8a494..0000000000 --- a/packages/addons/games/wesnoth/url +++ /dev/null @@ -1 +0,0 @@ -http://sourceforge.net/projects/wesnoth/files/wesnoth/wesnoth-1.8.3.tar.bz2 \ No newline at end of file