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 \
6 file://pkgconfig_fix.patch;patch=1"
7 S = "${WORKDIR}/curl-${PV}"
9 CURL_FEATURES ?= "zlib,gnutls,cookies,crypto-auth,dict,file,ftp,http,telnet,tftp"
10 # other allowed features: ipv6, ares
12 inherit autotools pkgconfig binconfig
16 --with-random=/dev/urandom \
21 python __anonymous() {
22 f = bb.data.getVar("CURL_FEATURES", d, True).split(",")
23 oeconf = bb.data.getVar("EXTRA_OECONF", d, False)
24 deps = bb.data.getVar("DEPENDS", d, False).split()
25 for x in [ 'cookies', 'crypto-auth', 'dict', 'file', 'ftp', 'http', 'telnet', 'tftp', 'ipv6' ]:
27 oeconf += " --enable-%s" % x
29 oeconf += " --disable-%s" % x
31 oeconf += " --with-zlib=${STAGING_LIBDIR}/../"
34 oeconf += " --without-zlib"
36 oeconf += " --with-gnutls=${STAGING_BINDIR_CROSS}"
39 oeconf += " --without-gnutls"
41 oeconf += " --enable-ares"
44 oeconf += " --disable-ares"
45 bb.data.setVar('EXTRA_OECONF', oeconf, d)
46 bb.data.setVar('DEPENDS', " ".join(deps), d)
49 do_configure_prepend() {
50 sed -i s:OPT_GNUTLS/bin:OPT_GNUTLS:g configure.ac
54 install -d ${STAGING_INCDIR}/curl
55 install -m 0644 ${S}/include/curl/*.h ${STAGING_INCDIR}/curl/
56 oe_libinstall -so -a -C lib libcurl ${STAGING_LIBDIR}