From 1a1141e4a1e856bfff37591da1769625bd7a21dc Mon Sep 17 00:00:00 2001 From: schmirl Date: Fri, 4 Jun 2010 18:32:34 +0000 Subject: Switched to proper tsplay-0.2 patch detection Modified Files: server/recplayer.c Makefile CONTRIBUTORS HISTORY --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d4a7ed3..7b362ba 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # # Makefile for a Video Disk Recorder plugin # -# $Id: Makefile,v 1.20 2009/11/04 11:12:20 schmirl Exp $ +# $Id: Makefile,v 1.21 2010/06/04 18:32:34 schmirl Exp $ # The official name of this plugin. # This name will be used in the '-P...' option of VDR to load the plugin. @@ -32,6 +32,7 @@ TMPDIR = /tmp APIVERSION = $(shell grep 'define APIVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g') APIVERSNUM = $(shell grep 'define APIVERSNUM ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g') +TSPLAYVERSNUM = $(shell grep 'define TSPLAY_PATCH_VERSION ' $(VDRDIR)/device.h | awk '{ print $$3 }') ### The name of the distribution archive: @@ -44,7 +45,7 @@ INCLUDES += -I$(VDRDIR)/include -I. DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"' -ifeq ($(shell test $(APIVERSNUM) -ge 10704; echo $$?),0) +ifeq ($(shell test $(APIVERSNUM) -ge 10704 -o -n "$(TSPLAYVERSNUM)" ; echo $$?),0) DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE endif -- cgit v1.2.3