[vlc-devel] [PATCH] contribs: srt: use HAVE_GNUV3 to enable

Alexandre Janniaux ajanni at videolabs.io
Mon Apr 27 14:29:50 CEST 2020


Platforms like iOS cannot include (L)GPLv3 code and the dependencies
of this contrib (Nettle, transitively through GnuTLS) make it
requiring v3 code.
---
 contrib/src/srt/rules.mak | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/contrib/src/srt/rules.mak b/contrib/src/srt/rules.mak
index c9dbb59db87..88c34e4ccd8 100644
--- a/contrib/src/srt/rules.mak
+++ b/contrib/src/srt/rules.mak
@@ -4,8 +4,12 @@ SRT_VERSION := 1.3.1
 SRT_URL := $(GITHUB)/Haivision/srt/archive/v$(SRT_VERSION).tar.gz
 
 ifdef BUILD_NETWORK
+# Nettle is GPLv3 and is required by GnuTLS, which is a
+# dependency of srt
+ifdef HAVE_GNUV3
 PKGS += srt
 endif
+endif
 
 ifeq ($(call need_pkg,"srt >= 1.3.1"),)
 PKGS_FOUND += srt
-- 
2.26.2



More information about the vlc-devel mailing list