mirror of
https://github.com/libretro/Lakka.git
synced 2025-03-04 05:37:38 +00:00
megaglest: complete rework to match with our new upcoming addon system
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
771ef36a45
commit
d430f2c092
1
packages/addons/games/megaglest-data/url
Normal file
1
packages/addons/games/megaglest-data/url
Normal file
@ -0,0 +1 @@
|
||||
http://sourceforge.net/projects/megaglest/files/current_release/megaglest-data-3.3.5.7z
|
@ -6,7 +6,6 @@ $SCRIPTS/build toolchain
|
||||
$SCRIPTS/build lua
|
||||
$SCRIPTS/build curl
|
||||
$SCRIPTS/build xerces-c
|
||||
#$SCRIPTS/build wxGTK
|
||||
$SCRIPTS/build $LIBJPEG
|
||||
$SCRIPTS/build libpng
|
||||
$SCRIPTS/build libvorbis
|
||||
@ -26,15 +25,12 @@ unset AR
|
||||
cd $PKG_BUILD
|
||||
./configure --host=$TARGET_NAME \
|
||||
--build=$HOST_NAME \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--prefix=/usr/games/$1 \
|
||||
--with-sdl-prefix="$ROOT/$TOOLCHAIN" \
|
||||
--with-vorbis="$SYSROOT_PREFIX/usr" \
|
||||
--with-ogg="$SYSROOT_PREFIX/usr" \
|
||||
--with-libOpenAL="$SYSROOT_PREFIX/usr" \
|
||||
--with-lua="$SYSROOT_PREFIX/usr" \
|
||||
--with-wx-config=/bin/true \
|
||||
# --with-wx-config="$ROOT/$TOOLCHAIN/bin/wx-config" \
|
||||
|
||||
jam
|
26
packages/addons/games/megaglest/build
Executable file
26
packages/addons/games/megaglest/build
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options
|
||||
|
||||
ADDON_NAME="plugin.games.$1"
|
||||
ADDON_VERSION="1"
|
||||
|
||||
$SCRIPTS/build megaglest-source
|
||||
$SCRIPTS/build megaglest-data
|
||||
|
||||
PKG_DIR=`find $ROOT/$PACKAGES -type d -name $1`
|
||||
|
||||
mkdir -p $BUILD/$1
|
||||
cd $BUILD/$1
|
||||
|
||||
mkdir -p .addons/$ADDON_NAME
|
||||
cp $ROOT/$BUILD/$1-source*/glest.ini .addons/$ADDON_NAME
|
||||
cp -R $ROOT/$BUILD/$1-data*/* .addons/$ADDON_NAME
|
||||
|
||||
mkdir -p .addons/$ADDON_NAME/bin
|
||||
cp -R $ROOT/$BUILD/$1-source*/glest.bin .addons/$ADDON_NAME/bin
|
||||
cp -R $PKG_DIR/scripts/* .addons/$ADDON_NAME
|
||||
$SED "s|@ADDON_VERSION@|$OS_VERSION.$ADDON_VERSION|g" -i .addons/$ADDON_NAME/addon.xml
|
||||
|
||||
cd .addons
|
||||
zip -rq $ADDON_NAME-$OS_VERSION.$ADDON_VERSION.zip $ADDON_NAME
|
@ -2,5 +2,14 @@
|
||||
|
||||
. config/options
|
||||
|
||||
$SCRIPTS/install megaglest-source
|
||||
#$SCRIPTS/install megaglest-data
|
||||
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 $BUILD/$1/.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
|
||||
|
@ -1,8 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options
|
||||
|
||||
$SCRIPTS/install megaglest-source
|
||||
|
||||
mkdir -p $INSTALL/usr/games/megaglest
|
||||
cp -R $PKG_BUILD/* $INSTALL/usr/games/megaglest
|
@ -1,22 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options
|
||||
|
||||
$SCRIPTS/install curl
|
||||
$SCRIPTS/install xerces-c
|
||||
#$SCRIPTS/install wxGTK
|
||||
$SCRIPTS/install $LIBJPEG
|
||||
$SCRIPTS/install libpng
|
||||
$SCRIPTS/install libvorbis
|
||||
$SCRIPTS/install libogg
|
||||
$SCRIPTS/install SDL
|
||||
$SCRIPTS/install openal-soft
|
||||
$SCRIPTS/install libX11
|
||||
$SCRIPTS/install Mesa
|
||||
|
||||
mkdir -p $INSTALL/usr/games/megaglest/bin
|
||||
cp $PKG_BUILD/glest.bin $INSTALL/usr/games/megaglest
|
||||
cp $PKG_BUILD/glest.ini $INSTALL/usr/games/megaglest
|
||||
# cp $PKG_BUILD/glest_configurator $INSTALL/usr/games/megaglest
|
||||
# cp $PKG_BUILD/glest_editor $INSTALL/usr/games/megaglest
|
||||
# cp $PKG_BUILD/glest_g3dviewer $INSTALL/usr/games/megaglest
|
@ -1 +0,0 @@
|
||||
http://downloads.sourceforge.net/project/megaglest/current_release/megaglest-source-3.3.5.tar.bz2
|
23
packages/addons/games/megaglest/scripts/addon.xml
Normal file
23
packages/addons/games/megaglest/scripts/addon.xml
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<addon id="plugin.games.megaglest"
|
||||
name="(Game) MegaGlest"
|
||||
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>
|
||||
MegaGlest is a free 3D real-time strategy game
|
||||
</summary>
|
||||
<description>
|
||||
Glest is a free 3D real-time strategy game, where you control the armies of two different factions: Tech, which is mainly composed of warriors and mechanical devices, and Magic, that prefers mages and summoned creatures in the battlefield.
|
||||
</description>
|
||||
<platform>all</platform>
|
||||
</extension>
|
||||
</addon>
|
2
packages/addons/games/megaglest/scripts/changelog.txt
Normal file
2
packages/addons/games/megaglest/scripts/changelog.txt
Normal file
@ -0,0 +1,2 @@
|
||||
0.90.1
|
||||
- initial version MegaGlest-3.3.5
|
26
packages/addons/games/megaglest/scripts/default.py
Normal file
26
packages/addons/games/megaglest/scripts/default.py
Normal 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")
|
BIN
packages/addons/games/megaglest/scripts/icon.png
Normal file
BIN
packages/addons/games/megaglest/scripts/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 180 KiB |
38
packages/addons/games/megaglest/scripts/start.sh
Executable file
38
packages/addons/games/megaglest/scripts/start.sh
Executable file
@ -0,0 +1,38 @@
|
||||
#!/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"`
|
||||
|
||||
# -e "s|^AutoMaxFullScreen=.*|AutoMaxFullScreen=true|g" \
|
||||
sed -e "s|^ScreenHeight=.*|ScreenHeight=$RESOLUTION_HEIGHT|g" \
|
||||
-e "s|^ScreenWidth=.*|ScreenWidth=$RESOLUTION_WIDTH|g" \
|
||||
-e "s|^Windowed=.*|Windowed=false|g" \
|
||||
-e "s|^DebugMode=.*|DebugMode=false|g" \
|
||||
-e "s|^DebugNetwork=.*|DebugNetwork=false|g" \
|
||||
-i glest.ini
|
||||
|
||||
# fix permissions lost after unpack
|
||||
chmod +x ./bin/glest.bin
|
||||
|
||||
./bin/glest.bin
|
Loading…
x
Reference in New Issue
Block a user