text2skin 1.0 patch for VDR 1.4.0 (was: plugins without APIVERSION: streamdev text2skin)

Message ID 1149569991.7696.16.camel@fornax.bibsys.no
State New
Headers

Commit Message

Daniel Buchmann June 6, 2006, 4:59 a.m. UTC
  I created the attached patch for text2skin 1.0, so it could compile on
VDR 1.4.0. Maybe useful for those of you out there that favor Sascha's
nice plugin... :)


On Sat, 2006-06-03 at 00:06 +0100, foreveruni@clix.pt wrote:
> I've done that..but now:
> Plugin text2skin:
> make[1]: Entering directory 
> `/home/antibody/Area51/vdr/vdr-1.4.0/PLUGINS/src/text2skin-1.0'
> g++ -Wall -Woverloaded-virtual -O2 -g -c -DHAVE_IMAGEMAGICK -DHAVE_FREETYPE -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"text2skin"' -I/usr/include/freetype2 -I../../../include -I../../../../DVB/linux/include -I../../../../DVB/include -I. -o 
> text2skin.o text2skin.c
> text2skin.c:16: error: expected unqualified-id before '<<' token
> text2skin.c:18: error: expected unqualified-id before '==' token
> text2skin.c:20: error: expected unqualified-id before '>>' token
> make[1]: *** [text2skin.o] Error 1
> make[1]: Leaving directory 
> `/home/antibody/Area51/vdr/vdr-1.4.0/PLUGINS/src/text2skin-1.0'
> 
> AND
> Plugin streamdev:
> make[1]: Entering directory 
> `/home/antibody/Area51/vdr/vdr-1.4.0/PLUGINS/src/str
> eamdev'
> g++ -W -Woverloaded-virtual -O2 -c -D_GNU_SOURCE -DHAVE_AUTOPID -I../../../inclu
> de -I../../../../DVB/include -I. -o streamdev-server.o streamdev-server.c
> make[1]: Leaving directory 
> `/home/antibody/Area51/vdr/vdr-1.4.0/PLUGINS/src/stre
> amdev'
> *** failed plugins: streamdev text2skin
> Best Regards
> João Mamede
> On Friday 02 June 2006 19:58, foreveruni at clix.pt wrote:
> > *** plugins without APIVERSION: streamdev text2skin
> >  when I try to compile these two plugins I have this problem my vdr version
> > is vdr-1.4.0 I'm crazy looking for patches..but I cannot find them :( Can
> > anyone help me?
> >
> 
> Just do this to the plugin:
> 
> # sed -i Makefile -e 's/VDRVERSION/APIVERSION/'
> 
> Matthias
  

Patch

--- text2skin-1.0.dist/Makefile	2005-01-27 18:32:07.000000000 +0100
+++ text2skin-1.0/Makefile	2006-06-04 23:24:51.000000000 +0200
@@ -40,7 +40,7 @@ 
 
 ### The version number of VDR (taken from VDR's "config.h"):
 
-VDRVERSION = $(shell grep 'define VDRVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g')
+APIVERSION = $(shell grep 'define APIVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g')
 
 ### The name of the distribution archive:
 
@@ -119,9 +119,9 @@ 
 
 libvdr-$(PLUGIN).so: $(OBJS)
 	$(CXX) $(CXXFLAGS) -shared $(OBJS) $(LIBS) -o $@
-	@cp $@ $(LIBDIR)/$@.$(VDRVERSION)
+	@cp $@ $(LIBDIR)/$@.$(APIVERSION)
 ifndef DEBUG
-	strip $(LIBDIR)/$@.$(VDRVERSION)
+	strip $(LIBDIR)/$@.$(APIVERSION)
 endif
 
 dist: clean
--- text2skin-1.0.dist/file.h	2004-12-19 23:03:13.000000000 +0100
+++ text2skin-1.0/file.h	2006-06-05 12:10:10.824551210 +0200
@@ -5,6 +5,8 @@ 
 #ifndef VDR_TEXT2SKIN_FILE_H
 #define VDR_TEXT2SKIN_FILE_H
 
+#define MAXPARSEBUFFER KILOBYTE(10)
+
 #include "common.h"
 #include <vdr/tools.h>