summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2013-12-26 15:00:26 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2014-01-05 10:16:38 (GMT)
commit74922ba73785c56165910cda0c835514866cf2bc (patch)
tree8ce2a691f86d0ecc17bfc568023218e3f9f56bae
parent344a1b88ee46a5b26613d4177979039379373b73 (diff)
downloadbuildroot-74922ba73785c56165910cda0c835514866cf2bc.tar.gz
buildroot-74922ba73785c56165910cda0c835514866cf2bc.tar.bz2
dbus-cpp: new package
D-Bus C++ bindings, closes bug #65. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/Config.in1
-rw-r--r--package/dbus-cpp/Config.in18
-rw-r--r--package/dbus-cpp/dbus-cpp-0001-gcc4.7.patch17
-rw-r--r--package/dbus-cpp/dbus-cpp.mk36
4 files changed, 72 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 73d64bf..e2280f1 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -265,6 +265,7 @@ source "package/avrdude/Config.in"
source "package/cdrkit/Config.in"
source "package/cryptsetup/Config.in"
source "package/dbus/Config.in"
+source "package/dbus-cpp/Config.in"
source "package/dbus-glib/Config.in"
source "package/dbus-python/Config.in"
if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
diff --git a/package/dbus-cpp/Config.in b/package/dbus-cpp/Config.in
new file mode 100644
index 0000000..f631ece
--- /dev/null
+++ b/package/dbus-cpp/Config.in
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_DBUS_CPP
+ bool "dbus-c++"
+ depends on BR2_PACKAGE_DBUS
+ depends on BR2_TOOLCHAIN_HAS_THREADS # dbus
+ depends on BR2_USE_MMU # dbus
+ depends on BR2_INSTALL_LIBSTDCPP
+ select BR2_PACKAGE_EXPAT
+ help
+ dbus-c++ attempts to provide a C++ API for D-BUS.
+ The library has a glib/gtk and an Ecore mainloop integration.
+ It also offers an optional own main loop.
+
+ http://sourceforge.net/projects/dbus-cplusplus/
+
+comment "dbus-c++ needs a toolchain w/ C++, threads"
+ depends on BR2_USE_MMU
+ depends on BR2_PACKAGE_DBUS
+ depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/dbus-cpp/dbus-cpp-0001-gcc4.7.patch b/package/dbus-cpp/dbus-cpp-0001-gcc4.7.patch
new file mode 100644
index 0000000..ad3046c
--- /dev/null
+++ b/package/dbus-cpp/dbus-cpp-0001-gcc4.7.patch
@@ -0,0 +1,17 @@
+Fix build failure with gcc 4.7+
+From bugtracker: http://sourceforge.net/p/dbus-cplusplus/patches/13/
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+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/package/dbus-cpp/dbus-cpp.mk b/package/dbus-cpp/dbus-cpp.mk
new file mode 100644
index 0000000..7936abd
--- /dev/null
+++ b/package/dbus-cpp/dbus-cpp.mk
@@ -0,0 +1,36 @@
+################################################################################
+#
+# dbus-c++
+#
+################################################################################
+
+DBUS_CPP_VERSION = 0.9.0
+DBUS_CPP_SITE = http://downloads.sourceforge.net/project/dbus-cplusplus/dbus-c++/$(DBUS_CPP_VERSION)
+DBUS_CPP_SOURCE = libdbus-c++-$(DBUS_CPP_VERSION).tar.gz
+DBUS_CPP_INSTALL_STAGING = YES
+# expat is required for the tools irrespective of dbus xml backend
+DBUS_CPP_DEPENDENCIES = host-dbus-cpp host-pkgconf dbus expat
+HOST_DBUS_CPP_DEPENDENCIES = host-pkgconf host-dbus host-expat
+DBUS_CPP_CONF_OPT = --disable-examples --disable-tests --disable-doxygen-docs \
+ --with-build-libdbus-cxx=$(HOST_DBUS_CPP_BUILDDIR)
+HOST_DBUS_CPP_CONF_OPT = --disable-examples --disable-tests \
+ --disable-doxygen-docs --disable-ecore --disable-glib
+DBUS_CPP_LICENSE = LGPLv2.1+
+DBUS_CPP_LICENSE_FILES = COPYING
+
+ifeq ($(BR2_PACKAGE_LIBECORE),y)
+ DBUS_CPP_CONF_OPT += --enable-ecore
+ DBUS_CPP_DEPENDENCIES += libecore
+else
+ DBUS_CPP_CONF_OPT += --disable-ecore
+endif
+
+ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
+ DBUS_CPP_CONF_OPT += --enable-glib
+ DBUS_CPP_DEPENDENCIES += libglib2
+else
+ DBUS_CPP_CONF_OPT += --disable-glib
+endif
+
+$(eval $(autotools-package))
+$(eval $(host-autotools-package))