bluez4: add urjaman's brf6300 patches
[openembedded.git] / recipes / bluez / bluez4.inc
1 DESCRIPTION = "Linux Bluetooth Stack Userland V4"
2 HOMEPAGE = "http://www.bluez.org"
3 SECTION = "libs"
4 PRIORITY = "optional"
5 LICENSE = "GPL"
6 DEPENDS = "gst-plugins-base alsa-lib virtual/libusb0 dbus-glib"
7 INC_PR = "r7"
8
9 # temporary solution until bug 5176 is properly fixed
10 PROVIDES += "bluez-utils bluez-libs bluez-utils-dbus"
11 RPROVIDES_bluez4 += "bluez-utils bluez-libs bluez-utils-dbus"
12 RPROVIDES_bluez4-dev = "bluez-libs-dev"
13
14 SRC_URI = "\
15   http://www.kernel.org/pub/linux/bluetooth/bluez-${PV}.tar.gz;name=bluez-${PV} \
16   file://fix-dfutool-usb-declaration-mismatch.patch;patch=1 \
17   file://sbc-thumb.patch;patch=1 \
18   file://0001-hciattach_tialt-Implement-texas_change_speed-functio.patch;patch=1 \
19   file://firmware_path.patch;patch=1 \
20   file://bluetooth.conf \
21 "
22 S = "${WORKDIR}/bluez-${PV}"
23
24 inherit autotools_stage update-rc.d
25 AUTOTOOLS_STAGE_PKGCONFIG = "1"
26
27 EXTRA_OECONF = "\
28   --enable-gstreamer \
29   --enable-alsa \
30   --enable-usb \
31   --enable-netlink \
32   --enable-tools \
33   --enable-bccmd \
34   --enable-hid2hci \
35   --enable-dfutool \
36   --enable-hidd \
37   --enable-pand \
38   --enable-dund \
39   --disable-cups \
40   --enable-test \
41   --enable-manpages \
42   --enable-configfiles \
43   --enable-initscripts \
44   --disable-pcmciarules \
45 "
46
47 do_install_append() {
48         install -m 0644 ${S}/audio/audio.conf ${D}/${sysconfdir}/bluetooth/
49         install -m 0644 ${S}/network/network.conf ${D}/${sysconfdir}/bluetooth/
50         install -m 0644 ${S}/input/input.conf ${D}/${sysconfdir}/bluetooth/
51         # at_console doesn't really work with the current state of OE, so punch some more holes so people can actually use BT
52         install -m 0644 ${WORKDIR}/bluetooth.conf ${D}/${sysconfdir}/dbus-1/system.d/
53 }
54
55 INITSCRIPT_NAME = "bluetooth"
56 INITSCRIPT_PARAMS = "defaults 23 19"
57
58 PACKAGES =+ "gst-plugin-bluez libasound-module-bluez"
59
60 FILES_gst-plugin-bluez = "${libdir}/gstreamer-0.10/lib*.so"
61 FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so"
62 FILES_${PN} += "${libdir}/bluetooth/plugins/*.so ${base_libdir}/udev"
63 FILES_${PN}-dev += "\
64   ${libdir}/bluetooth/plugins/*.la \
65   ${libdir}/alsa-lib/*.la \
66   ${libdir}/gstreamer-0.10/*.la \
67 "
68
69 FILES_${PN}-dbg += "\
70   ${libdir}/bluetooth/plugins/.debug \
71   ${libdir}/*/.debug \
72 "