summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/curl
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-09-01 19:09:11 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-01 19:09:57 +0100
commitd62ee7eaf2ba025c3f64b2d4e10dc7cec4637612 (patch)
treef36fe3008f36ff75cbdd31b630f8f13f1f205ebb /meta/recipes-support/curl
parentcaab7fc509bf27706ff3248689f6afd04225cfda (diff)
downloadpoky-d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612.tar.gz
packages: Separate out most of the remaining packages into recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-support/curl')
-rw-r--r--meta/recipes-support/curl/curl/noldlibpath.patch74
-rw-r--r--meta/recipes-support/curl/curl/pkgconfig_fix.patch35
-rw-r--r--meta/recipes-support/curl/curl_7.21.0.bb54
3 files changed, 163 insertions, 0 deletions
diff --git a/meta/recipes-support/curl/curl/noldlibpath.patch b/meta/recipes-support/curl/curl/noldlibpath.patch
new file mode 100644
index 0000000000..a3319a23e3
--- /dev/null
+++ b/meta/recipes-support/curl/curl/noldlibpath.patch
@@ -0,0 +1,74 @@
1Manipulating LD_LIBRARY_PATH can totally break builds when cross compiling.
2Since we never run compiled binaries for the target, we should *never* need
3to change LD_LIBRARY_PATH.
4
5RP 9/6/2010
6
7Index: curl-7.20.0/configure.ac
8===================================================================
9--- curl-7.20.0.orig/configure.ac 2010-06-09 11:06:30.000000000 +0100
10+++ curl-7.20.0/configure.ac 2010-06-09 11:04:25.000000000 +0100
11@@ -1461,9 +1461,10 @@
12 dnl linker doesn't search through, we need to add it to LD_LIBRARY_PATH
13 dnl to prevent further configure tests to fail due to this
14
15- LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
16- export LD_LIBRARY_PATH
17- AC_MSG_NOTICE([Added $LIB_OPENSSL to LD_LIBRARY_PATH])
18+ #LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
19+ #export LD_LIBRARY_PATH
20+ #AC_MSG_NOTICE([Added $LIB_OPENSSL to LD_LIBRARY_PATH])
21+ :
22 fi
23 fi
24
25@@ -1684,9 +1686,10 @@
26 dnl LD_LIBRARY_PATH to prevent further configure tests to fail
27 dnl due to this
28
29- LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
30- export LD_LIBRARY_PATH
31- AC_MSG_NOTICE([Added $gtlslib to LD_LIBRARY_PATH])
32+ #LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
33+ #export LD_LIBRARY_PATH
34+ #AC_MSG_NOTICE([Added $gtlslib to LD_LIBRARY_PATH])
35+ :
36 fi
37 fi
38
39@@ -1696,6 +1699,8 @@
40
41 fi dnl OPENSSL != 1
42
43+AC_SUBST(GNUTLS_REQUIRED)
44+
45 dnl ----------------------------------------------------
46 dnl NSS. Only check if GnuTLS and OpenSSL are not enabled
47 dnl ----------------------------------------------------
48@@ -1781,9 +1786,10 @@
49 dnl LD_LIBRARY_PATH to prevent further configure tests to fail
50 dnl due to this
51
52- LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
53- export LD_LIBRARY_PATH
54- AC_MSG_NOTICE([Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH])
55+ #LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
56+ #export LD_LIBRARY_PATH
57+ #AC_MSG_NOTICE([Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH])
58+ :
59 fi
60
61 fi
62@@ -1881,9 +1887,9 @@
63 dnl libssh2_version is a post 1.0 addition
64 AC_CHECK_FUNCS( libssh2_version )
65
66- LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
67- export LD_LIBRARY_PATH
68- AC_MSG_NOTICE([Added $DIR_SSH2 to LD_LIBRARY_PATH])
69+ #LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
70+ #export LD_LIBRARY_PATH
71+ #AC_MSG_NOTICE([Added $DIR_SSH2 to LD_LIBRARY_PATH])
72 fi
73 else
74 dnl no libssh2, revert back to clean variables
diff --git a/meta/recipes-support/curl/curl/pkgconfig_fix.patch b/meta/recipes-support/curl/curl/pkgconfig_fix.patch
new file mode 100644
index 0000000000..a59d39b8b1
--- /dev/null
+++ b/meta/recipes-support/curl/curl/pkgconfig_fix.patch
@@ -0,0 +1,35 @@
1Index: curl-7.20.0/libcurl.pc.in
2===================================================================
3--- curl-7.20.0.orig/libcurl.pc.in 2009-11-17 18:11:07.000000000 +0000
4+++ curl-7.20.0/libcurl.pc.in 2010-03-25 12:13:26.814051066 +0000
5@@ -35,6 +35,7 @@
6 URL: http://curl.haxx.se/
7 Description: Library to transfer files with ftp, http, etc.
8 Version: @VERSION@
9-Libs: -L${libdir} -lcurl @LIBS@
10-Libs.private: @LIBCURL_LIBS@ @LIBS@
11+Requires.private: @GNUTLS_REQUIRED@
12+Libs: -L${libdir} -lcurl
13+Libs.private: -ldl -lz
14 Cflags: -I${includedir}
15Index: curl-7.20.0/configure.ac
16===================================================================
17--- curl-7.20.0.orig/configure.ac 2010-02-04 21:41:46.000000000 +0000
18+++ curl-7.20.0/configure.ac 2010-03-25 12:12:18.673129001 +0000
19@@ -1668,6 +1668,7 @@
20 AC_SUBST(USE_GNUTLS, [1])
21 GNUTLS_ENABLED=1
22 USE_GNUTLS="yes"
23+ GNUTLS_REQUIRED="gnutls"
24 curl_ssl_msg="enabled (GnuTLS)"
25 ],
26 [
27@@ -1696,6 +1697,8 @@
28
29 fi dnl OPENSSL != 1
30
31+AC_SUBST(GNUTLS_REQUIRED)
32+
33 dnl ----------------------------------------------------
34 dnl NSS. Only check if GnuTLS and OpenSSL are not enabled
35 dnl ----------------------------------------------------
diff --git a/meta/recipes-support/curl/curl_7.21.0.bb b/meta/recipes-support/curl/curl_7.21.0.bb
new file mode 100644
index 0000000000..1e11222897
--- /dev/null
+++ b/meta/recipes-support/curl/curl_7.21.0.bb
@@ -0,0 +1,54 @@
1DESCRIPTION = "Command line tool and library for client-side URL transfers."
2HOMEPAGE = "http://curl.haxx.se/"
3BUGTRACKER = "http://curl.haxx.se/mail/list.cgi?list=curl-tracker"
4SECTION = "console/network"
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://COPYING;beginline=7;md5=3a34942f4ae3fbf1a303160714e664ac"
7
8DEPENDS = "zlib gnutls"
9DEPENDS_virtclass-native = "zlib-native"
10DEPENDS_virtclass-nativesdk = "zlib-nativesdk"
11PR = "r0"
12
13SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2 \
14 file://noldlibpath.patch \
15 file://pkgconfig_fix.patch"
16
17inherit autotools pkgconfig binconfig
18
19EXTRA_OECONF = "--with-zlib=${STAGING_LIBDIR}/../ \
20 --with-gnutls=${STAGING_BINDIR_CROSS}/ \
21 --without-ssl \
22 --without-libssh2 \
23 --with-random=/dev/urandom \
24 --without-libidn \
25 --enable-crypto-auth \
26 "
27
28do_configure_prepend() {
29 sed -i s:OPT_GNUTLS/bin:OPT_GNUTLS:g configure.ac
30}
31
32PACKAGES += "${PN}-certs libcurl libcurl-dev libcurl-doc"
33
34FILES_${PN} = "${bindir}/curl"
35
36FILES_${PN}-certs = "${datadir}/curl/curl-*"
37PACKAGE_ARCH_${PN}-certs = "all"
38
39FILES_${PN}-doc = "${mandir}/man1/curl.1"
40
41FILES_lib${PN} = "${libdir}/lib*.so.*"
42RRECOMMENDS_lib${PN} += "${PN}-certs"
43FILES_lib${PN}-dev = "${includedir} \
44 ${libdir}/lib*.so \
45 ${libdir}/lib*.a \
46 ${libdir}/lib*.la \
47 ${libdir}/pkgconfig \
48 ${datadir}/aclocal \
49 ${bindir}/*-config"
50
51FILES_lib${PN}-doc = "${mandir}/man3 \
52 ${mandir}/man1/curl-config.1"
53
54BBCLASSEXTEND = "native nativesdk"