summaryrefslogtreecommitdiffstats
path: root/recipes-core/dbus/dbus-glib.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/dbus/dbus-glib.inc')
-rw-r--r--recipes-core/dbus/dbus-glib.inc53
1 files changed, 53 insertions, 0 deletions
diff --git a/recipes-core/dbus/dbus-glib.inc b/recipes-core/dbus/dbus-glib.inc
new file mode 100644
index 0000000000..c1c1813d9a
--- /dev/null
+++ b/recipes-core/dbus/dbus-glib.inc
@@ -0,0 +1,53 @@
1DESCRIPTION = "GLib bindings for the dbus message bus system"
2HOMEPAGE = "http://www.freedesktop.org/Software/dbus"
3SECTION = "libs"
4LICENSE = "GPLv2+ AFLv2.1"
5
6DEPENDS = "expat glib-2.0 virtual/libintl dbus-glib-native dbus"
7DEPENDS_virtclass-native = "expat-native glib-2.0-native dbus-native"
8
9INC_PR = "r2"
10
11
12SRC_URI = "\
13 http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz \
14 file://no-examples.patch \
15 file://no-introspect.patch \
16 "
17
18SRC_URI_virtclass-native = "http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz"
19
20inherit autotools pkgconfig gettext
21
22BBCLASSEXTEND = "native"
23
24do_configure_prepend() {
25 install -m 0644 ${STAGING_DATADIR_NATIVE}/dbus/dbus-bus-introspect.xml ${S}/tools/
26 install -m 0644 ${STAGING_DATADIR_NATIVE}/dbus/dbus-glib-bindings.h ${S}/tools/
27
28}
29
30do_configure_virtclass-native() {
31 autotools_do_configure
32}
33
34do_install_virtclass-native() {
35 autotools_do_install
36 install -d ${D}${datadir}/dbus
37 install -m 0644 tools/dbus-glib-bindings.h ${D}${datadir}/dbus
38}
39
40PACKAGES += "${PN}-bash-completion"
41
42FILES_${PN}-bash-completion = "\
43 ${sysconfdir}/bash_completion.d \
44 ${prefix}/libexec/dbus-bash-completion-helper \
45"
46
47FILES_${PN} = "${libdir}/lib*.so.*"
48
49FILES_${PN}-dev += "\
50 ${libdir}/dbus-1.0/include \
51 ${bindir}/dbus-glib-tool \
52 ${bindir}/dbus-binding-tool \
53"