[vlc-devel] [PATCH] aribb25: build only if external dependancies are met

Sean McGovern gseanmcg at gmail.com
Sun Jul 12 17:16:00 CEST 2015


This library requires libpcsclite to be installed, except
on Win32, where this library requires the SCard DLLs.
---
 contrib/src/aribb25/rules.mak |   14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/contrib/src/aribb25/rules.mak b/contrib/src/aribb25/rules.mak
index 4ccc9a2..c98b3d4 100644
--- a/contrib/src/aribb25/rules.mak
+++ b/contrib/src/aribb25/rules.mak
@@ -4,11 +4,23 @@ ARIBB25_VERSION := 0.2.6
 ARIBB25_URL := $(VIDEOLAN)/aribb25/$(ARIBB25_VERSION)/aribb25-$(ARIBB25_VERSION).tar.gz
 
 ifndef HAVE_DARWIN_OS
-PKGS += aribb25
+ifeq ($(call need_pkg,"libpcsclite"),)
+WANT_ARIBB25 = 1
+else
+ifdef HAVE_WIN32
+WANT_ARIBB25 = 1
+else
+WANT_ARIBB25 = 0
+endif
+endif
 endif
+
+ifeq (WANT_ARIBB25,1)
+PKGS += aribb25
 ifeq ($(call need_pkg,"aribb25"),)
 PKGS_FOUND += aribb25
 endif
+endif
 
 $(TARBALLS)/aribb25-$(ARIBB25_VERSION).tar.gz:
 	$(call download,$(ARIBB25_URL))
-- 
1.7.9.2




More information about the vlc-devel mailing list