Switched to proper tsplay-0.2 patch detection

Modified Files:
	server/recplayer.c Makefile CONTRIBUTORS HISTORY
This commit is contained in:
schmirl
2010-06-04 18:32:34 +00:00
parent 7517b874d8
commit 1a1141e4a1
4 changed files with 13 additions and 6 deletions

View File

@@ -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