From: Chris Tallon Date: Sun, 3 Feb 2013 17:42:16 +0000 (+0000) Subject: Fix for APIVERSNUM / NAME on old VDRs X-Git-Tag: 0-4-0^2~2^2 X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2F10736-remake;p=vompserver.git Fix for APIVERSNUM / NAME on old VDRs --- diff --git a/Makefile b/Makefile index feffd1a..ef59f33 100644 --- a/Makefile +++ b/Makefile @@ -49,6 +49,11 @@ CXXFLAGS += -fPIC ### The version number of VDR's plugin API: APIVERSION = $(call PKGCFG,apiversion) +# VOMP INSERT for older VDRs +ifeq ($(APIVERSION),) + APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h) +endif +# end VOMP INSERT ### Allow user defined options to overwrite defaults: @@ -153,7 +158,7 @@ standalonebase: $(SOFILE): objects $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) $(OBJS2) -o $@ - [ -n "$(DOOLDINSTALL)" ]; then \ + if [ -n "$(DOOLDINSTALL)" ]; then \ cp $@ $(LIBDIR)/$@.$(APIVERSION) ; \ fi