curl_7.52.1.bb 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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;beginline=8;md5=3a34942f4ae3fbf1a303160714e664ac"
  7. SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2 \
  8. file://0001-replace-krb5-config-with-pkg-config.patch \
  9. "
  10. # curl likes to set -g0 in CFLAGS, so we stop it
  11. # from mucking around with debug options
  12. #
  13. SRC_URI += " file://configure_ac.patch"
  14. SRC_URI[md5sum] = "dd014df06ff1d12e173de86873f9f77a"
  15. SRC_URI[sha256sum] = "d16185a767cb2c1ba3d5b9096ec54e5ec198b213f45864a38b3bda4bbf87389b"
  16. CVE_PRODUCT = "libcurl"
  17. inherit autotools pkgconfig binconfig multilib_header
  18. PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} gnutls proxy zlib"
  19. PACKAGECONFIG_class-native = "ipv6 proxy ssl zlib"
  20. PACKAGECONFIG_class-nativesdk = "ipv6 proxy ssl zlib"
  21. PACKAGECONFIG[dict] = "--enable-dict,--disable-dict,"
  22. PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls"
  23. PACKAGECONFIG[gopher] = "--enable-gopher,--disable-gopher,"
  24. PACKAGECONFIG[imap] = "--enable-imap,--disable-imap,"
  25. PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
  26. PACKAGECONFIG[ldap] = "--enable-ldap,--disable-ldap,"
  27. PACKAGECONFIG[ldaps] = "--enable-ldaps,--disable-ldaps,"
  28. PACKAGECONFIG[libidn] = "--with-libidn,--without-libidn,libidn"
  29. PACKAGECONFIG[libssh2] = "--with-libssh2,--without-libssh2,libssh2"
  30. PACKAGECONFIG[pop3] = "--enable-pop3,--disable-pop3,"
  31. PACKAGECONFIG[proxy] = "--enable-proxy,--disable-proxy,"
  32. PACKAGECONFIG[rtmpdump] = "--with-librtmp,--without-librtmp,rtmpdump"
  33. PACKAGECONFIG[rtsp] = "--enable-rtsp,--disable-rtsp,"
  34. PACKAGECONFIG[smb] = "--enable-smb,--disable-smb,"
  35. PACKAGECONFIG[smtp] = "--enable-smtp,--disable-smtp,"
  36. PACKAGECONFIG[ssl] = "--with-ssl --with-random=/dev/urandom,--without-ssl,openssl"
  37. PACKAGECONFIG[telnet] = "--enable-telnet,--disable-telnet,"
  38. PACKAGECONFIG[tftp] = "--enable-tftp,--disable-tftp,"
  39. PACKAGECONFIG[zlib] = "--with-zlib=${STAGING_LIBDIR}/../,--without-zlib,zlib"
  40. PACKAGECONFIG[krb5] = "--with-gssapi,--without-gssapi,krb5"
  41. EXTRA_OECONF = " \
  42. --enable-crypto-auth \
  43. --with-ca-bundle=${sysconfdir}/ssl/certs/ca-certificates.crt \
  44. --without-libmetalink \
  45. --without-libpsl \
  46. --without-nghttp2 \
  47. "
  48. do_install_append() {
  49. oe_multilib_header curl/curlbuild.h
  50. }
  51. do_install_append_class-target() {
  52. # cleanup buildpaths from curl-config
  53. sed -i -e 's,${STAGING_DIR_HOST},,g' ${D}${bindir}/curl-config
  54. }
  55. PACKAGES =+ "lib${BPN}"
  56. FILES_lib${BPN} = "${libdir}/lib*.so.*"
  57. RRECOMMENDS_lib${BPN} += "ca-certificates"
  58. FILES_${PN} += "${datadir}/zsh"
  59. BBCLASSEXTEND = "native nativesdk"