[curl]: enable compile against axTLS and CyaSSL
authorImre Kaloz <kaloz@openwrt.org>
Mon, 28 Oct 2013 10:02:47 +0000 (10:02 +0000)
committerImre Kaloz <kaloz@openwrt.org>
Mon, 28 Oct 2013 10:02:47 +0000 (10:02 +0000)
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 38556

libs/curl/Config.in
libs/curl/Makefile
libs/curl/patches/100-check_long_long.patch [new file with mode: 0644]

index 8ded6f366400914b527796436677d77a65cb8b96..a52b18ec15bc21203e69bec2373ff8e5184e630d 100644 (file)
@@ -8,6 +8,12 @@ choice
 config LIBCURL_POLARSSL
        bool "PolarSSL"
 
+config LIBCURL_CYASSL
+       bool "CyaSSL"
+
+config LIBCURL_AXTLS
+       bool "axTLS"
+
 config LIBCURL_OPENSSL
        bool "OpenSSL"
 
index f8d816c9ab70e1cdc5d860a6bdde03f3a12aab07..d435ccdc249acc5557ad483140c5d5f1809a6c2c 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=curl
 PKG_VERSION:=7.33.0
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://curl.haxx.se/download/ \
@@ -27,8 +27,10 @@ PKG_FIXUP:=autoreconf
 PKG_BUILD_PARALLEL:=1
 
 PKG_CONFIG_DEPENDS := \
+  LIBCURL_AXTLS \
   LIBCURL_COOKIES \
   LIBCURL_CRYPTO_AUTH \
+  LIBCURL_CYASSL \
   LIBCURL_DICT \
   LIBCURL_FILE \
   LIBCURL_FTP \
@@ -73,7 +75,7 @@ define Package/libcurl
   $(call Package/curl/Default)
   SECTION:=libs
   CATEGORY:=Libraries
-  DEPENDS:=+LIBCURL_POLARSSL:libpolarssl +LIBCURL_OPENSSL:libopenssl +LIBCURL_GNUTLS:libgnutls +LIBCURL_ZLIB:zlib +LIBCURL_THREADED_RESOLVER:libpthread
+  DEPENDS:=+LIBCURL_POLARSSL:libpolarssl +LIBCURL_CYASSL:libcyassl +LIBCURL_AXTLS:libaxtls +LIBCURL_OPENSSL:libopenssl +LIBCURL_GNUTLS:libgnutls +LIBCURL_ZLIB:zlib +LIBCURL_THREADED_RESOLVER:libpthread
   TITLE:=A client-side URL transfer library using $(if $(CONFIG_LIBCURL_POLARSSL),PolarSSL)$(if $(CONFIG_LIBCURL_OPENSSL),OpenSSL)$(if $(CONFIG_LIBCURL_GNUTLS),GNUTLS)$(if $(CONFIG_LIBCURL_NOSSL),no SSL)
   MENU:=1
 endef
@@ -100,8 +102,10 @@ CONFIGURE_ARGS += \
        --without-nss \
        --without-libssh2 \
        $(call autoconf_bool,CONFIG_IPV6,ipv6) \
+       $(if $(CONFIG_LIBCURL_AXTLS),--with-axtls="$(STAGING_DIR)/usr",--without-axtls) \
        $(if $(CONFIG_LIBCURL_COOKIES),--enable,--disable)-cookies \
        $(if $(CONFIG_LIBCURL_CRYPTO-AUTH),--enable,--disable)-crypto-auth \
+       $(if $(CONFIG_LIBCURL_CYASSL),--with-cyassl="$(STAGING_DIR)/usr",--without-cyassl) \
        $(if $(CONFIG_LIBCURL_DICT),--enable,--disable)-dict \
        $(if $(CONFIG_LIBCURL_FILE),--enable,--disable)-file \
        $(if $(CONFIG_LIBCURL_FTP),--enable,--disable)-ftp \
diff --git a/libs/curl/patches/100-check_long_long.patch b/libs/curl/patches/100-check_long_long.patch
new file mode 100644 (file)
index 0000000..f9088d8
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -2889,6 +2889,7 @@
+ AC_CHECK_SIZEOF(size_t)
+ AC_CHECK_SIZEOF(long)
++AC_CHECK_SIZEOF(long long)
+ AC_CHECK_SIZEOF(int)
+ AC_CHECK_SIZEOF(short)
+ CURL_CONFIGURE_LONG