libcurl.mk 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #############################################################
  2. #
  3. # libcurl
  4. #
  5. #############################################################
  6. LIBCURL_VERSION = 7.19.2
  7. LIBCURL_SOURCE = curl-$(LIBCURL_VERSION).tar.bz2
  8. LIBCURL_SITE = http://curl.haxx.se/download/
  9. LIBCURL_INSTALL_STAGING = YES
  10. LIBCURL_CONF_OPT = --disable-verbose --disable-manual --enable-hidden-symbols \
  11. $(DISABLE_IPV6)
  12. ifeq ($(BR2_PACKAGE_OPENSSL),y)
  13. LIBCURL_DEPENDENCIES += openssl
  14. LIBCURL_CONF_ENV += ac_cv_lib_crypto_CRYPTO_lock=yes
  15. # configure adds the cross openssl dir to LD_LIBRARY_PATH which screws up
  16. # native stuff during the rest of configure when target == host.
  17. # Fix it by setting LD_LIBRARY_PATH to something sensible so those libs
  18. # are found first.
  19. LIBCURL_CONF_ENV += LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:/lib:/usr/lib
  20. LIBCURL_CONF_OPT += --with-ssl=$(STAGING_DIR)/usr --with-random=/dev/urandom
  21. else
  22. LIBCURL_CONF_OPT += --without-ssl
  23. endif
  24. $(eval $(call AUTOTARGETS,package,libcurl))
  25. $(LIBCURL_HOOK_POST_INSTALL):
  26. rm -rf $(TARGET_DIR)/usr/bin/curl-config \
  27. $(if $(BR2_PACKAGE_CURL),,$(TARGET_DIR)/usr/bin/curl)
  28. touch $@
  29. curl: libcurl
  30. curl-clean: libcurl-clean
  31. curl-dirclean: libcurl-dirclean
  32. curl-source: libcurl-source