Commit d0746cf8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

contrib: add gnutls

parent f51302ab
f3e82c704311cc62dab9cb4edea6e120929dcefd6e2a9cc4992b512d280552432320e1b92d845176bcf40a0f4d5652a86f64c36aff77888948f72c92f18323de gnutls-2.12.2.tar.bz2
--- 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
# 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 $@
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment