[vlc-devel] [PATCH 1/2] contrib: Add Decklink SDK

Marvin Scholz epirat07 at gmail.com
Tue Oct 23 16:41:21 CEST 2018


---
 contrib/src/decklink-sdk/SHA512SUMS |  1 +
 contrib/src/decklink-sdk/rules.mak  | 32 +++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+)
 create mode 100644 contrib/src/decklink-sdk/SHA512SUMS
 create mode 100644 contrib/src/decklink-sdk/rules.mak

diff --git a/contrib/src/decklink-sdk/SHA512SUMS b/contrib/src/decklink-sdk/SHA512SUMS
new file mode 100644
index 0000000000..8329d5f45f
--- /dev/null
+++ b/contrib/src/decklink-sdk/SHA512SUMS
@@ -0,0 +1 @@
+356f7166298958b7f35520ec6fa27d9f58e5a8dd0245242346305940fd6c5ebc37181e8bbb4e684953d06a886db6cb959f666b3c33d9f92364f9df55fc00a87e  decklink-sdk-10.11.2.tar.gz
diff --git a/contrib/src/decklink-sdk/rules.mak b/contrib/src/decklink-sdk/rules.mak
new file mode 100644
index 0000000000..14c97f9d3f
--- /dev/null
+++ b/contrib/src/decklink-sdk/rules.mak
@@ -0,0 +1,32 @@
+# Decklink SDK
+
+DECKLINK_SDK_VERSION := 10.11.2
+DECKLINK_SDK_URL := https://github.com/ePirat/decklink-sdk/archive/v$(DECKLINK_SDK_VERSION).tar.gz
+
+# VLC Decklink modules do not yet work with the Windows SDK variant
+ifdef HAVE_MACOSX
+PKGS += decklink-sdk
+else ifdef HAVE_LINUX
+PKGS += decklink-sdk
+endif
+
+$(TARBALLS)/decklink-sdk-$(DECKLINK_SDK_VERSION).tar.gz:
+	$(call download_pkg,$(DECKLINK_SDK_URL),decklink-sdk)
+
+.sum-decklink-sdk: decklink-sdk-$(DECKLINK_SDK_VERSION).tar.gz
+
+decklink-sdk: decklink-sdk-$(DECKLINK_SDK_VERSION).tar.gz .sum-decklink-sdk
+	$(UNPACK)
+	$(MOVE)
+
+.decklink-sdk: decklink-sdk
+ifdef HAVE_MACOSX
+	mkdir -p "$(PREFIX)/include/decklink-sdk"
+	cp -R $</Mac/include/ "$(PREFIX)/include/decklink-sdk"
+else ifdef HAVE_LINUX
+	mkdir -p "$(PREFIX)/include/decklink-sdk"
+	cp -R $</Linux/include/ "$(PREFIX)/include/decklink-sdk"
+else
+	$(error Decklink SDK contrib not implemented for your OS!)
+endif
+	touch $@
-- 
2.19.1



More information about the vlc-devel mailing list