aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/dbus/dbus-glib.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/dbus/dbus-glib.inc')
-rw-r--r--recipes/dbus/dbus-glib.inc36
1 files changed, 29 insertions, 7 deletions
diff --git a/recipes/dbus/dbus-glib.inc b/recipes/dbus/dbus-glib.inc
index bfc7f7c037..4db734b1e2 100644
--- a/recipes/dbus/dbus-glib.inc
+++ b/recipes/dbus/dbus-glib.inc
@@ -2,28 +2,50 @@ DESCRIPTION = "GLib bindings for the dbus message bus system"
HOMEPAGE = "http://www.freedesktop.org/Software/dbus"
SECTION = "libs"
LICENSE = "GPL"
+
DEPENDS = "expat glib-2.0 virtual/libintl dbus-glib-native dbus"
-INC_PR = "r1"
+DEPENDS_virtclass-native = "expat-native glib-2.0-native dbus-native"
+
+INC_PR = "r2"
+
SRC_URI = "\
- http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz;name=archive \
- file://no-introspect.patch;patch=1 \
- file://no-examples.patch;patch=1 \
-"
+ http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz \
+ file://no-examples.patch \
+ file://no-introspect.patch \
+ "
+
+SRC_URI_virtclass-native = "http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz"
inherit autotools pkgconfig gettext
+BBCLASSEXTEND = "native"
+
do_configure_prepend() {
- install -m 0644 ${STAGING_DATADIR_NATIVE}/dbus/dbus-bus-introspect.xml ${S}/tools/
- install -m 0644 ${STAGING_DATADIR_NATIVE}/dbus/dbus-glib-bindings.h ${S}/tools/
+ install -m 0644 ${STAGING_DATADIR_NATIVE}/dbus/dbus-bus-introspect.xml ${S}/tools/
+ install -m 0644 ${STAGING_DATADIR_NATIVE}/dbus/dbus-glib-bindings.h ${S}/tools/
+
+}
+
+do_configure_virtclass-native() {
+ autotools_do_configure
+}
+
+do_install_virtclass-native() {
+ autotools_do_install
+ install -d ${D}${datadir}/dbus
+ install -m 0644 tools/dbus-glib-bindings.h ${D}${datadir}/dbus
}
PACKAGES += "${PN}-bash-completion"
+
FILES_${PN}-bash-completion = "\
${sysconfdir}/bash_completion.d \
${prefix}/libexec/dbus-bash-completion-helper \
"
+
FILES_${PN} = "${libdir}/lib*.so.*"
+
FILES_${PN}-dev += "\
${libdir}/dbus-1.0/include \
${bindir}/dbus-glib-tool \