libcurl.mk 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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. endif
  22. $(eval $(call AUTOTARGETS,package,libcurl))
  23. $(LIBCURL_HOOK_POST_INSTALL):
  24. rm -rf $(TARGET_DIR)/usr/bin/curl-config \
  25. $(if $(BR2_PACKAGE_CURL),,$(TARGET_DIR)/usr/bin/curl)
  26. touch $@
  27. curl: libcurl
  28. curl-clean: libcurl-clean
  29. curl-dirclean: libcurl-dirclean
  30. curl-source: libcurl-source