[PATCH] added recipe for libdbus-c++

Thilo Cestonaro
2016-11-15T13:49:59Z

Signed-off-by: Thilo Cestonaro <thilo.cestonaro@ts.fujitsu.com>
---
.../fix-missing-unistd.h-include.patch | 12 +
.../remove-CXX_FOR_BUILD-stuff.patch | 257 +++++++++++++++++++++
meta/recipes-core/dbus/libdbus-c++_0.9.0.bb | 24 ++
3 files changed, 293 insertions(+)
create mode 100644 meta/recipes-core/dbus/libdbus-c++-0.9.0/fix-missing-unistd.h-include.patch
create mode 100644 meta/recipes-core/dbus/libdbus-c++-0.9.0/remove-CXX_FOR_BUILD-stuff.patch
create mode 100644 meta/recipes-core/dbus/libdbus-c++_0.9.0.bb

diff --git a/meta/recipes-core/dbus/libdbus-c++-0.9.0/fix-missing-unistd.h-include.patch b/meta/recipes-core/dbus/libdbus-c++-0.9.0/fix-missing-unistd.h-include.patch
new file mode 100644
index 0000000..5cb8096
--- /dev/null
+++ b/meta/recipes-core/dbus/libdbus-c++-0.9.0/fix-missing-unistd.h-include.patch
@@ -0,0 +1,12 @@
+diff --git a/include/dbus-c++/eventloop-integration.h b/include/dbus-c++/eventloop-integration.h
+index 1b0302e..3e44304 100644
+--- a/include/dbus-c++/eventloop-integration.h
++++ b/include/dbus-c++/eventloop-integration.h
+@@ -26,6 +26,7 @@
+ #define __DBUSXX_EVENTLOOP_INTEGRATION_H
+
+ #include <errno.h>
++#include <unistd.h>
+ #include "api.h"
+ #include "dispatcher.h"
+ #include "util.h"
diff --git a/meta/recipes-core/dbus/libdbus-c++-0.9.0/remove-CXX_FOR_BUILD-stuff.patch b/meta/recipes-core/dbus/libdbus-c++-0.9.0/remove-CXX_FOR_BUILD-stuff.patch
new file mode 100644
index 0000000..af87174
--- /dev/null
+++ b/meta/recipes-core/dbus/libdbus-c++-0.9.0/remove-CXX_FOR_BUILD-stuff.patch
@@ -0,0 +1,257 @@
+diff -Naur libdbus-c++-0.9.0.ori/configure libdbus-c++-0.9.0/configure
+--- libdbus-c++-0.9.0.ori/configure 2016-11-15 14:25:36.085882774 +0100
++++ libdbus-c++-0.9.0/configure 2016-11-15 14:27:55.402913346 +0100
+@@ -800,7 +800,6 @@
+ GREP
+ SED
+ LIBTOOL
+-CXX_FOR_BUILD
+ am__fastdepCXX_FALSE
+ am__fastdepCXX_TRUE
+ CXXDEPMODE
+@@ -5233,8 +5232,6 @@
+
+
+
+-CXX_FOR_BUILD=${CXX_FOR_BUILD-${CXX}}
+-
+
+ case `pwd` in
+ *\ * | *\ *)
+diff -Naur libdbus-c++-0.9.0.ori/configure.ac libdbus-c++-0.9.0/configure.ac
+--- libdbus-c++-0.9.0.ori/configure.ac 2016-11-15 14:25:36.085882774 +0100
++++ libdbus-c++-0.9.0/configure.ac 2016-11-15 14:27:08.814568717 +0100
+@@ -64,9 +64,6 @@
+ AC_PROG_CC
+ AC_PROG_CXX
+
+-CXX_FOR_BUILD=${CXX_FOR_BUILD-${CXX}}
+-AC_SUBST(CXX_FOR_BUILD)
+-
+ AM_PROG_LIBTOOL
+
+ PKG_PROG_PKG_CONFIG
+diff -Naur libdbus-c++-0.9.0.ori/data/Makefile.in libdbus-c++-0.9.0/data/Makefile.in
+--- libdbus-c++-0.9.0.ori/data/Makefile.in 2016-11-15 14:25:36.085882774 +0100
++++ libdbus-c++-0.9.0/data/Makefile.in 2016-11-15 14:26:59.746501637 +0100
+@@ -66,7 +66,6 @@
+ CXXCPP = @CXXCPP@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+-CXX_FOR_BUILD = @CXX_FOR_BUILD@
+ CYGPATH_W = @CYGPATH_W@
+ DEFS = @DEFS@
+ DEPDIR = @DEPDIR@
+diff -Naur libdbus-c++-0.9.0.ori/doc/Makefile.in libdbus-c++-0.9.0/doc/Makefile.in
+--- libdbus-c++-0.9.0.ori/doc/Makefile.in 2016-11-15 14:25:36.085882774 +0100
++++ libdbus-c++-0.9.0/doc/Makefile.in 2016-11-15 14:27:33.790753474 +0100
+@@ -67,7 +67,6 @@
+ CXXCPP = @CXXCPP@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+-CXX_FOR_BUILD = @CXX_FOR_BUILD@
+ CYGPATH_W = @CYGPATH_W@
+ DEFS = @DEFS@
+ DEPDIR = @DEPDIR@
+diff -Naur libdbus-c++-0.9.0.ori/examples/echo/Makefile.in libdbus-c++-0.9.0/examples/echo/Makefile.in
+--- libdbus-c++-0.9.0.ori/examples/echo/Makefile.in 2016-11-15 14:25:36.089882803 +0100
++++ libdbus-c++-0.9.0/examples/echo/Makefile.in 2016-11-15 14:26:28.722272141 +0100
+@@ -105,7 +105,6 @@
+ CXXCPP = @CXXCPP@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+-CXX_FOR_BUILD = @CXX_FOR_BUILD@
+ CYGPATH_W = @CYGPATH_W@
+ DEFS = @DEFS@
+ DEPDIR = @DEPDIR@
+diff -Naur libdbus-c++-0.9.0.ori/examples/echo_ecore/Makefile.in libdbus-c++-0.9.0/examples/echo_ecore/Makefile.in
+--- libdbus-c++-0.9.0.ori/examples/echo_ecore/Makefile.in 2016-11-15 14:25:36.089882803 +0100
++++ libdbus-c++-0.9.0/examples/echo_ecore/Makefile.in 2016-11-15 14:26:41.446366266 +0100
+@@ -110,7 +110,6 @@
+ CXXCPP = @CXXCPP@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+-CXX_FOR_BUILD = @CXX_FOR_BUILD@
+ CYGPATH_W = @CYGPATH_W@
+ DEFS = @DEFS@
+ DEPDIR = @DEPDIR@
+diff -Naur libdbus-c++-0.9.0.ori/examples/ecore/Makefile.in libdbus-c++-0.9.0/examples/ecore/Makefile.in
+--- libdbus-c++-0.9.0.ori/examples/ecore/Makefile.in 2016-11-15 14:25:36.089882803 +0100
++++ libdbus-c++-0.9.0/examples/ecore/Makefile.in 2016-11-15 14:26:37.074333925 +0100
+@@ -100,7 +100,6 @@
+ CXXCPP = @CXXCPP@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+-CXX_FOR_BUILD = @CXX_FOR_BUILD@
+ CYGPATH_W = @CYGPATH_W@
+ DEFS = @DEFS@
+ DEPDIR = @DEPDIR@
+diff -Naur libdbus-c++-0.9.0.ori/examples/glib/Makefile.in libdbus-c++-0.9.0/examples/glib/Makefile.in
+--- libdbus-c++-0.9.0.ori/examples/glib/Makefile.in 2016-11-15 14:25:36.089882803 +0100
++++ libdbus-c++-0.9.0/examples/glib/Makefile.in 2016-11-15 14:26:33.630308448 +0100
+@@ -99,7 +99,6 @@
+ CXXCPP = @CXXCPP@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+-CXX_FOR_BUILD = @CXX_FOR_BUILD@
+ CYGPATH_W = @CYGPATH_W@
+ DEFS = @DEFS@
+ DEPDIR = @DEPDIR@
+diff -Naur libdbus-c++-0.9.0.ori/examples/hal/Makefile.in libdbus-c++-0.9.0/examples/hal/Makefile.in
+--- libdbus-c++-0.9.0.ori/examples/hal/Makefile.in 2016-11-15 14:25:36.089882803 +0100
++++ libdbus-c++-0.9.0/examples/hal/Makefile.in 2016-11-15 14:26:55.014466633 +0100
+@@ -96,7 +96,6 @@
+ CXXCPP = @CXXCPP@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+-CXX_FOR_BUILD = @CXX_FOR_BUILD@
+ CYGPATH_W = @CYGPATH_W@
+ DEFS = @DEFS@
+ DEPDIR = @DEPDIR@
+diff -Naur libdbus-c++-0.9.0.ori/examples/Makefile.in libdbus-c++-0.9.0/examples/Makefile.in
+--- libdbus-c++-0.9.0.ori/examples/Makefile.in 2016-11-15 14:25:36.089882803 +0100
++++ libdbus-c++-0.9.0/examples/Makefile.in 2016-11-15 14:26:46.122400856 +0100
+@@ -106,7 +106,6 @@
+ CXXCPP = @CXXCPP@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+-CXX_FOR_BUILD = @CXX_FOR_BUILD@
+ CYGPATH_W = @CYGPATH_W@
+ DEFS = @DEFS@
+ DEPDIR = @DEPDIR@
+diff -Naur libdbus-c++-0.9.0.ori/examples/properties/Makefile.in libdbus-c++-0.9.0/examples/properties/Makefile.in
+--- libdbus-c++-0.9.0.ori/examples/properties/Makefile.in 2016-11-15 14:25:36.089882803 +0100
++++ libdbus-c++-0.9.0/examples/properties/Makefile.in 2016-11-15 14:26:50.818435594 +0100
+@@ -99,7 +99,6 @@
+ CXXCPP = @CXXCPP@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+-CXX_FOR_BUILD = @CXX_FOR_BUILD@
+ CYGPATH_W = @CYGPATH_W@
+ DEFS = @DEFS@
+ DEPDIR = @DEPDIR@
+diff -Naur libdbus-c++-0.9.0.ori/Makefile.in libdbus-c++-0.9.0/Makefile.in
+--- libdbus-c++-0.9.0.ori/Makefile.in 2016-11-15 14:25:36.085882774 +0100
++++ libdbus-c++-0.9.0/Makefile.in 2016-11-15 14:27:02.834524481 +0100
+@@ -155,7 +155,6 @@
+ CXXCPP = @CXXCPP@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+-CXX_FOR_BUILD = @CXX_FOR_BUILD@
+ CYGPATH_W = @CYGPATH_W@
+ DEFS = @DEFS@
+ DEPDIR = @DEPDIR@
+diff -Naur libdbus-c++-0.9.0.ori/src/integration/ecore/Makefile.in libdbus-c++-0.9.0/src/integration/ecore/Makefile.in
+--- libdbus-c++-0.9.0.ori/src/integration/ecore/Makefile.in 2016-11-15 14:25:36.089882803 +0100
++++ libdbus-c++-0.9.0/src/integration/ecore/Makefile.in 2016-11-15 14:27:21.206660385 +0100
+@@ -122,7 +122,6 @@
+ CXXCPP = @CXXCPP@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+-CXX_FOR_BUILD = @CXX_FOR_BUILD@
+ CYGPATH_W = @CYGPATH_W@
+ DEFS = @DEFS@
+ DEPDIR = @DEPDIR@
+diff -Naur libdbus-c++-0.9.0.ori/src/integration/glib/Makefile.in libdbus-c++-0.9.0/src/integration/glib/Makefile.in
+--- libdbus-c++-0.9.0.ori/src/integration/glib/Makefile.in 2016-11-15 14:25:36.089882803 +0100
++++ libdbus-c++-0.9.0/src/integration/glib/Makefile.in 2016-11-15 14:27:17.274631299 +0100
+@@ -123,7 +123,6 @@
+ CXXCPP = @CXXCPP@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+-CXX_FOR_BUILD = @CXX_FOR_BUILD@
+ CYGPATH_W = @CYGPATH_W@
+ DEFS = @DEFS@
+ DEPDIR = @DEPDIR@
+diff -Naur libdbus-c++-0.9.0.ori/src/integration/Makefile.in libdbus-c++-0.9.0/src/integration/Makefile.in
+--- libdbus-c++-0.9.0.ori/src/integration/Makefile.in 2016-11-15 14:25:36.089882803 +0100
++++ libdbus-c++-0.9.0/src/integration/Makefile.in 2016-11-15 14:27:23.698678820 +0100
+@@ -106,7 +106,6 @@
+ CXXCPP = @CXXCPP@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+-CXX_FOR_BUILD = @CXX_FOR_BUILD@
+ CYGPATH_W = @CYGPATH_W@
+ DEFS = @DEFS@
+ DEPDIR = @DEPDIR@
+diff -Naur libdbus-c++-0.9.0.ori/src/Makefile.in libdbus-c++-0.9.0/src/Makefile.in
+--- libdbus-c++-0.9.0.ori/src/Makefile.in 2016-11-15 14:25:36.089882803 +0100
++++ libdbus-c++-0.9.0/src/Makefile.in 2016-11-15 14:27:12.270594283 +0100
+@@ -172,7 +172,6 @@
+ CXXCPP = @CXXCPP@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+-CXX_FOR_BUILD = @CXX_FOR_BUILD@
+ CYGPATH_W = @CYGPATH_W@
+ DEFS = @DEFS@
+ DEPDIR = @DEPDIR@
+diff -Naur libdbus-c++-0.9.0.ori/test/functional/Makefile.in libdbus-c++-0.9.0/test/functional/Makefile.in
+--- libdbus-c++-0.9.0.ori/test/functional/Makefile.in 2016-11-15 14:25:36.085882774 +0100
++++ libdbus-c++-0.9.0/test/functional/Makefile.in 2016-11-15 14:26:15.126171567 +0100
+@@ -106,7 +106,6 @@
+ CXXCPP = @CXXCPP@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+-CXX_FOR_BUILD = @CXX_FOR_BUILD@
+ CYGPATH_W = @CYGPATH_W@
+ DEFS = @DEFS@
+ DEPDIR = @DEPDIR@
+diff -Naur libdbus-c++-0.9.0.ori/test/functional/Test1/Makefile.in libdbus-c++-0.9.0/test/functional/Test1/Makefile.in
+--- libdbus-c++-0.9.0.ori/test/functional/Test1/Makefile.in 2016-11-15 14:25:36.085882774 +0100
++++ libdbus-c++-0.9.0/test/functional/Test1/Makefile.in 2016-11-15 14:26:11.670146002 +0100
+@@ -105,7 +105,6 @@
+ CXXCPP = @CXXCPP@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+-CXX_FOR_BUILD = @CXX_FOR_BUILD@
+ CYGPATH_W = @CYGPATH_W@
+ DEFS = @DEFS@
+ DEPDIR = @DEPDIR@
+diff -Naur libdbus-c++-0.9.0.ori/test/generator/Makefile.in libdbus-c++-0.9.0/test/generator/Makefile.in
+--- libdbus-c++-0.9.0.ori/test/generator/Makefile.in 2016-11-15 14:25:36.085882774 +0100
++++ libdbus-c++-0.9.0/test/generator/Makefile.in 2016-11-15 14:26:02.622079070 +0100
+@@ -114,7 +114,6 @@
+ CXXCPP = @CXXCPP@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+-CXX_FOR_BUILD = @CXX_FOR_BUILD@
+ CYGPATH_W = @CYGPATH_W@
+ DEFS = @DEFS@
+ DEPDIR = @DEPDIR@
+diff -Naur libdbus-c++-0.9.0.ori/test/Makefile.in libdbus-c++-0.9.0/test/Makefile.in
+--- libdbus-c++-0.9.0.ori/test/Makefile.in 2016-11-15 14:25:36.085882774 +0100
++++ libdbus-c++-0.9.0/test/Makefile.in 2016-11-15 14:26:07.770117152 +0100
+@@ -106,7 +106,6 @@
+ CXXCPP = @CXXCPP@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+-CXX_FOR_BUILD = @CXX_FOR_BUILD@
+ CYGPATH_W = @CYGPATH_W@
+ DEFS = @DEFS@
+ DEPDIR = @DEPDIR@
+diff -Naur libdbus-c++-0.9.0.ori/tools/Makefile.am libdbus-c++-0.9.0/tools/Makefile.am
+--- libdbus-c++-0.9.0.ori/tools/Makefile.am 2016-11-15 14:25:36.089882803 +0100
++++ libdbus-c++-0.9.0/tools/Makefile.am 2016-11-15 14:26:19.454203583 +0100
+@@ -1,7 +1,5 @@
+ # hacky, but ...
+
+-CXX = $(CXX_FOR_BUILD)
+-
+ AM_CPPFLAGS = \
+ $(dbus_CFLAGS) \
+ $(xml_CFLAGS) \
+diff -Naur libdbus-c++-0.9.0.ori/tools/Makefile.in libdbus-c++-0.9.0/tools/Makefile.in
+--- libdbus-c++-0.9.0.ori/tools/Makefile.in 2016-11-15 14:25:36.089882803 +0100
++++ libdbus-c++-0.9.0/tools/Makefile.in 2016-11-15 14:27:44.306831265 +0100
+@@ -101,11 +101,9 @@
+ CFLAGS = @CFLAGS@
+ CPP = @CPP@
+ CPPFLAGS = @CPPFLAGS@
+-CXX = $(CXX_FOR_BUILD)
+ CXXCPP = @CXXCPP@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+-CXX_FOR_BUILD = @CXX_FOR_BUILD@
+ CYGPATH_W = @CYGPATH_W@
+ DEFS = @DEFS@
+ DEPDIR = @DEPDIR@
diff --git a/meta/recipes-core/dbus/libdbus-c++_0.9.0.bb b/meta/recipes-core/dbus/libdbus-c++_0.9.0.bb
new file mode 100644
index 0000000..7edaffc
--- /dev/null
+++ b/meta/recipes-core/dbus/libdbus-c++_0.9.0.bb
@@ -0,0 +1,24 @@
+SUMMARY = "DBus-C++ Library"
+DESCRIPTION = "DBus-c++ attempts to provide a C++ API for D-BUS. The library has a glib and an Ecore mainloop integration. It also offers an optional own main loop."
+HOMEPAGE = "http://dbus-cplusplus.sourceforge.net"
+SECTION = "base"
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
+DEPENDS = "dbus glib-2.0 libpcre"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/project/dbus-cplusplus/dbus-c++/${PV}/${BPN}-${PV}.tar.gz \
+ file://fix-missing-unistd.h-include.patch \
+ file://remove-CXX_FOR_BUILD-stuff.patch"
+SRC_URI[md5sum] = "e752116f523fa88ef041e63d3dee4de2"
+SRC_URI[sha256sum] = "bc11ac297b3cb010be904c72789695543ee3fdf3d75cdc8225fd371385af4e61"
+
+EXTRA_OECONF = "--disable-ecore --disable-examples --disable-tests"
+
+inherit autotools pkgconfig
+
+PACKAGES += "${PN}-tools"
+
+FILES_${PN} = "${libdir}"
+FILES_${PN}-tools = "${bindir}"
+
+BBCLASSEXTEND = "native"
--
2.10.2