Add package with libcurl 7.32 for Netflix (b/30815186)

Change-Id: I582a1cf9839554f5a764f2bb2e32121c9d63a1fd
diff --git a/package/Config.in b/package/Config.in
index 95885db..7d859fd 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -377,6 +377,7 @@
 source "package/libcgi/Config.in"
 source "package/libcgicc/Config.in"
 source "package/libcurl/Config.in"
+source "package/libcurl_32/Config.in"
 source "package/libdnet/Config.in"
 source "package/libesmtp/Config.in"
 source "package/libeXosip2/Config.in"
diff --git a/package/libcurl_32/Config.in b/package/libcurl_32/Config.in
new file mode 100644
index 0000000..323e20e
--- /dev/null
+++ b/package/libcurl_32/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LIBCURL_32
+	bool "libcurl_32"
+	help
+	  cURL is a tool for getting files from FTP, HTTP, Gopher, Telnet,
+	  and Dict servers, using any of the supported protocols.
+
+	  http://curl.haxx.nu/
+	  This package version is only meant for usage with Netflix
diff --git a/package/libcurl_32/libcurl_32.mk b/package/libcurl_32/libcurl_32.mk
new file mode 100644
index 0000000..b7a2065
--- /dev/null
+++ b/package/libcurl_32/libcurl_32.mk
@@ -0,0 +1,47 @@
+#############################################################
+#
+# libcurl_32 (For Netflix)
+#
+#############################################################
+
+LIBCURL_32_VERSION = 7.32.0
+LIBCURL_32_SOURCE = curl-$(LIBCURL_32_VERSION).tar.bz2
+LIBCURL_32_SITE = http://curl.haxx.se/download/
+LIBCURL_32_INSTALL_STAGING = NO
+LIBCURL_32_CONF_OPT = --disable-verbose --disable-manual --enable-hidden-symbols \
+                      --disable-shared --enable-optimize --disable-debug \
+                      --disable-ftp --disable-file --disable-ldap \
+                      --disable-ldaps --disable-rtsp --disable-dict \
+                      --disable-telnet --disable-tftp --disable-gopher \
+                      --disable-pop3 --disable-imap --disable-smtp \
+                      --without-libidn
+
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+LIBCURL_32_DEPENDENCIES += openssl
+LIBCURL_32_CONF_ENV += ac_cv_lib_crypto_CRYPTO_lock=yes
+# configure adds the cross openssl dir to LD_LIBRARY_PATH which screws up
+# native stuff during the rest of configure when target == host.
+# Fix it by setting LD_LIBRARY_PATH to something sensible so those libs
+# are found first.
+LIBCURL_32_CONF_ENV += LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:/lib:/usr/lib
+LIBCURL_32_CONF_OPT += --with-ssl=$(STAGING_DIR)/usr --with-random=/dev/urandom \
+	--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
+else
+LIBCURL_32_CONF_OPT += --without-ssl
+endif
+
+ifeq ($(BR2_INET_IPV6),y)
+LIBCURL_32_CONF_OPT += --enable-ipv6
+endif
+
+ifeq ($(BR2_PACKAGE_LIBCARES),y)
+LIBCURL_32_DEPENDENCIES += libcares
+LIBCURL_32_CONF_OPT += --enable-ares
+endif
+
+define LIBCURL_32_INSTALL_TARGET_CMDS
+# We don't install this version, it is accessed directly by the Netflix package
+endef
+
+$(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))