1 # NOTE: FIXME: curl puts its LDFLAGS in its curl-config and curl.pc files.
2 # This is flawed, as the LDFLAGS are often overridden by the user, and in
3 # addition, are generally specific to the *build* environment, not target.
4 # curl's build should be fixed to manipulate LIBS where appropriate and
8 DESCRIPTION = "Command line tool and library for \
9 client-side URL transfers."
10 SECTION = "console/network"
13 SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2 \
14 file://m4.patch;patch=1 \
15 file://pkgconfig.patch;patch=1"
17 inherit autotools pkgconfig
19 EXTRA_OECONF = "--with-zlib=${STAGING_LIBDIR}/../ \
20 --without-ssl --with-random=/dev/urandom"
23 install -d ${STAGING_INCDIR}/curl
24 install -m 0644 ${S}/include/curl/*.h ${STAGING_INCDIR}/curl/
25 oe_libinstall -so -a -C lib libcurl ${STAGING_LIBDIR}
27 cat curl-config | sed -e "s,-I/usr/include,-I${STAGING_INCDIR}/," \
28 | sed -e "s,-L/usr/lib , , "> ${STAGING_BINDIR}/curl-config
29 chmod a+rx ${STAGING_BINDIR}/curl-config