mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
new addon: add addon 'sauerbraten'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
d430f2c092
commit
86c62c2fb2
44
packages/addons/games/sauerbraten/build
Executable file
44
packages/addons/games/sauerbraten/build
Executable file
@ -0,0 +1,44 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options
|
||||
|
||||
$SCRIPTS/build toolchain
|
||||
$SCRIPTS/build zlib
|
||||
$SCRIPTS/build libpng
|
||||
$SCRIPTS/build $LIBJPEG
|
||||
$SCRIPTS/build libX11
|
||||
$SCRIPTS/build SDL
|
||||
$SCRIPTS/build SDL_image
|
||||
$SCRIPTS/build SDL_mixer
|
||||
$SCRIPTS/build Mesa
|
||||
|
||||
ADDON_NAME="plugin.games.$1"
|
||||
ADDON_VERSION="1"
|
||||
|
||||
PKG_DIR=`find $ROOT/$PACKAGES -type d -name $1`
|
||||
|
||||
cd $BUILD/$1/src
|
||||
|
||||
cd enet
|
||||
./configure --host=$TARGET_NAME \
|
||||
--build=$HOST_NAME \
|
||||
|
||||
cd ..
|
||||
|
||||
make
|
||||
|
||||
cd ..
|
||||
|
||||
mkdir -p .addons/$ADDON_NAME
|
||||
cp -R data .addons/$ADDON_NAME
|
||||
cp -R packages .addons/$ADDON_NAME
|
||||
cp *.cfg .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 src/sauer_client .addons/$ADDON_NAME/bin
|
||||
cp src/sauer_server .addons/$ADDON_NAME/bin
|
||||
|
||||
cd .addons
|
||||
zip -rq $ADDON_NAME-$OS_VERSION.$ADDON_VERSION.zip $ADDON_NAME
|
15
packages/addons/games/sauerbraten/install
Executable file
15
packages/addons/games/sauerbraten/install
Executable 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 $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
|
@ -0,0 +1,14 @@
|
||||
diff -Naur sauerbraten/src/Makefile sauerbraten.patch/src/Makefile
|
||||
--- sauerbraten/src/Makefile 2009-04-22 19:47:44.000000000 +0200
|
||||
+++ sauerbraten.patch/src/Makefile 2010-07-18 20:21:19.321805286 +0200
|
||||
@@ -18,8 +18,8 @@
|
||||
CLIENT_INCLUDES= $(INCLUDES) -Iinclude
|
||||
CLIENT_LIBS= -mwindows -Llib -lSDL -lSDL_image -lSDL_mixer -lzdll -lopengl32 -lenet -lws2_32 -lwinmm
|
||||
else
|
||||
-CLIENT_INCLUDES= $(INCLUDES) -I/usr/X11R6/include `sdl-config --cflags`
|
||||
-CLIENT_LIBS= -Lenet -lenet -L/usr/X11R6/lib `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL
|
||||
+CLIENT_INCLUDES= $(INCLUDES) `sdl-config --cflags`
|
||||
+CLIENT_LIBS= -Lenet -lenet `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL
|
||||
endif
|
||||
ifeq ($(PLATFORM),Linux)
|
||||
CLIENT_LIBS+= -lrt
|
21
packages/addons/games/sauerbraten/scripts/addon.xml
Normal file
21
packages/addons/games/sauerbraten/scripts/addon.xml
Normal file
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<addon id="plugin.games.sauerbraten"
|
||||
name="(Game) Cube 2: Sauerbraten"
|
||||
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>Cube 2: Sauerbraten</summary>
|
||||
<description>
|
||||
Sauerbraten is a free multiplayer/singleplayer first person shooter, built as a major redesign of the Cube FPS.
|
||||
Much like the original Cube, the aim of this game is not necessarily to produce the most features and eyecandy possible, but rather to allow map/geometry editing to be done dynamically in-game, to create fun gameplay and an elegant engine. </description>
|
||||
<platform>all</platform>
|
||||
</extension>
|
||||
</addon>
|
2
packages/addons/games/sauerbraten/scripts/changelog.txt
Normal file
2
packages/addons/games/sauerbraten/scripts/changelog.txt
Normal file
@ -0,0 +1,2 @@
|
||||
0.90.1
|
||||
- initial version sauerbraten-2009.05.04
|
26
packages/addons/games/sauerbraten/scripts/default.py
Normal file
26
packages/addons/games/sauerbraten/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/sauerbraten/scripts/icon.png
Normal file
BIN
packages/addons/games/sauerbraten/scripts/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 270 KiB |
34
packages/addons/games/sauerbraten/scripts/start.sh
Executable file
34
packages/addons/games/sauerbraten/scripts/start.sh
Executable file
@ -0,0 +1,34 @@
|
||||
#!/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"`
|
||||
|
||||
SAUER_DATA=.
|
||||
SAUER_OPTIONS="-q${HOME}/.sauerbraten -r"
|
||||
|
||||
# fix permissions lost after unpack
|
||||
chmod +x ./bin/sauer_client
|
||||
chmod +x ./bin/sauer_server
|
||||
|
||||
./bin/sauer_client ${SAUER_OPTIONS} "$@"
|
1
packages/addons/games/sauerbraten/url
Normal file
1
packages/addons/games/sauerbraten/url
Normal file
@ -0,0 +1 @@
|
||||
http://downloads.sourceforge.net/project/sauerbraten/sauerbraten/2009_05_04/sauerbraten_2009_05_04_trooper_edition_linux.tar.bz2
|
Loading…
x
Reference in New Issue
Block a user