new addon: add addon 'wesnoth'

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-07-19 04:35:16 +02:00
parent 34e64f7a49
commit 771ef36a45
8 changed files with 144 additions and 0 deletions

View File

@ -0,0 +1,47 @@
#!/bin/sh
. config/options
$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_NAME="plugin.games.$1"
ADDON_VERSION="1"
PKG_DIR=`find $ROOT/$PACKAGES -type d -name $1`
cd $PKG_BUILD
rm -rf build
mkdir -p build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \
-DCMAKE_INSTALL_PREFIX=/usr/games/$1 \
..
make
cd ..
mkdir -p .addons/$ADDON_NAME
cp -R data fonts images sounds translations .addons/$ADDON_NAME
cp l10n-track .addons/$ADDON_NAME
cp -R $PKG_DIR/scripts/* .addons/$ADDON_NAME
$SED "s|@ADDON_VERSION@|$OS_VERSION.$ADDON_VERSION|g" -i .addons/$ADDON_NAME/addon.xml
mkdir -p .addons/$ADDON_NAME/bin
cp build/wesnoth .addons/$ADDON_NAME/bin
cd .addons
zip -rq $ADDON_NAME-$OS_VERSION.$ADDON_VERSION.zip $ADDON_NAME

View File

@ -0,0 +1,15 @@
#!/bin/sh
. config/options
ADDON_NAME="plugin.games.$1"
ADDON_VERSION="1"
PKG_DIR=`find $PACKAGES -type d -name $1`
if [ "$2" = addons ]; then
mkdir -p $TARGET_ADDONS/$ADDON_NAME
cp $PKG_BUILD/.addons/$ADDON_NAME-$OS_VERSION.$ADDON_VERSION.zip $TARGET_ADDONS/$ADDON_NAME
cp $PKG_DIR/scripts/changelog.txt $TARGET_ADDONS/$ADDON_NAME/changelog-$OS_VERSION.$ADDON_VERSION.txt
cp $PKG_DIR/scripts/icon.png $TARGET_ADDONS/$ADDON_NAME/icon.png
fi

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.games.wesnoth"
name="(Game) The Battle for Wesnoth"
version="@ADDON_VERSION@"
provider-name="OpenELEC.tv">
<requires>
<import addon="os.openelec.tv" version="0.90"/>
<import addon="xbmc.python" version="1.0"/>
</requires>
<extension point="xbmc.python.pluginsource"
library="default.py">
<provides>executable</provides>
</extension>
<extension point="xbmc.addon.metadata">
<summary>The Battle for Wesnoth</summary>
<description>
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.
</description>
<platform>all</platform>
</extension>
</addon>

View File

@ -0,0 +1,2 @@
0.90.1
- initial version wesnoth-1.8.3

View File

@ -0,0 +1,26 @@
################################################################################
# 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")

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

View File

@ -0,0 +1,30 @@
#!/bin/sh
################################################################################
# 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
################################################################################
RESOLUTION=`xrandr | grep Screen | cut -f2 -d"," | sed -e "s/ //g" -e "s/current//g"`
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
./bin/wesnoth . -f -r ${RESOLUTION_WIDTH}x${RESOLUTION_HEIGHT}

View File

@ -0,0 +1 @@
http://sourceforge.net/projects/wesnoth/files/wesnoth/wesnoth-1.8.3.tar.bz2