]> www.vanbest.org Git - sasc-ng.git/commitdiff
disable hddevice support if dag's device detected
authorleslie <unknown>
Sun, 11 Sep 2011 12:34:54 +0000 (20:34 +0800)
committerleslie <unknown>
Sun, 11 Sep 2011 12:34:54 +0000 (20:34 +0800)
Makefile

index b76ffc8ff14e3bb69f9ee70bace1c3393be8707b..e92af9da0d836fcff96a9dd32886f7651156e937 100644 (file)
--- 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