text2skin 1.0 patch for VDR 1.4.0 (was: plugins without APIVERSION: streamdev text2skin)
Commit Message
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
@@ -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
@@ -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>