More section fixes
[vuplus_openembedded] / curl / curl_7.12.0.oe
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
5 # use that. -CL
6
7 DEPENDS = "zlib"
8 DESCRIPTION = "Command line tool and library for \
9 client-side URL transfers."
10 SECTION = "console/network"
11 PR = "r1"
12
13 SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2 \
14            file://m4.patch;patch=1 \
15            file://pkgconfig.patch;patch=1"
16
17 inherit autotools pkgconfig
18
19 EXTRA_OECONF = "--with-zlib=${STAGING_LIBDIR}/../ \
20                 --without-ssl --with-random=/dev/urandom"
21
22 do_stage () {
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}
26
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
30 }