blob: d118c3ff94be4049a29da7d642f511ab83840183 [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"
6LIC_FILES_CHKSUM = "file://COPYING;beginline=8;md5=3a34942f4ae3fbf1a303160714e664ac"
7
8SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2 \
9 file://0001-replace-krb5-config-with-pkg-config.patch \
10"
11
Brad Bishopd5ae7d92018-06-14 09:52:03 -070012SRC_URI[md5sum] = "31d0a9f48dc796a7db351898a1e5058a"
13SRC_URI[sha256sum] = "5f6f336921cf5b84de56afbd08dfb70adeef2303751ffb3e570c936c6d656c9c"
Brad Bishop316dfdd2018-06-25 12:45:53 -040014
15CVE_PRODUCT = "libcurl"
16inherit autotools pkgconfig binconfig multilib_header
17
18PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} gnutls proxy threaded-resolver zlib"
19PACKAGECONFIG_class-native = "ipv6 proxy ssl threaded-resolver zlib"
20PACKAGECONFIG_class-nativesdk = "ipv6 proxy ssl threaded-resolver zlib"
21
22# 'ares' and 'threaded-resolver' are mutually exclusive
23PACKAGECONFIG[ares] = "--enable-ares,--disable-ares,c-ares"
24PACKAGECONFIG[dict] = "--enable-dict,--disable-dict,"
25PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls"
26PACKAGECONFIG[gopher] = "--enable-gopher,--disable-gopher,"
27PACKAGECONFIG[imap] = "--enable-imap,--disable-imap,"
28PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
29PACKAGECONFIG[krb5] = "--with-gssapi,--without-gssapi,krb5"
30PACKAGECONFIG[ldap] = "--enable-ldap,--disable-ldap,"
31PACKAGECONFIG[ldaps] = "--enable-ldaps,--disable-ldaps,"
32PACKAGECONFIG[libidn] = "--with-libidn2,--without-libidn2,libidn2"
33PACKAGECONFIG[libssh2] = "--with-libssh2,--without-libssh2,libssh2"
34PACKAGECONFIG[nghttp2] = "--with-nghttp2,--without-nghttp2,nghttp2"
35PACKAGECONFIG[pop3] = "--enable-pop3,--disable-pop3,"
36PACKAGECONFIG[proxy] = "--enable-proxy,--disable-proxy,"
37PACKAGECONFIG[rtmpdump] = "--with-librtmp,--without-librtmp,rtmpdump"
38PACKAGECONFIG[rtsp] = "--enable-rtsp,--disable-rtsp,"
39PACKAGECONFIG[smb] = "--enable-smb,--disable-smb,"
40PACKAGECONFIG[smtp] = "--enable-smtp,--disable-smtp,"
41PACKAGECONFIG[ssl] = "--with-ssl --with-random=/dev/urandom,--without-ssl,openssl"
42PACKAGECONFIG[telnet] = "--enable-telnet,--disable-telnet,"
43PACKAGECONFIG[tftp] = "--enable-tftp,--disable-tftp,"
44PACKAGECONFIG[threaded-resolver] = "--enable-threaded-resolver,--disable-threaded-resolver"
45PACKAGECONFIG[zlib] = "--with-zlib=${STAGING_LIBDIR}/../,--without-zlib,zlib"
46
47EXTRA_OECONF = " \
48 --enable-crypto-auth \
49 --with-ca-bundle=${sysconfdir}/ssl/certs/ca-certificates.crt \
50 --without-libmetalink \
51 --without-libpsl \
52"
53
54do_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
63PACKAGES =+ "lib${BPN}"
64
65FILES_lib${BPN} = "${libdir}/lib*.so.*"
66RRECOMMENDS_lib${BPN} += "ca-certificates"
67
68FILES_${PN} += "${datadir}/zsh"
69
70BBCLASSEXTEND = "native nativesdk"