2007-05-07 05:58:30 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
2008-12-28 21:00:07 +01:00
|
|
|
# libcurl
|
2007-05-07 05:58:30 +02:00
|
|
|
#
|
|
|
|
#############################################################
|
2011-09-02 16:04:53 +02:00
|
|
|
|
2012-05-11 11:37:34 +02:00
|
|
|
LIBCURL_VERSION = 7.25.0
|
2008-12-28 14:50:53 +01:00
|
|
|
LIBCURL_SOURCE = curl-$(LIBCURL_VERSION).tar.bz2
|
2012-02-28 21:30:13 +01:00
|
|
|
LIBCURL_SITE = http://curl.haxx.se/download
|
2012-08-11 22:10:16 +02:00
|
|
|
LIBCURL_LICENSE = ICS
|
|
|
|
LIBCURL_LICENSE_FILES = COPYING
|
2008-12-28 14:50:53 +01:00
|
|
|
LIBCURL_INSTALL_STAGING = YES
|
2010-03-22 14:29:00 +01:00
|
|
|
LIBCURL_CONF_OPT = --disable-verbose --disable-manual --enable-hidden-symbols
|
2008-12-28 14:50:53 +01:00
|
|
|
|
2008-12-28 21:04:01 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
LIBCURL_DEPENDENCIES += openssl
|
|
|
|
LIBCURL_CONF_ENV += ac_cv_lib_crypto_CRYPTO_lock=yes
|
2009-03-10 22:03:14 +01:00
|
|
|
# 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_CONF_ENV += LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:/lib:/usr/lib
|
2008-12-28 21:04:01 +01:00
|
|
|
LIBCURL_CONF_OPT += --with-ssl=$(STAGING_DIR)/usr --with-random=/dev/urandom
|
2009-05-27 07:18:43 +02:00
|
|
|
else
|
2009-06-10 09:27:02 +02:00
|
|
|
LIBCURL_CONF_OPT += --without-ssl
|
2008-12-28 21:04:01 +01:00
|
|
|
endif
|
|
|
|
|
2010-09-01 22:39:37 +02:00
|
|
|
define LIBCURL_TARGET_CLEANUP
|
2008-12-28 14:50:53 +01:00
|
|
|
rm -rf $(TARGET_DIR)/usr/bin/curl-config \
|
|
|
|
$(if $(BR2_PACKAGE_CURL),,$(TARGET_DIR)/usr/bin/curl)
|
2010-09-01 22:39:37 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
LIBCURL_POST_INSTALL_TARGET_HOOKS += LIBCURL_TARGET_CLEANUP
|
|
|
|
|
2012-06-02 08:13:52 +02:00
|
|
|
define LIBCURL_STAGING_FIXUP_CURL_CONFIG
|
|
|
|
$(SED) "s,prefix=/usr,prefix=$(STAGING_DIR)/usr," $(STAGING_DIR)/usr/bin/curl-config
|
|
|
|
endef
|
|
|
|
|
|
|
|
LIBCURL_POST_INSTALL_STAGING_HOOKS += LIBCURL_STAGING_FIXUP_CURL_CONFIG
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2008-12-28 21:06:20 +01:00
|
|
|
|
|
|
|
curl: libcurl
|
|
|
|
curl-clean: libcurl-clean
|
|
|
|
curl-dirclean: libcurl-dirclean
|
|
|
|
curl-source: libcurl-source
|