From 47f85ec509740f33d4fe11b6e245074545421fde Mon Sep 17 00:00:00 2001 From: leslie Date: Sun, 11 Sep 2011 20:34:54 +0800 Subject: [PATCH] disable hddevice support if dag's device detected --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b76ffc8..e92af9d 100644 --- a/Makefile +++ b/Makefile @@ -125,8 +125,11 @@ endif DEVPLUGOBJS += device-sd.o HAVE_HD := $(wildcard ../dvbhddevice/dvbhddevice.c) ifneq ($(strip $(HAVE_HD)),) - DEFINES += -DWITH_HDDVB - DEVPLUGTARGETS += $(LIBDIR)/libsc-dvbhddevice-$(SCAPIVERS).so.$(APIVERSION) + HDVERS := $(shell sed -ne '/*VERSION/ s/^.*=.*"\(.*\)".*$$/\1/p' ../dvbhddevice/dvbhddevice.c) + ifeq ($(findstring dag,$(HDVERS)),) + DEFINES += -DWITH_HDDVB + DEVPLUGTARGETS += $(LIBDIR)/libsc-dvbhddevice-$(SCAPIVERS).so.$(APIVERSION) + endif endif DEVPLUGOBJS += device-hd.o -- 2.39.5