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
7 DESCRIPTION = "Command line tool and library for \
8 client-side URL transfers."
11 SECTION = "console/network"
14 SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2"
16 inherit autotools pkgconfig
18 EXTRA_OECONF = "--with-zlib=${STAGING_LIBDIR}/../ \
19 --without-ssl --with-random=/dev/urandom"
22 install -d ${STAGING_INCDIR}/curl
23 install -m 0644 ${S}/include/curl/*.h ${STAGING_INCDIR}/curl/
24 oe_libinstall -so -a -C lib libcurl ${STAGING_LIBDIR}
26 cat curl-config | sed -e "s,-I/usr/include,-I${STAGING_INCDIR}/," \
27 | sed -e "s,-L/usr/lib , , "> ${STAGING_BINDIR}/curl-config
28 chmod a+rx ${STAGING_BINDIR}/curl-config
31 PACKAGES = "curl curl-doc libcurl libcurl-dev libcurl-doc"
32 FILES_${PN} = "${bindir}/curl"
33 FILES_${PN}-doc = "${mandir}/man1/curl.1"
34 FILES_lib${PN} = "${libdir}/lib*.so.*"
35 FILES_lib${PN}-dev = "${includedir} \
42 FILES_lib${PN}-doc = "${mandir}/man3 \
43 ${mandir}/man1/curl-config.1"