diff options
Diffstat (limited to 'meta/packages/curl/curl_7.18.0.bb')
-rw-r--r-- | meta/packages/curl/curl_7.18.0.bb | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta/packages/curl/curl_7.18.0.bb b/meta/packages/curl/curl_7.18.0.bb new file mode 100644 index 0000000000..ae2cff6e10 --- /dev/null +++ b/meta/packages/curl/curl_7.18.0.bb | |||
@@ -0,0 +1,52 @@ | |||
1 | DESCRIPTION = "Command line tool and library for client-side URL transfers." | ||
2 | LICENSE = "MIT" | ||
3 | DEPENDS = "zlib gnutls" | ||
4 | SECTION = "console/network" | ||
5 | |||
6 | SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2 \ | ||
7 | file://pkgconfig_fix.patch;patch=1" | ||
8 | S = "${WORKDIR}/curl-${PV}" | ||
9 | |||
10 | inherit autotools pkgconfig binconfig | ||
11 | |||
12 | EXTRA_OECONF = "--with-zlib=${STAGING_LIBDIR}/../ \ | ||
13 | --with-gnutls=${STAGING_BINDIR_CROSS}/ \ | ||
14 | --without-ssl \ | ||
15 | --without-libssh2 \ | ||
16 | --with-random=/dev/urandom \ | ||
17 | --without-libidn \ | ||
18 | --enable-crypto-auth \ | ||
19 | " | ||
20 | |||
21 | do_configure_prepend() { | ||
22 | sed -i s:OPT_GNUTLS/bin:OPT_GNUTLS:g configure.ac | ||
23 | } | ||
24 | |||
25 | do_stage () { | ||
26 | install -d ${STAGING_INCDIR}/curl | ||
27 | install -m 0644 ${S}/include/curl/*.h ${STAGING_INCDIR}/curl/ | ||
28 | oe_libinstall -so -a -C lib libcurl ${STAGING_LIBDIR} | ||
29 | } | ||
30 | |||
31 | PACKAGES += "${PN}-certs libcurl libcurl-dev libcurl-doc" | ||
32 | |||
33 | FILES_${PN} = "${bindir}/curl" | ||
34 | |||
35 | FILES_${PN}-certs = "${datadir}/curl/curl-*" | ||
36 | PACKAGE_ARCH_${PN}-certs = "all" | ||
37 | |||
38 | FILES_${PN}-doc = "${mandir}/man1/curl.1" | ||
39 | |||
40 | FILES_lib${PN} = "${libdir}/lib*.so.*" | ||
41 | RRECOMMENDS_lib${PN} += "${PN}-certs" | ||
42 | FILES_lib${PN}-dev = "${includedir} \ | ||
43 | ${libdir}/lib*.so \ | ||
44 | ${libdir}/lib*.a \ | ||
45 | ${libdir}/lib*.la \ | ||
46 | ${libdir}/pkgconfig \ | ||
47 | ${datadir}/aclocal \ | ||
48 | ${bindir}/*-config" | ||
49 | |||
50 | FILES_lib${PN}-doc = "${mandir}/man3 \ | ||
51 | ${mandir}/man1/curl-config.1" | ||
52 | |||