Import buildroot 2016.02.01
This commit is contained in:
17
firmware/buildroot/package/dbus-cpp/0001-gcc4.7.patch
Normal file
17
firmware/buildroot/package/dbus-cpp/0001-gcc4.7.patch
Normal file
@@ -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"
|
||||
@@ -0,0 +1,32 @@
|
||||
Use CXXFLAGS_FOR_BUILD and LDFLAGS_FOR_BUILD for the tools since expat
|
||||
may not be living in the default include & library path.
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
|
||||
diff -Nura libdbus-c++-0.9.0.orig/configure.ac libdbus-c++-0.9.0/configure.ac
|
||||
--- libdbus-c++-0.9.0.orig/configure.ac 2014-01-05 15:28:03.653886567 -0300
|
||||
+++ libdbus-c++-0.9.0/configure.ac 2014-01-05 15:44:32.571172225 -0300
|
||||
@@ -65,7 +65,11 @@
|
||||
AC_PROG_CXX
|
||||
|
||||
CXX_FOR_BUILD=${CXX_FOR_BUILD-${CXX}}
|
||||
+CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
|
||||
+LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
|
||||
AC_SUBST(CXX_FOR_BUILD)
|
||||
+AC_SUBST(CXXFLAGS_FOR_BUILD)
|
||||
+AC_SUBST(LDFLAGS_FOR_BUILD)
|
||||
|
||||
AM_PROG_LIBTOOL
|
||||
|
||||
diff -Nura libdbus-c++-0.9.0.orig/tools/Makefile.am libdbus-c++-0.9.0/tools/Makefile.am
|
||||
--- libdbus-c++-0.9.0.orig/tools/Makefile.am 2014-01-05 15:28:03.652886535 -0300
|
||||
+++ libdbus-c++-0.9.0/tools/Makefile.am 2014-01-05 15:44:42.071482390 -0300
|
||||
@@ -1,6 +1,8 @@
|
||||
# hacky, but ...
|
||||
|
||||
CXX = $(CXX_FOR_BUILD)
|
||||
+CXXFLAGS = $(CXXFLAGS_FOR_BUILD)
|
||||
+LDFLAGS = $(LDFLAGS_FOR_BUILD)
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
$(dbus_CFLAGS) \
|
||||
20
firmware/buildroot/package/dbus-cpp/Config.in
Normal file
20
firmware/buildroot/package/dbus-cpp/Config.in
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
depends on !BR2_TOOLCHAIN_USES_MUSL # no PTHREAD_RECURSIVE_MUTEX_*
|
||||
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 uClibc or (e)glibc toolchain w/ C++, threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_PACKAGE_DBUS
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \
|
||||
|| BR2_TOOLCHAIN_USES_MUSL
|
||||
2
firmware/buildroot/package/dbus-cpp/dbus-cpp.hash
Normal file
2
firmware/buildroot/package/dbus-cpp/dbus-cpp.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally computed:
|
||||
sha256 bc11ac297b3cb010be904c72789695543ee3fdf3d75cdc8225fd371385af4e61 libdbus-c++-0.9.0.tar.gz
|
||||
44
firmware/buildroot/package/dbus-cpp/dbus-cpp.mk
Normal file
44
firmware/buildroot/package/dbus-cpp/dbus-cpp.mk
Normal file
@@ -0,0 +1,44 @@
|
||||
################################################################################
|
||||
#
|
||||
# dbus-cpp
|
||||
#
|
||||
################################################################################
|
||||
|
||||
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_OPTS = \
|
||||
--disable-examples \
|
||||
--disable-tests \
|
||||
--disable-doxygen-docs \
|
||||
--with-build-libdbus-cxx=$(HOST_DBUS_CPP_BUILDDIR)
|
||||
HOST_DBUS_CPP_CONF_OPTS = \
|
||||
--disable-examples \
|
||||
--disable-tests \
|
||||
--disable-doxygen-docs \
|
||||
--disable-ecore \
|
||||
--disable-glib
|
||||
DBUS_CPP_AUTORECONF = YES
|
||||
DBUS_CPP_LICENSE = LGPLv2.1+
|
||||
DBUS_CPP_LICENSE_FILES = COPYING
|
||||
|
||||
ifeq ($(BR2_PACKAGE_EFL),y)
|
||||
DBUS_CPP_CONF_OPTS += --enable-ecore
|
||||
DBUS_CPP_DEPENDENCIES += efl
|
||||
else
|
||||
DBUS_CPP_CONF_OPTS += --disable-ecore
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
|
||||
DBUS_CPP_CONF_OPTS += --enable-glib
|
||||
DBUS_CPP_DEPENDENCIES += libglib2
|
||||
else
|
||||
DBUS_CPP_CONF_OPTS += --disable-glib
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user