diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 14:36:22 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 15:32:53 +0200 |
commit | f4cf9fe05bb3f32fabea4e54dd92d368967a80da (patch) | |
tree | 487180fa9866985ea7b28e625651765d86f515c3 /meta/recipes-connectivity/bluez5/bluez5.inc | |
download | poky-f4cf9fe05bb3f32fabea4e54dd92d368967a80da.tar.gz |
initial commit for Enea Linux 4.0
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-connectivity/bluez5/bluez5.inc')
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5.inc | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc new file mode 100644 index 0000000000..2b832efa2c --- /dev/null +++ b/meta/recipes-connectivity/bluez5/bluez5.inc | |||
@@ -0,0 +1,77 @@ | |||
1 | SUMMARY = "Linux Bluetooth Stack Userland V5" | ||
2 | DESCRIPTION = "Linux Bluetooth stack V5 userland components. These include a system configurations, daemons, tools and system libraries." | ||
3 | HOMEPAGE = "http://www.bluez.org" | ||
4 | SECTION = "libs" | ||
5 | LICENSE = "GPLv2+ & LGPLv2.1+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ | ||
7 | file://COPYING.LIB;md5=fb504b67c50331fc78734fed90fb0e09 \ | ||
8 | file://src/main.c;beginline=1;endline=24;md5=9bc54b93cd7e17bf03f52513f39f926e" | ||
9 | DEPENDS = "udev libusb dbus-glib glib-2.0 libcheck readline" | ||
10 | |||
11 | RCONFLICTS_${PN} = "bluez4" | ||
12 | |||
13 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} obex-profiles" | ||
14 | PACKAGECONFIG[obex-profiles] = "--enable-obex,--disable-obex,libical" | ||
15 | |||
16 | SRC_URI = "\ | ||
17 | ${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \ | ||
18 | file://bluetooth.conf \ | ||
19 | " | ||
20 | S = "${WORKDIR}/bluez-${PV}" | ||
21 | |||
22 | inherit autotools-brokensep pkgconfig systemd | ||
23 | |||
24 | EXTRA_OECONF = "\ | ||
25 | --enable-tools \ | ||
26 | --disable-cups \ | ||
27 | --enable-test \ | ||
28 | --enable-datafiles \ | ||
29 | ${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdunitdir=${systemd_unitdir}/system/', '--disable-systemd', d)} \ | ||
30 | --enable-library \ | ||
31 | " | ||
32 | |||
33 | do_install_append() { | ||
34 | install -d ${D}${sysconfdir}/bluetooth/ | ||
35 | if [ -f ${S}/profiles/audio/audio.conf ]; then | ||
36 | install -m 0644 ${S}/profiles/audio/audio.conf ${D}/${sysconfdir}/bluetooth/ | ||
37 | fi | ||
38 | if [ -f ${S}/profiles/network/network.conf ]; then | ||
39 | install -m 0644 ${S}/profiles/network/network.conf ${D}/${sysconfdir}/bluetooth/ | ||
40 | fi | ||
41 | if [ -f ${S}/profiles/input/input.conf ]; then | ||
42 | install -m 0644 ${S}/profiles/input/input.conf ${D}/${sysconfdir}/bluetooth/ | ||
43 | fi | ||
44 | # at_console doesn't really work with the current state of OE, so punch some more holes so people can actually use BT | ||
45 | install -m 0644 ${WORKDIR}/bluetooth.conf ${D}/${sysconfdir}/dbus-1/system.d/ | ||
46 | } | ||
47 | |||
48 | ALLOW_EMPTY_libasound-module-bluez = "1" | ||
49 | PACKAGES =+ "libasound-module-bluez ${PN}-testtools ${PN}-obex" | ||
50 | |||
51 | FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa" | ||
52 | FILES_${PN} += "${libdir}/bluetooth/plugins ${libdir}/bluetooth/plugins/*.so ${base_libdir}/udev/ ${nonarch_base_libdir}/udev/ ${systemd_unitdir}/ ${datadir}/dbus-1" | ||
53 | FILES_${PN}-dev += "\ | ||
54 | ${libdir}/bluetooth/plugins/*.la \ | ||
55 | ${libdir}/alsa-lib/*.la \ | ||
56 | " | ||
57 | |||
58 | FILES_${PN}-obex = "${libdir}/bluez5/bluetooth/obexd \ | ||
59 | ${libdir}/systemd/user/obex.service \ | ||
60 | ${datadir}/dbus-1/services/org.bluez.obex.service \ | ||
61 | " | ||
62 | SYSTEMD_SERVICE_${PN}-obex = "obex.service" | ||
63 | |||
64 | FILES_${PN}-testtools = "${libdir}/bluez/test/*" | ||
65 | |||
66 | FILES_${PN}-dbg += "\ | ||
67 | ${libdir}/${BPN}/bluetooth/.debug \ | ||
68 | ${libdir}/bluetooth/plugins/.debug \ | ||
69 | ${libdir}/*/.debug \ | ||
70 | */udev/.debug \ | ||
71 | " | ||
72 | |||
73 | RDEPENDS_${PN}-testtools += "python python-dbus python-pygobject" | ||
74 | |||
75 | SYSTEMD_SERVICE_${PN} = "bluetooth.service" | ||
76 | |||
77 | EXCLUDE_FROM_WORLD = "1" | ||