curl_7.61.0.bb 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. SUMMARY = "Command line tool and library for client-side URL transfers"
  2. HOMEPAGE = "http://curl.haxx.se/"
  3. BUGTRACKER = "http://curl.haxx.se/mail/list.cgi?list=curl-tracker"
  4. SECTION = "console/network"
  5. LICENSE = "MIT"
  6. LIC_FILES_CHKSUM = "file://COPYING;md5=ef889a37a5a874490ac7ce116396f29a"
  7. SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2 \
  8. file://0001-replace-krb5-config-with-pkg-config.patch \
  9. file://CVE-2018-14618.patch \
  10. "
  11. SRC_URI[md5sum] = "31d0a9f48dc796a7db351898a1e5058a"
  12. SRC_URI[sha256sum] = "5f6f336921cf5b84de56afbd08dfb70adeef2303751ffb3e570c936c6d656c9c"
  13. CVE_PRODUCT = "curl libcurl"
  14. inherit autotools pkgconfig binconfig multilib_header
  15. PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} gnutls libidn proxy threaded-resolver verbose zlib"
  16. PACKAGECONFIG_class-native = "ipv6 proxy ssl threaded-resolver verbose zlib"
  17. PACKAGECONFIG_class-nativesdk = "ipv6 proxy ssl threaded-resolver verbose zlib"
  18. # 'ares' and 'threaded-resolver' are mutually exclusive
  19. PACKAGECONFIG[ares] = "--enable-ares,--disable-ares,c-ares"
  20. PACKAGECONFIG[brotli] = "--with-brotli,--without-brotli,brotli"
  21. PACKAGECONFIG[builtinmanual] = "--enable-manual,--disable-manual"
  22. PACKAGECONFIG[dict] = "--enable-dict,--disable-dict,"
  23. PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls"
  24. PACKAGECONFIG[gopher] = "--enable-gopher,--disable-gopher,"
  25. PACKAGECONFIG[imap] = "--enable-imap,--disable-imap,"
  26. PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
  27. PACKAGECONFIG[krb5] = "--with-gssapi,--without-gssapi,krb5"
  28. PACKAGECONFIG[ldap] = "--enable-ldap,--disable-ldap,"
  29. PACKAGECONFIG[ldaps] = "--enable-ldaps,--disable-ldaps,"
  30. PACKAGECONFIG[libidn] = "--with-libidn2,--without-libidn2,libidn2"
  31. PACKAGECONFIG[libssh2] = "--with-libssh2,--without-libssh2,libssh2"
  32. PACKAGECONFIG[mbedtls] = "--with-mbedtls=${STAGING_DIR_TARGET},--without-mbedtls,mbedtls"
  33. PACKAGECONFIG[nghttp2] = "--with-nghttp2,--without-nghttp2,nghttp2"
  34. PACKAGECONFIG[pop3] = "--enable-pop3,--disable-pop3,"
  35. PACKAGECONFIG[proxy] = "--enable-proxy,--disable-proxy,"
  36. PACKAGECONFIG[rtmpdump] = "--with-librtmp,--without-librtmp,rtmpdump"
  37. PACKAGECONFIG[rtsp] = "--enable-rtsp,--disable-rtsp,"
  38. PACKAGECONFIG[smb] = "--enable-smb,--disable-smb,"
  39. PACKAGECONFIG[smtp] = "--enable-smtp,--disable-smtp,"
  40. PACKAGECONFIG[ssl] = "--with-ssl --with-random=/dev/urandom,--without-ssl,openssl"
  41. PACKAGECONFIG[telnet] = "--enable-telnet,--disable-telnet,"
  42. PACKAGECONFIG[tftp] = "--enable-tftp,--disable-tftp,"
  43. PACKAGECONFIG[threaded-resolver] = "--enable-threaded-resolver,--disable-threaded-resolver"
  44. PACKAGECONFIG[verbose] = "--enable-verbose,--disable-verbose"
  45. PACKAGECONFIG[zlib] = "--with-zlib=${STAGING_LIBDIR}/../,--without-zlib,zlib"
  46. EXTRA_OECONF = " \
  47. --disable-libcurl-option \
  48. --disable-ntlm-wb \
  49. --enable-crypto-auth \
  50. --with-ca-bundle=${sysconfdir}/ssl/certs/ca-certificates.crt \
  51. --without-libmetalink \
  52. --without-libpsl \
  53. "
  54. do_install_append_class-target() {
  55. # cleanup buildpaths from curl-config
  56. sed -i \
  57. -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
  58. -e 's,--with-libtool-sysroot=${STAGING_DIR_TARGET},,g' \
  59. -e 's|${DEBUG_PREFIX_MAP}||g' \
  60. ${D}${bindir}/curl-config
  61. }
  62. PACKAGES =+ "lib${BPN}"
  63. FILES_lib${BPN} = "${libdir}/lib*.so.*"
  64. RRECOMMENDS_lib${BPN} += "ca-certificates"
  65. FILES_${PN} += "${datadir}/zsh"
  66. inherit multilib_script
  67. MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/curl-config"
  68. BBCLASSEXTEND = "native nativesdk"