Keeping the list of plugins up to date
Commit Message
Kristian Pj Koivisto wrote:
> Lauri Tischler wrote:
>
>
>>Great, it even works with vdr-1.4, only Makefile changes
>>are necessary, patching of vdr is not needed.
>
>
> Any chance of a diff for the Makefile?
@@ -21,7 +21,7 @@
### The directory environment:
-DVBDIR = ../../../../DVB
+##DVBDIR = ../../../../DVB
VDRDIR = ../../..
LIBDIR = ../../lib
TMPDIR = /tmp
@@ -33,7 +33,9 @@
### 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')
+## VDRVERSION = $(shell grep 'define VDRVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g')
+APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h)
+
### The name of the distribution archive:
@@ -90,7 +92,7 @@
libvdr-$(PLUGIN).so: $(OBJS) retain-sym
$(CXX) $(LDFLAGS) -shared $(OBJS) $(LIBS) -o $@
- @cp $@ $(LIBDIR)/$@.$(VDRVERSION)
+ @cp $@ $(LIBDIR)/$@.$(APIVERSION)
dist: clean
@-rm -rf $(TMPDIR)/$(ARCHIVE)