]> git.sesse.net Git - vlc/commitdiff
contrib: add gnutls
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 6 Jul 2011 08:55:25 +0000 (11:55 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 6 Jul 2011 15:53:19 +0000 (18:53 +0300)
contrib/src/gnutls/SHA512SUMS [new file with mode: 0644]
contrib/src/gnutls/gnutls-win32.patch [new file with mode: 0644]
contrib/src/gnutls/rules.mak [new file with mode: 0644]

diff --git a/contrib/src/gnutls/SHA512SUMS b/contrib/src/gnutls/SHA512SUMS
new file mode 100644 (file)
index 0000000..8e94866
--- /dev/null
@@ -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 (file)
index 0000000..2ef739b
--- /dev/null
@@ -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 (file)
index 0000000..0a19ae4
--- /dev/null
@@ -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 $@