diff options
| -rw-r--r-- | meta-networking/recipes-support/curlpp/curlpp/pkgconfig_fix.patch | 38 | ||||
| -rw-r--r-- | meta-networking/recipes-support/curlpp/curlpp_0.7.3.bb | 87 |
2 files changed, 125 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/curlpp/curlpp/pkgconfig_fix.patch b/meta-networking/recipes-support/curlpp/curlpp/pkgconfig_fix.patch new file mode 100644 index 0000000000..ad73c00885 --- /dev/null +++ b/meta-networking/recipes-support/curlpp/curlpp/pkgconfig_fix.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | Upstream-Status: Inappropriate [packaging] | ||
| 2 | |||
| 3 | |||
| 4 | Index: curl-7.20.0/libcurl.pc.in | ||
| 5 | =================================================================== | ||
| 6 | --- curl-7.20.0.orig/libcurl.pc.in 2009-11-17 18:11:07.000000000 +0000 | ||
| 7 | +++ curl-7.20.0/libcurl.pc.in 2010-03-25 12:13:26.814051066 +0000 | ||
| 8 | @@ -35,6 +35,7 @@ | ||
| 9 | URL: http://curl.haxx.se/ | ||
| 10 | Description: Library to transfer files with ftp, http, etc. | ||
| 11 | Version: @CURLVERSION@ | ||
| 12 | -Libs: -L${libdir} -lcurl @LIBS@ | ||
| 13 | -Libs.private: @LIBCURL_LIBS@ @LIBS@ | ||
| 14 | +Requires.private: @GNUTLS_REQUIRED@ | ||
| 15 | +Libs: -L${libdir} -lcurl | ||
| 16 | +Libs.private: -ldl -lz | ||
| 17 | Cflags: -I${includedir} | ||
| 18 | Index: curl-7.20.0/configure.ac | ||
| 19 | =================================================================== | ||
| 20 | --- curl-7.20.0.orig/configure.ac 2010-02-04 21:41:46.000000000 +0000 | ||
| 21 | +++ curl-7.20.0/configure.ac 2010-03-25 12:12:18.673129001 +0000 | ||
| 22 | @@ -1668,6 +1668,7 @@ | ||
| 23 | AC_SUBST(USE_GNUTLS, [1]) | ||
| 24 | GNUTLS_ENABLED=1 | ||
| 25 | USE_GNUTLS="yes" | ||
| 26 | + GNUTLS_REQUIRED="gnutls" | ||
| 27 | curl_ssl_msg="enabled (GnuTLS)" | ||
| 28 | ], | ||
| 29 | [ | ||
| 30 | @@ -1696,6 +1697,8 @@ | ||
| 31 | |||
| 32 | fi dnl OPENSSL != 1 | ||
| 33 | |||
| 34 | +AC_SUBST(GNUTLS_REQUIRED) | ||
| 35 | + | ||
| 36 | dnl ---------------------------------------------------- | ||
| 37 | dnl NSS. Only check if GnuTLS and OpenSSL are not enabled | ||
| 38 | dnl ---------------------------------------------------- | ||
diff --git a/meta-networking/recipes-support/curlpp/curlpp_0.7.3.bb b/meta-networking/recipes-support/curlpp/curlpp_0.7.3.bb new file mode 100644 index 0000000000..605cd5ae1b --- /dev/null +++ b/meta-networking/recipes-support/curlpp/curlpp_0.7.3.bb | |||
| @@ -0,0 +1,87 @@ | |||
| 1 | SUMMARY = "C++ library for client-side URL transfers." | ||
| 2 | HOMEPAGE = "http://code.google.com/p/curlpp/" | ||
| 3 | SECTION = "console/network" | ||
| 4 | LICENSE = "MIT" | ||
| 5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
| 6 | |||
| 7 | DEPENDS = "curl boost" | ||
| 8 | DEPENDS_class-native = "curl-native" | ||
| 9 | |||
| 10 | SRC_URI = "http://curlpp.googlecode.com/files/curlpp-${PV}.tar.gz \ | ||
| 11 | " | ||
| 12 | |||
| 13 | SRC_URI[md5sum] = "ccc3d30d4b3b5d2cdbed635898c29485" | ||
| 14 | SRC_URI[sha256sum] = "e3f9427b27c5bddf898d383d45c0d3d5397e2056ff935d9a5cdaef6a9a653bd5" | ||
| 15 | |||
| 16 | inherit autotools pkgconfig binconfig | ||
| 17 | |||
| 18 | EXTRA_OECONF = "--prefix=${STAGING_DIR} \ | ||
| 19 | --with-boost=${STAGING_DIR} \ | ||
| 20 | " | ||
| 21 | |||
| 22 | do_install() { | ||
| 23 | install -d ${D}/${includedir}/curlpp | ||
| 24 | cp -r include/curlpp/* ${D}${includedir}/curlpp | ||
| 25 | |||
| 26 | install -d ${D}${includedir}/utilspp | ||
| 27 | cp -r include/utilspp/* ${D}${includedir}/utilspp | ||
| 28 | |||
| 29 | install -d ${D}/${libdir} | ||
| 30 | install -m 664 src/curlpp/.libs/libcurlpp.a ${D}/${libdir} | ||
| 31 | install -m 664 src/curlpp/.libs/libcurlpp.lai ${D}/${libdir}/libcurlpp.la | ||
| 32 | |||
| 33 | install -m 775 src/curlpp/.libs/libcurlpp.so.0.0.2 ${D}/${libdir} | ||
| 34 | |||
| 35 | install -m 664 src/utilspp/.libs/libutilspp.a ${D}/${libdir} | ||
| 36 | install -m 664 src/utilspp/.libs/libutilspp.lai ${D}/${libdir}/libutilspp.la | ||
| 37 | |||
| 38 | install -m 664 src/utilspp/.libs/libutilspp.so.0.0.0 ${D}/${libdir} | ||
| 39 | |||
| 40 | install -d ${D}/${libdir}/pkgconfig | ||
| 41 | install -m 664 curlpp.pc ${D}/${libdir}/pkgconfig | ||
| 42 | |||
| 43 | install -d ${D}/${bindir} | ||
| 44 | install -m 755 curlpp-config ${D}/${bindir} | ||
| 45 | |||
| 46 | install -d ${D}/${includedir}/curlpp | ||
| 47 | install -d ${D}/${includedir}/curlpp/internal | ||
| 48 | install -d ${D}/${includedir}/utilspp | ||
| 49 | install -d ${D}/${includedir}/utilspp/functor | ||
| 50 | install -d ${D}/${includedir}/utilspp/singleton | ||
| 51 | |||
| 52 | install -m 664 include/curlpp/config* ${D}/${includedir}/curlpp | ||
| 53 | install -m 664 include/curlpp/*.h* ${D}/${includedir}/curlpp | ||
| 54 | install -m 664 include/curlpp/*.inl ${D}/${includedir}/curlpp | ||
| 55 | |||
| 56 | install -m 664 include/curlpp/internal/*.h* ${D}/${includedir}/curlpp/internal | ||
| 57 | install -m 664 include/curlpp/internal/*.inl ${D}/${includedir}/curlpp/internal | ||
| 58 | |||
| 59 | install -m 664 include/utilspp/*.h* ${D}/${includedir}/utilspp | ||
| 60 | install -m 664 include/utilspp/*.inl ${D}/${includedir}/utilspp | ||
| 61 | |||
| 62 | install -m 664 include/utilspp/functor/*.h* ${D}/${includedir}/utilspp/functor | ||
| 63 | install -m 664 include/utilspp/singleton/*.h* ${D}/${includedir}/utilspp/singleton | ||
| 64 | install -m 664 include/utilspp/singleton/*.inl ${D}/${includedir}/utilspp/singleton | ||
| 65 | install -m 755 curlpp-config ${D}/${bindir} | ||
| 66 | } | ||
| 67 | |||
| 68 | pkg_postinst_${PN}() { | ||
| 69 | ln -sf libcurlpp.so.0.0.2 /usr/lib/libcurlpp.so.0 | ||
| 70 | ln -sf libcurlpp.so.0.0.2 /usr/lib/libcurlpp.so | ||
| 71 | ln -sf libutilspp.so.0.0.0 /usr/lib/libutilspp.so.0 | ||
| 72 | ln -sf libutilspp.so.0.0.0 /usr/lib/libutilspp.so | ||
| 73 | } | ||
| 74 | |||
| 75 | PACKAGES =+ "libcurlpp libcurlpp-dev libcurlpp-staticdev" | ||
| 76 | |||
| 77 | FILES_lib${BPN} = "${libdir}/lib*.so.* \ | ||
| 78 | " | ||
| 79 | |||
| 80 | FILES_lib${BPN}-dev = "${includedir} \ | ||
| 81 | ${libdir}/lib*.la \ | ||
| 82 | ${libdir}/pkgconfig \ | ||
| 83 | ${bindir}/*-config" | ||
| 84 | |||
| 85 | FILES_lib${BPN}-staticdev = "${libdir}/lib*.a" | ||
| 86 | |||
| 87 | BBCLASSEXTEND = "native nativesdk" | ||
