diff options
Diffstat (limited to 'meta/recipes-connectivity/bluez5/bluez5.inc')
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5.inc | 86 |
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 @@ | |||
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[alsa] = "--enable-alsa,--disable-alsa,alsa-lib" | ||
15 | PACKAGECONFIG[obex-profiles] = "--enable-obex,--disable-obex,libical" | ||
16 | |||
17 | SRC_URI = "\ | ||
18 | ${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.gz \ | ||
19 | file://bluetooth.conf \ | ||
20 | " | ||
21 | S = "${WORKDIR}/bluez-${PV}" | ||
22 | |||
23 | inherit autotools pkgconfig systemd | ||
24 | |||
25 | EXTRA_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 | |||
42 | do_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 | |||
57 | ALLOW_EMPTY_libasound-module-bluez = "1" | ||
58 | PACKAGES =+ "libasound-module-bluez ${PN}-testtools ${PN}-obex" | ||
59 | |||
60 | FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa" | ||
61 | FILES_${PN} += "${libdir}/bluetooth/plugins ${libdir}/bluetooth/plugins/*.so ${base_libdir}/udev/ ${nonarch_base_libdir}/udev/ ${systemd_unitdir}/ ${datadir}/dbus-1" | ||
62 | FILES_${PN}-dev += "\ | ||
63 | ${libdir}/bluetooth/plugins/*.la \ | ||
64 | ${libdir}/alsa-lib/*.la \ | ||
65 | " | ||
66 | |||
67 | FILES_${PN}-obex = "${libdir}/bluez5/bluetooth/obexd \ | ||
68 | ${libdir}/systemd/user/obex.service \ | ||
69 | ${datadir}/dbus-1/services/org.bluez.obex.service \ | ||
70 | " | ||
71 | SYSTEMD_SERVICE_${PN}-obex = "obex.service" | ||
72 | |||
73 | FILES_${PN}-testtools = "${libdir}/bluez/test/*" | ||
74 | |||
75 | FILES_${PN}-dbg += "\ | ||
76 | ${libdir}/${BPN}/bluetooth/.debug \ | ||
77 | ${libdir}/bluetooth/plugins/.debug \ | ||
78 | ${libdir}/*/.debug \ | ||
79 | */udev/.debug \ | ||
80 | " | ||
81 | |||
82 | RDEPENDS_${PN}-testtools += "python python-dbus python-pygobject" | ||
83 | |||
84 | SYSTEMD_SERVICE_${PN} = "bluetooth.service" | ||
85 | |||
86 | EXCLUDE_FROM_WORLD = "1" | ||