1 DESCRIPTION = "Command line tool and library for client-side URL transfers."
3 SECTION = "console/network"
5 SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2;name=tarball \
6 file://pkgconfig_fix.patch;patch=1"
7 S = "${WORKDIR}/curl-${PV}"
11 CURL_FEATURES ?= "zlib,gnutls,cookies,crypto-auth,dict,file,ftp,http,telnet,tftp"
12 # other allowed features: ipv6, ares, openssl
14 inherit autotools pkgconfig binconfig
18 --with-random=/dev/urandom \
22 python __anonymous() {
23 f = bb.data.getVar("CURL_FEATURES", d, True).split(",")
24 oeconf = bb.data.getVar("EXTRA_OECONF", d, False)
25 deps = bb.data.getVar("DEPENDS", d, False).split()
26 pn = bb.data.getVar("PN", d, True)
31 for x in [ 'cookies', 'crypto-auth', 'dict', 'file', 'ftp', 'http', 'telnet', 'tftp', 'ipv6' ]:
33 oeconf += " --enable-%s" % x
35 oeconf += " --disable-%s" % x
37 oeconf += " --with-zlib=${STAGING_LIBDIR}/../"
38 deps.append("zlib" + native)
40 oeconf += " --without-zlib"
42 oeconf += " --with-gnutls=${STAGING_BINDIR_CROSS}"
43 deps.append("gnutls" + native)
45 oeconf += " --without-gnutls"
47 oeconf += " --with-ssl=${STAGING_LIBDIR}/../"
48 deps.append("openssl" + native)
50 oeconf += " --without-ssl"
52 oeconf += " --enable-ares"
53 deps.append("c-ares" + native)
55 oeconf += " --disable-ares"
56 bb.data.setVar('EXTRA_OECONF', oeconf, d)
57 bb.data.setVar('DEPENDS', " ".join(deps), d)
60 do_configure_prepend() {
61 sed -i s:OPT_GNUTLS/bin:OPT_GNUTLS:g configure.ac