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