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.inc86
1 files changed, 86 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..2e25d86e55
--- /dev/null
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -0,0 +1,86 @@
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[alsa] = "--enable-alsa,--disable-alsa,alsa-lib"
15PACKAGECONFIG[obex-profiles] = "--enable-obex,--disable-obex,libical"
16
17SRC_URI = "\
18 ${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.gz \
19 file://bluetooth.conf \
20"
21S = "${WORKDIR}/bluez-${PV}"
22
23inherit autotools pkgconfig systemd
24
25EXTRA_OECONF = "\
26 --disable-gstreamer \
27 --enable-usb \
28 --enable-tools \
29 --enable-bccmd \
30 --enable-hid2hci \
31 --enable-dfutool \
32 --disable-hidd \
33 --disable-pand \
34 --disable-dund \
35 --disable-cups \
36 --enable-test \
37 --enable-datafiles \
38 ${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdunitdir=${systemd_unitdir}/system/', '--disable-systemd', d)} \
39 --enable-library \
40"
41
42do_install_append() {
43 install -d ${D}${sysconfdir}/bluetooth/
44 if [ -f ${S}/profiles/audio/audio.conf ]; then
45 install -m 0644 ${S}/profiles/audio/audio.conf ${D}/${sysconfdir}/bluetooth/
46 fi
47 if [ -f ${S}/profiles/network/network.conf ]; then
48 install -m 0644 ${S}/profiles/network/network.conf ${D}/${sysconfdir}/bluetooth/
49 fi
50 if [ -f ${S}/profiles/input/input.conf ]; then
51 install -m 0644 ${S}/profiles/input/input.conf ${D}/${sysconfdir}/bluetooth/
52 fi
53 # at_console doesn't really work with the current state of OE, so punch some more holes so people can actually use BT
54 install -m 0644 ${WORKDIR}/bluetooth.conf ${D}/${sysconfdir}/dbus-1/system.d/
55}
56
57ALLOW_EMPTY_libasound-module-bluez = "1"
58PACKAGES =+ "libasound-module-bluez ${PN}-testtools ${PN}-obex"
59
60FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa"
61FILES_${PN} += "${libdir}/bluetooth/plugins ${libdir}/bluetooth/plugins/*.so ${base_libdir}/udev/ ${nonarch_base_libdir}/udev/ ${systemd_unitdir}/ ${datadir}/dbus-1"
62FILES_${PN}-dev += "\
63 ${libdir}/bluetooth/plugins/*.la \
64 ${libdir}/alsa-lib/*.la \
65"
66
67FILES_${PN}-obex = "${libdir}/bluez5/bluetooth/obexd \
68 ${libdir}/systemd/user/obex.service \
69 ${datadir}/dbus-1/services/org.bluez.obex.service \
70 "
71SYSTEMD_SERVICE_${PN}-obex = "obex.service"
72
73FILES_${PN}-testtools = "${libdir}/bluez/test/*"
74
75FILES_${PN}-dbg += "\
76 ${libdir}/${BPN}/bluetooth/.debug \
77 ${libdir}/bluetooth/plugins/.debug \
78 ${libdir}/*/.debug \
79 */udev/.debug \
80 "
81
82RDEPENDS_${PN}-testtools += "python python-dbus python-pygobject"
83
84SYSTEMD_SERVICE_${PN} = "bluetooth.service"
85
86EXCLUDE_FROM_WORLD = "1"