diff options
Diffstat (limited to 'recipes-core/dbus/dbus-glib.inc')
-rw-r--r-- | recipes-core/dbus/dbus-glib.inc | 53 |
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 @@ | |||
1 | DESCRIPTION = "GLib bindings for the dbus message bus system" | ||
2 | HOMEPAGE = "http://www.freedesktop.org/Software/dbus" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "GPLv2+ AFLv2.1" | ||
5 | |||
6 | DEPENDS = "expat glib-2.0 virtual/libintl dbus-glib-native dbus" | ||
7 | DEPENDS_virtclass-native = "expat-native glib-2.0-native dbus-native" | ||
8 | |||
9 | INC_PR = "r2" | ||
10 | |||
11 | |||
12 | SRC_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 | |||
18 | SRC_URI_virtclass-native = "http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz" | ||
19 | |||
20 | inherit autotools pkgconfig gettext | ||
21 | |||
22 | BBCLASSEXTEND = "native" | ||
23 | |||
24 | do_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 | |||
30 | do_configure_virtclass-native() { | ||
31 | autotools_do_configure | ||
32 | } | ||
33 | |||
34 | do_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 | |||
40 | PACKAGES += "${PN}-bash-completion" | ||
41 | |||
42 | FILES_${PN}-bash-completion = "\ | ||
43 | ${sysconfdir}/bash_completion.d \ | ||
44 | ${prefix}/libexec/dbus-bash-completion-helper \ | ||
45 | " | ||
46 | |||
47 | FILES_${PN} = "${libdir}/lib*.so.*" | ||
48 | |||
49 | FILES_${PN}-dev += "\ | ||
50 | ${libdir}/dbus-1.0/include \ | ||
51 | ${bindir}/dbus-glib-tool \ | ||
52 | ${bindir}/dbus-binding-tool \ | ||
53 | " | ||