summaryrefslogtreecommitdiff
path: root/plugins/games
diff options
context:
space:
mode:
authorroot <root@elwms02.(none)>2010-04-06 16:13:08 +0200
committerroot <root@elwms02.(none)>2010-04-06 16:13:08 +0200
commit0e7005fcc7483c01aa102fbea358c5ac65a48d62 (patch)
tree11517ce0d3d2977c6732b3aa583b0008083e0bd3 /plugins/games
downloadx-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.gz
x-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.bz2
hello world
Diffstat (limited to 'plugins/games')
-rw-r--r--plugins/games/patches/games-0.6.2-vdr-1.3.48.diff34
-rw-r--r--plugins/games/plugin.sh51
2 files changed, 85 insertions, 0 deletions
diff --git a/plugins/games/patches/games-0.6.2-vdr-1.3.48.diff b/plugins/games/patches/games-0.6.2-vdr-1.3.48.diff
new file mode 100644
index 0000000..f9cf57c
--- /dev/null
+++ b/plugins/games/patches/games-0.6.2-vdr-1.3.48.diff
@@ -0,0 +1,34 @@
+diff -ruN VDR.org/PLUGINS/src/games-0.6.2/Makefile VDR/PLUGINS/src/games-0.6.2/Makefile
+--- VDR.org/PLUGINS/src/games-0.6.2/Makefile 2006-04-23 19:02:06.000000000 +0200
++++ VDR/PLUGINS/src/games-0.6.2/Makefile 2006-04-23 19:02:57.000000000 +0200
+@@ -21,11 +21,11 @@
+ PACKAGE = vdr-games-$(VERSION)
+ ARCHIVES = $(shell for GAME in $(GAMES); do echo $$GAME/$$GAME.a; done)
+ SDLGAMES = $(shell test -f $(VDRDIR)/config.h || echo true )
+-VDRVER = $(shell grep 'define VDRVERSION ' $(VDRDIR)/config.h | \
++APIVERSION= $(shell grep 'define APIVERSION ' $(VDRDIR)/config.h | \
+ awk '{ print $$3 }' | sed -e 's/"//g' )
+ VDRNUM = $(shell grep 'define VDRVERSNUM ' $(VDRDIR)/config.h | \
+ awk '{ print $$3 }' | sed -e 's/"//g' )
+-
++-include $(VDRDIR)/Make.config
+ ifeq "$(SDLGAMES)" "true"
+
+ TARGET = sdl-games
+@@ -57,13 +57,13 @@
+
+ libvdr-games.so: $(OBJS)
+ @g++ $(OBJS) $(LFLAGS) $(ARCHIVES) -o $@
+- @cp $@ $(LIBDIR)/$@.$(VDRVER)
++ @cp $@ $(LIBDIR)/$@.$(APIVERSION)
+
+ sdl-games: $(OBJS)
+ @g++ $(OBJS) $(LFLAGS) $(ARCHIVES) -o $@
+
+ install: all
+- @cp $(LIBDIR)/libvdr-games.so.$(VDRVER) /mnt/vdr/lib/plugins/
++ @cp $(LIBDIR)/libvdr-games.so.$(APIVERSION) $(PLUGINLIBDIR)
+
+ tar: clean
+ @echo -n "Creating archive ..."
+
diff --git a/plugins/games/plugin.sh b/plugins/games/plugin.sh
new file mode 100644
index 0000000..beb1ffa
--- /dev/null
+++ b/plugins/games/plugin.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+
+# x-vdr (Installations-Skript fuer einen VDR mit Debian als Basis)
+# von Marc Wernecke - www.zulu-entertainment.de
+# 23.04.2006
+#
+# vdr-games
+
+# defaults
+source ./../../x-vdr.conf
+source ./../../setup.conf
+source ./../../functions
+WEB="http://www.zulu-entertainment.de/files/vdr-games/vdr-games-0.6.2.tar.gz"
+VERSION="games-0.6.2"
+LINK="games"
+
+VAR=`basename $WEB`
+DIR=`pwd`
+
+# plugin entfernen
+function clean_plugin() {
+ cd $SOURCEDIR/VDR/PLUGINS/src
+ rm -rf $LINK*
+ rm -f $VDRLIBDIR/libvdr-$LINK*
+ log "cleaning $LINK"
+}
+
+# plugin installieren
+function install_plugin() {
+ download_plugin
+ extract_plugin
+ cd $SOURCEDIR/VDR/PLUGINS/src
+ rm -f $LINK
+ ln -vfs $VERSION $LINK
+ patch_plugin
+
+ ## plugin specials - start ##
+
+ ## plugin specials - ende ##
+}
+
+# plugin commands
+if [ $# \> 0 ]; then
+ cmd=$1
+ cmd_plugin
+else
+ install_plugin
+ log "install-plugin fuer $VERSION ist fertig"
+fi
+
+exit 0