* [PATCH v2] curlpp: add curl c++ bindings
@ 2013-12-02 18:36 ulf
2013-12-03 12:24 ` Paul Eggleton
0 siblings, 1 reply; 3+ messages in thread
From: ulf @ 2013-12-02 18:36 UTC (permalink / raw)
To: openembedded-core; +Cc: Ulf Samuelsson
From: Ulf Samuelsson <ulf@emagii.com>
Signed-off-by: Ulf Samuelsson <ulf@emagii.com>
---
.../curlpp/curlpp/pkgconfig_fix.patch | 38 +++++++++
meta/recipes-support/curlpp/curlpp_0.7.3.bb | 89 ++++++++++++++++++++
2 files changed, 127 insertions(+)
create mode 100644 meta/recipes-support/curlpp/curlpp/pkgconfig_fix.patch
create mode 100644 meta/recipes-support/curlpp/curlpp_0.7.3.bb
diff --git a/meta/recipes-support/curlpp/curlpp/pkgconfig_fix.patch b/meta/recipes-support/curlpp/curlpp/pkgconfig_fix.patch
new file mode 100644
index 0000000..ad73c00
--- /dev/null
+++ b/meta/recipes-support/curlpp/curlpp/pkgconfig_fix.patch
@@ -0,0 +1,38 @@
+Upstream-Status: Inappropriate [packaging]
+
+
+Index: curl-7.20.0/libcurl.pc.in
+===================================================================
+--- curl-7.20.0.orig/libcurl.pc.in 2009-11-17 18:11:07.000000000 +0000
++++ curl-7.20.0/libcurl.pc.in 2010-03-25 12:13:26.814051066 +0000
+@@ -35,6 +35,7 @@
+ URL: http://curl.haxx.se/
+ Description: Library to transfer files with ftp, http, etc.
+ Version: @CURLVERSION@
+-Libs: -L${libdir} -lcurl @LIBS@
+-Libs.private: @LIBCURL_LIBS@ @LIBS@
++Requires.private: @GNUTLS_REQUIRED@
++Libs: -L${libdir} -lcurl
++Libs.private: -ldl -lz
+ Cflags: -I${includedir}
+Index: curl-7.20.0/configure.ac
+===================================================================
+--- curl-7.20.0.orig/configure.ac 2010-02-04 21:41:46.000000000 +0000
++++ curl-7.20.0/configure.ac 2010-03-25 12:12:18.673129001 +0000
+@@ -1668,6 +1668,7 @@
+ AC_SUBST(USE_GNUTLS, [1])
+ GNUTLS_ENABLED=1
+ USE_GNUTLS="yes"
++ GNUTLS_REQUIRED="gnutls"
+ curl_ssl_msg="enabled (GnuTLS)"
+ ],
+ [
+@@ -1696,6 +1697,8 @@
+
+ fi dnl OPENSSL != 1
+
++AC_SUBST(GNUTLS_REQUIRED)
++
+ dnl ----------------------------------------------------
+ dnl NSS. Only check if GnuTLS and OpenSSL are not enabled
+ dnl ----------------------------------------------------
diff --git a/meta/recipes-support/curlpp/curlpp_0.7.3.bb b/meta/recipes-support/curlpp/curlpp_0.7.3.bb
new file mode 100644
index 0000000..2d6dc39
--- /dev/null
+++ b/meta/recipes-support/curlpp/curlpp_0.7.3.bb
@@ -0,0 +1,89 @@
+DESCRIPTION = "C++ library for client-side URL transfers."
+HOMEPAGE = "http://code.google.com/p/curlpp/"
+SECTION = "console/network"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+DEPENDS = "curl boost"
+DEPENDS_class-native = "curl-native"
+PR = "r1"
+
+SRC_URI = "http://curlpp.googlecode.com/files/curlpp-${PV}.tar.gz \
+ "
+
+SRC_URI[md5sum] = "ccc3d30d4b3b5d2cdbed635898c29485"
+SRC_URI[sha256sum] = "e3f9427b27c5bddf898d383d45c0d3d5397e2056ff935d9a5cdaef6a9a653bd5"
+
+inherit autotools pkgconfig binconfig
+
+EXTRA_OECONF = "--prefix=${STAGING_DIR} \
+ --with-boost=${STAGING_DIR} \
+ "
+
+
+do_install() {
+ install -d ${D}/${includedir}/curlpp
+ cp -r include/curlpp/* ${D}${includedir}/curlpp
+
+ install -d ${D}${includedir}/utilspp
+ cp -r include/utilspp/* ${D}${includedir}/utilspp
+
+ install -d ${D}/${libdir}
+ install -m 664 src/curlpp/.libs/libcurlpp.a ${D}/${libdir}
+ install -m 664 src/curlpp/.libs/libcurlpp.lai ${D}/${libdir}/libcurlpp.la
+
+ install -m 775 src/curlpp/.libs/libcurlpp.so.0.0.2 ${D}/${libdir}
+
+ install -m 664 src/utilspp/.libs/libutilspp.a ${D}/${libdir}
+ install -m 664 src/utilspp/.libs/libutilspp.lai ${D}/${libdir}/libutilspp.la
+
+ install -m 664 src/utilspp/.libs/libutilspp.so.0.0.0 ${D}/${libdir}
+
+ install -d ${D}/${libdir}/pkgconfig
+ install -m 664 curlpp.pc ${D}/${libdir}/pkgconfig
+
+ install -d ${D}/${bindir}
+ install -m 755 curlpp-config ${D}/${bindir}
+
+ install -d ${D}/${includedir}/curlpp
+ install -d ${D}/${includedir}/curlpp/internal
+ install -d ${D}/${includedir}/utilspp
+ install -d ${D}/${includedir}/utilspp/functor
+ install -d ${D}/${includedir}/utilspp/singleton
+
+ install -m 664 include/curlpp/config* ${D}/${includedir}/curlpp
+ install -m 664 include/curlpp/*.h* ${D}/${includedir}/curlpp
+ install -m 664 include/curlpp/*.inl ${D}/${includedir}/curlpp
+
+ install -m 664 include/curlpp/internal/*.h* ${D}/${includedir}/curlpp/internal
+ install -m 664 include/curlpp/internal/*.inl ${D}/${includedir}/curlpp/internal
+
+ install -m 664 include/utilspp/*.h* ${D}/${includedir}/utilspp
+ install -m 664 include/utilspp/*.inl ${D}/${includedir}/utilspp
+
+ install -m 664 include/utilspp/functor/*.h* ${D}/${includedir}/utilspp/functor
+ install -m 664 include/utilspp/singleton/*.h* ${D}/${includedir}/utilspp/singleton
+ install -m 664 include/utilspp/singleton/*.inl ${D}/${includedir}/utilspp/singleton
+ install -m 755 curlpp-config ${D}/${bindir}
+}
+
+pkg_postinst_${PN}() {
+ ln -sf libcurlpp.so.0.0.2 /usr/lib/libcurlpp.so.0
+ ln -sf libcurlpp.so.0.0.2 /usr/lib/libcurlpp.so
+ ln -sf libutilspp.so.0.0.0 /usr/lib/libutilspp.so.0
+ ln -sf libutilspp.so.0.0.0 /usr/lib/libutilspp.so
+}
+
+PACKAGES =+ "libcurlpp libcurlpp-dev libcurlpp-staticdev"
+
+FILES_lib${BPN} = "${libdir}/lib*.so.* \
+ "
+
+FILES_lib${BPN}-dev = "${includedir} \
+ ${libdir}/lib*.la \
+ ${libdir}/pkgconfig \
+ ${bindir}/*-config"
+
+FILES_lib${BPN}-staticdev = "${libdir}/lib*.a"
+
+BBCLASSEXTEND = "native nativesdk"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] curlpp: add curl c++ bindings
2013-12-02 18:36 [PATCH v2] curlpp: add curl c++ bindings ulf
@ 2013-12-03 12:24 ` Paul Eggleton
2013-12-03 17:00 ` Ulf Samuelsson
0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggleton @ 2013-12-03 12:24 UTC (permalink / raw)
To: ulf; +Cc: openembedded-core
Hi Ulf,
On Monday 02 December 2013 19:36:14 ulf@emagii.com wrote:
> From: Ulf Samuelsson <ulf@emagii.com>
>
> Signed-off-by: Ulf Samuelsson <ulf@emagii.com>
> ---
> .../curlpp/curlpp/pkgconfig_fix.patch | 38 +++++++++
> meta/recipes-support/curlpp/curlpp_0.7.3.bb | 89
> ++++++++++++++++++++ 2 files changed, 127 insertions(+)
> create mode 100644 meta/recipes-support/curlpp/curlpp/pkgconfig_fix.patch
> create mode 100644 meta/recipes-support/curlpp/curlpp_0.7.3.bb
You sent v1 of this to openembedded-devel so I had assumed it was for meta-oe.
To be honest I don't think this belongs in OE-Core, unless we actually need it
for something else that is in OE-Core (or something that needs to be added to
OE-Core).
Also, you didn't fix DESCRIPTION -> SUMMARY or drop PR in this version.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] curlpp: add curl c++ bindings
2013-12-03 12:24 ` Paul Eggleton
@ 2013-12-03 17:00 ` Ulf Samuelsson
0 siblings, 0 replies; 3+ messages in thread
From: Ulf Samuelsson @ 2013-12-03 17:00 UTC (permalink / raw)
To: Paul Eggleton; +Cc: openembedded-core@lists.openembedded.org
Just thought it fit nicely besides curl...
I use it for a proprietary customer application.
The application sends out debug messages over UDP
This will reside in private layers.
Have also written a small utility, which receives the UDP packets and
simply writes them out on a terminal.
It is quite useful when you dont have a screen connected.
Thinking of checking that in somewhere.
Would meta-openembedded/meta-networking/recipes-support be OK?
Best Regards
Ulf Samuelsson
ulf@emagii.com
3 dec 2013 kl. 13:24 skrev Paul Eggleton <paul.eggleton@linux.intel.com>:
> Hi Ulf,
>
> On Monday 02 December 2013 19:36:14 ulf@emagii.com wrote:
>> From: Ulf Samuelsson <ulf@emagii.com>
>>
>> Signed-off-by: Ulf Samuelsson <ulf@emagii.com>
>> ---
>> .../curlpp/curlpp/pkgconfig_fix.patch | 38 +++++++++
>> meta/recipes-support/curlpp/curlpp_0.7.3.bb | 89
>> ++++++++++++++++++++ 2 files changed, 127 insertions(+)
>> create mode 100644 meta/recipes-support/curlpp/curlpp/pkgconfig_fix.patch
>> create mode 100644 meta/recipes-support/curlpp/curlpp_0.7.3.bb
>
> You sent v1 of this to openembedded-devel so I had assumed it was for meta-oe.
> To be honest I don't think this belongs in OE-Core, unless we actually need it
> for something else that is in OE-Core (or something that needs to be added to
> OE-Core).
>
> Also, you didn't fix DESCRIPTION -> SUMMARY or drop PR in this version.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-12-03 17:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-02 18:36 [PATCH v2] curlpp: add curl c++ bindings ulf
2013-12-03 12:24 ` Paul Eggleton
2013-12-03 17:00 ` Ulf Samuelsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox