[vlc-devel] [PATCH] contrib: Add srt 1.2.1

Justin Kim justin.kim at collabora.com
Sat Nov 18 13:51:31 CET 2017


Secure Reliable Transport library supports nettle backend
since 1.2.1. With the option, `--with-gnutls`, VLC can be
sure that non-GPL compatible library won't be linked.

Signed-off-by: Justin Kim <justin.kim at collabora.com>
---
 contrib/src/srt/SHA512SUMS |  1 +
 contrib/src/srt/rules.mak  | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+)
 create mode 100644 contrib/src/srt/SHA512SUMS
 create mode 100644 contrib/src/srt/rules.mak

diff --git a/contrib/src/srt/SHA512SUMS b/contrib/src/srt/SHA512SUMS
new file mode 100644
index 0000000000..287d1eb290
--- /dev/null
+++ b/contrib/src/srt/SHA512SUMS
@@ -0,0 +1 @@
+351b1048d9506ef310aaccad83e3b3d816e43fc8bba2c3a682855b38c487ee08f9a3c8dc9de711ce13aefa1c8cdbbe9778e83ef5418b79086bc9c6e796ddc0b1 v1.2.1.tar.gz
diff --git a/contrib/src/srt/rules.mak b/contrib/src/srt/rules.mak
new file mode 100644
index 0000000000..5b26c87705
--- /dev/null
+++ b/contrib/src/srt/rules.mak
@@ -0,0 +1,21 @@
+# srt
+
+SRT_VERSION := 1.2.1
+SRT_TARBALL := v$(SRT_VERSION).tar.gz
+SRT_URL := $(GITHUB)/Haivision/srt/archive/$(SRT_TARBALL)
+
+$(TARBALLS)/$(SRT_TARBALL):
+	$(call download_pkg,$(SRT_URL),srt)
+
+.sum-srt: $(SRT_TARBALL)
+
+srt: $(SRT_TARBALL) .sum-srt
+	$(UNPACK)
+	mv srt-$(SRT_VERSION) $@ && touch $@
+
+DEPS_srt = gnutls nettle
+
+.srt: srt
+	cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --with-gnutls
+	cd $< && $(MAKE) install
+	touch $@
-- 
2.15.0



More information about the vlc-devel mailing list