From b54e40c2bac5f1506c168b5f7045041debc8bb57 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sun, 3 Feb 2013 17:42:16 +0000 Subject: [PATCH] Fix for APIVERSNUM / NAME on old VDRs --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.2