2013-07-16 15:26:01 +00:00
|
|
|
SUMMARY = "Linux Bluetooth Stack Userland V5"
|
|
|
|
DESCRIPTION = "Linux Bluetooth stack V5 userland components. These include a system configurations, daemons, tools and system libraries."
|
|
|
|
HOMEPAGE = "http://www.bluez.org"
|
|
|
|
SECTION = "libs"
|
|
|
|
LICENSE = "GPLv2+ & LGPLv2.1+"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \
|
|
|
|
file://COPYING.LIB;md5=fb504b67c50331fc78734fed90fb0e09 \
|
|
|
|
file://src/main.c;beginline=1;endline=24;md5=9bc54b93cd7e17bf03f52513f39f926e"
|
2013-07-30 13:48:34 +00:00
|
|
|
DEPENDS = "udev libusb dbus-glib glib-2.0 libcheck readline"
|
2014-11-01 20:35:34 +00:00
|
|
|
PROVIDES += "bluez-hcidump"
|
|
|
|
RPROVIDES_${PN} += "bluez-hcidump"
|
2013-07-16 15:26:01 +00:00
|
|
|
|
|
|
|
RCONFLICTS_${PN} = "bluez4"
|
|
|
|
|
2014-04-24 18:59:20 +00:00
|
|
|
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} obex-profiles"
|
2013-07-30 13:48:34 +00:00
|
|
|
PACKAGECONFIG[obex-profiles] = "--enable-obex,--disable-obex,libical"
|
2014-11-03 17:47:03 +00:00
|
|
|
PACKAGECONFIG[experimental] = "--enable-experimental,--disable-experimental,"
|
2013-07-16 15:26:01 +00:00
|
|
|
|
|
|
|
SRC_URI = "\
|
2013-12-11 17:24:01 +00:00
|
|
|
${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \
|
2013-07-16 15:26:01 +00:00
|
|
|
file://bluetooth.conf \
|
|
|
|
"
|
|
|
|
S = "${WORKDIR}/bluez-${PV}"
|
|
|
|
|
2014-02-27 18:01:44 +00:00
|
|
|
inherit autotools-brokensep pkgconfig systemd
|
2013-07-16 15:26:01 +00:00
|
|
|
|
|
|
|
EXTRA_OECONF = "\
|
|
|
|
--enable-tools \
|
|
|
|
--disable-cups \
|
|
|
|
--enable-test \
|
|
|
|
--enable-datafiles \
|
2014-11-10 21:12:59 +00:00
|
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--enable-systemd', '--disable-systemd', d)} \
|
2013-09-06 14:49:00 +00:00
|
|
|
--enable-library \
|
2013-07-16 15:26:01 +00:00
|
|
|
"
|
|
|
|
|
2014-11-10 18:05:54 +00:00
|
|
|
# bluez5 builds a large number of useful utilities but does not
|
|
|
|
# install them. Specify which ones we want put into ${PN}-noinst-tools.
|
|
|
|
NOINST_TOOLS_READLINE ??= ""
|
|
|
|
NOINST_TOOLS_EXPERIMENTAL ??= ""
|
|
|
|
NOINST_TOOLS = " \
|
|
|
|
${NOINST_TOOLS_READLINE} \
|
|
|
|
${@bb.utils.contains('PACKAGECONFIG', 'experimental', '${NOINST_TOOLS_EXPERIMENTAL}', '', d)} \
|
|
|
|
"
|
|
|
|
|
2013-07-16 15:26:01 +00:00
|
|
|
do_install_append() {
|
|
|
|
install -d ${D}${sysconfdir}/bluetooth/
|
2013-07-29 08:29:41 +00:00
|
|
|
if [ -f ${S}/profiles/audio/audio.conf ]; then
|
|
|
|
install -m 0644 ${S}/profiles/audio/audio.conf ${D}/${sysconfdir}/bluetooth/
|
|
|
|
fi
|
|
|
|
if [ -f ${S}/profiles/network/network.conf ]; then
|
|
|
|
install -m 0644 ${S}/profiles/network/network.conf ${D}/${sysconfdir}/bluetooth/
|
|
|
|
fi
|
|
|
|
if [ -f ${S}/profiles/input/input.conf ]; then
|
|
|
|
install -m 0644 ${S}/profiles/input/input.conf ${D}/${sysconfdir}/bluetooth/
|
|
|
|
fi
|
2013-07-16 15:26:01 +00:00
|
|
|
# at_console doesn't really work with the current state of OE, so punch some more holes so people can actually use BT
|
|
|
|
install -m 0644 ${WORKDIR}/bluetooth.conf ${D}/${sysconfdir}/dbus-1/system.d/
|
2014-11-10 18:05:54 +00:00
|
|
|
|
|
|
|
# Install desired tools that upstream leaves in build area
|
|
|
|
for f in ${NOINST_TOOLS} ; do
|
|
|
|
install -m 755 ${B}/$f ${D}/${bindir}
|
|
|
|
done
|
2013-07-16 15:26:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ALLOW_EMPTY_libasound-module-bluez = "1"
|
2014-11-10 18:05:54 +00:00
|
|
|
PACKAGES =+ "libasound-module-bluez ${PN}-testtools ${PN}-obex ${PN}-noinst-tools"
|
2013-07-16 15:26:01 +00:00
|
|
|
|
|
|
|
FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa"
|
|
|
|
FILES_${PN} += "${libdir}/bluetooth/plugins ${libdir}/bluetooth/plugins/*.so ${base_libdir}/udev/ ${nonarch_base_libdir}/udev/ ${systemd_unitdir}/ ${datadir}/dbus-1"
|
|
|
|
FILES_${PN}-dev += "\
|
|
|
|
${libdir}/bluetooth/plugins/*.la \
|
|
|
|
${libdir}/alsa-lib/*.la \
|
|
|
|
"
|
|
|
|
|
2013-07-30 13:48:34 +00:00
|
|
|
FILES_${PN}-obex = "${libdir}/bluez5/bluetooth/obexd \
|
2014-06-12 18:26:13 +00:00
|
|
|
${exec_prefix}/lib/systemd/user/obex.service \
|
2013-07-30 13:48:34 +00:00
|
|
|
${datadir}/dbus-1/services/org.bluez.obex.service \
|
|
|
|
"
|
|
|
|
SYSTEMD_SERVICE_${PN}-obex = "obex.service"
|
|
|
|
|
2013-09-06 14:49:01 +00:00
|
|
|
FILES_${PN}-testtools = "${libdir}/bluez/test/*"
|
2013-07-16 15:26:01 +00:00
|
|
|
|
2014-11-10 18:05:54 +00:00
|
|
|
def get_noinst_tools_paths (d, bb, tools):
|
|
|
|
s = list()
|
|
|
|
bindir = d.getVar("bindir", True)
|
|
|
|
for bdp in tools.split():
|
|
|
|
f = os.path.basename(bdp)
|
|
|
|
s.append("%s/%s" % (bindir, f))
|
|
|
|
return "\n".join(s)
|
|
|
|
|
|
|
|
FILES_${PN}-noinst-tools = "${@get_noinst_tools_paths(d, bb, d.getVar('NOINST_TOOLS', True))}"
|
|
|
|
|
2013-07-16 15:26:01 +00:00
|
|
|
FILES_${PN}-dbg += "\
|
|
|
|
${libdir}/${BPN}/bluetooth/.debug \
|
|
|
|
${libdir}/bluetooth/plugins/.debug \
|
|
|
|
${libdir}/*/.debug \
|
|
|
|
*/udev/.debug \
|
|
|
|
"
|
|
|
|
|
2013-09-06 14:49:01 +00:00
|
|
|
RDEPENDS_${PN}-testtools += "python python-dbus python-pygobject"
|
|
|
|
|
2013-07-16 15:26:01 +00:00
|
|
|
SYSTEMD_SERVICE_${PN} = "bluetooth.service"
|
2013-09-11 21:38:01 +00:00
|
|
|
|
|
|
|
EXCLUDE_FROM_WORLD = "1"
|