summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/bluez5/bluez5.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/bluez5/bluez5.inc')
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5.inc77
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 0000000..2b832ef
--- /dev/null
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -0,0 +1,77 @@
1SUMMARY = "Linux Bluetooth Stack Userland V5"
2DESCRIPTION = "Linux Bluetooth stack V5 userland components. These include a system configurations, daemons, tools and system libraries."
3HOMEPAGE = "http://www.bluez.org"
4SECTION = "libs"
5LICENSE = "GPLv2+ & LGPLv2.1+"
6LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \
7 file://COPYING.LIB;md5=fb504b67c50331fc78734fed90fb0e09 \
8 file://src/main.c;beginline=1;endline=24;md5=9bc54b93cd7e17bf03f52513f39f926e"
9DEPENDS = "udev libusb dbus-glib glib-2.0 libcheck readline"
10
11RCONFLICTS_${PN} = "bluez4"
12
13PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} obex-profiles"
14PACKAGECONFIG[obex-profiles] = "--enable-obex,--disable-obex,libical"
15
16SRC_URI = "\
17 ${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \
18 file://bluetooth.conf \
19"
20S = "${WORKDIR}/bluez-${PV}"
21
22inherit autotools-brokensep pkgconfig systemd
23
24EXTRA_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
33do_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
48ALLOW_EMPTY_libasound-module-bluez = "1"
49PACKAGES =+ "libasound-module-bluez ${PN}-testtools ${PN}-obex"
50
51FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa"
52FILES_${PN} += "${libdir}/bluetooth/plugins ${libdir}/bluetooth/plugins/*.so ${base_libdir}/udev/ ${nonarch_base_libdir}/udev/ ${systemd_unitdir}/ ${datadir}/dbus-1"
53FILES_${PN}-dev += "\
54 ${libdir}/bluetooth/plugins/*.la \
55 ${libdir}/alsa-lib/*.la \
56"
57
58FILES_${PN}-obex = "${libdir}/bluez5/bluetooth/obexd \
59 ${libdir}/systemd/user/obex.service \
60 ${datadir}/dbus-1/services/org.bluez.obex.service \
61 "
62SYSTEMD_SERVICE_${PN}-obex = "obex.service"
63
64FILES_${PN}-testtools = "${libdir}/bluez/test/*"
65
66FILES_${PN}-dbg += "\
67 ${libdir}/${BPN}/bluetooth/.debug \
68 ${libdir}/bluetooth/plugins/.debug \
69 ${libdir}/*/.debug \
70 */udev/.debug \
71 "
72
73RDEPENDS_${PN}-testtools += "python python-dbus python-pygobject"
74
75SYSTEMD_SERVICE_${PN} = "bluetooth.service"
76
77EXCLUDE_FROM_WORLD = "1"