[vlc-commits] contrib: add gnutls

Rémi Denis-Courmont git at videolan.org
Wed Jul 6 17:54:26 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jul  6 11:55:25 2011 +0300| [d0746cf8de295e013b057d6cdbb3229654a74c92] | committer: Rémi Denis-Courmont

contrib: add gnutls

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d0746cf8de295e013b057d6cdbb3229654a74c92
---

 contrib/src/gnutls/SHA512SUMS         |    1 +
 contrib/src/gnutls/gnutls-win32.patch |   20 ++++++++++++++++
 contrib/src/gnutls/rules.mak          |   40 +++++++++++++++++++++++++++++++++
 3 files changed, 61 insertions(+), 0 deletions(-)

diff --git a/contrib/src/gnutls/SHA512SUMS b/contrib/src/gnutls/SHA512SUMS
new file mode 100644
index 0000000..8e94866
--- /dev/null
+++ b/contrib/src/gnutls/SHA512SUMS
@@ -0,0 +1 @@
+f3e82c704311cc62dab9cb4edea6e120929dcefd6e2a9cc4992b512d280552432320e1b92d845176bcf40a0f4d5652a86f64c36aff77888948f72c92f18323de  gnutls-2.12.2.tar.bz2
diff --git a/contrib/src/gnutls/gnutls-win32.patch b/contrib/src/gnutls/gnutls-win32.patch
new file mode 100644
index 0000000..2ef739b
--- /dev/null
+++ b/contrib/src/gnutls/gnutls-win32.patch
@@ -0,0 +1,20 @@
+--- gnutls-2.2.5/gl/gai_strerror.c	2008-02-21 08:58:18.000000000 +0100
++++ gnutls/gl/gai_strerror.c	2008-05-22 08:20:56.000000000 +0200
+@@ -62,7 +62,7 @@
+     { EAI_IDN_ENCODE, N_("Parameter string not correctly encoded") }
+ #endif
+   };
+-
++#ifndef _WIN32
+ const char *
+ gai_strerror (int code)
+ {
+@@ -73,6 +73,7 @@
+ 
+   return _("Unknown error");
+ }
++#endif
+ #ifdef _LIBC
+ libc_hidden_def (gai_strerror)
+ #endif
+
diff --git a/contrib/src/gnutls/rules.mak b/contrib/src/gnutls/rules.mak
new file mode 100644
index 0000000..0a19ae4
--- /dev/null
+++ b/contrib/src/gnutls/rules.mak
@@ -0,0 +1,40 @@
+# GnuTLS
+
+GNUTLS_VERSION := 2.12.2
+GNUTLS_URL := http://ftp.gnu.org/pub/gnu/gnutls/gnutls-$(GNUTLS_VERSION).tar.bz2
+
+PKGS += gnutls
+ifeq ($(call need_pkg,"gnutls >= 2.0.0"),)
+PKGS_FOUND += gnutls
+endif
+
+$(TARBALLS)/gnutls-$(GNUTLS_VERSION).tar.bz2:
+	$(call download,$(GNUTLS_URL))
+
+.sum-gnutls: gnutls-$(GNUTLS_VERSION).tar.bz2
+
+gnutls: gnutls-$(GNUTLS_VERSION).tar.bz2 .sum-gnutls
+	$(UNPACK)
+	$(APPLY) $(SRC)/gnutls/gnutls-win32.patch
+	$(MOVE)
+
+GNUTLS_CONF := \
+	--disable-gtk-doc \
+	--disable-cxx \
+	--disable-srp-authentication \
+	--disable-psk-authentication-FIXME \
+	--disable-anon-authentication \
+	--disable-camellia \
+	--disable-extra-pki \
+	--disable-openpgp-authentication \
+	--disable-session-ticket \
+	--disable-openssl-compatibility \
+	--disable-guile \
+	--with-libgcrypt \
+	$(HOSTCONF)
+
+.gnutls: gnutls .gcrypt .gpg-error
+	#$(RECONF)
+	cd $< && $(HOSTVARS) ./configure $(GNUTLS_CONF)
+	cd $</lib && $(MAKE) install
+	touch $@



More information about the vlc-commits mailing list