]> git.vomp.tv Git - vompserver.git/commitdiff
Compatibility with vdr 1.3.38
authorChris Tallon <chris@vomp.tv>
Sun, 7 May 2006 20:35:59 +0000 (20:35 +0000)
committerChris Tallon <chris@vomp.tv>
Sun, 7 May 2006 20:35:59 +0000 (20:35 +0000)
Makefile

index ff5138236f6b326286d6ef74eceb126a193e57ce..5055960e8079cac55aad15b65a747410ef10eb34 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,6 @@ CXXFLAGS ?= -O2 -Wall -Woverloaded-virtual -Werror
 
 ### The directory environment:
 
-DVBDIR = ../../../../DVB
 VDRDIR = ../../..
 LIBDIR = ../../lib
 TMPDIR = /tmp
@@ -32,6 +31,7 @@ TMPDIR = /tmp
 ### 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 sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h)
 
 ### The name of the distribution archive:
 
@@ -75,7 +75,7 @@ all: libvdr-$(PLUGIN).so
 
 libvdr-$(PLUGIN).so: $(OBJS) libdvbmpeg/libdvbmpegtools.a
        $(CXX) $(CXXFLAGS) -shared $(OBJS) libdvbmpeg/libdvbmpegtools.a -o $@
-       @cp $@ $(LIBDIR)/$@.$(VDRVERSION)
+       @cp $@ $(LIBDIR)/$@.$(APIVERSION)
 
 dist: clean
        @-rm -rf $(TMPDIR)/$(ARCHIVE)