2014-03-31 10:58:00 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# bluez5_utils
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-07-15 11:22:17 +02:00
|
|
|
BLUEZ5_UTILS_VERSION = 5.46
|
2014-03-31 10:58:00 +02:00
|
|
|
BLUEZ5_UTILS_SOURCE = bluez-$(BLUEZ5_UTILS_VERSION).tar.xz
|
|
|
|
BLUEZ5_UTILS_SITE = $(BR2_KERNEL_MIRROR)/linux/bluetooth
|
|
|
|
BLUEZ5_UTILS_INSTALL_STAGING = YES
|
|
|
|
BLUEZ5_UTILS_DEPENDENCIES = dbus libglib2
|
2017-03-30 15:43:34 +02:00
|
|
|
BLUEZ5_UTILS_LICENSE = GPL-2.0+, LGPL-2.1+
|
2014-03-31 10:58:00 +02:00
|
|
|
BLUEZ5_UTILS_LICENSE_FILES = COPYING COPYING.LIB
|
|
|
|
|
2017-04-21 17:24:48 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS = \
|
|
|
|
--enable-tools \
|
|
|
|
--enable-library \
|
2014-03-31 10:58:00 +02:00
|
|
|
--disable-cups
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_OBEX),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --enable-obex
|
2014-03-31 10:58:00 +02:00
|
|
|
BLUEZ5_UTILS_DEPENDENCIES += libical
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --disable-obex
|
2014-03-31 10:58:00 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_CLIENT),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --enable-client
|
2014-03-31 10:58:00 +02:00
|
|
|
BLUEZ5_UTILS_DEPENDENCIES += readline
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --disable-client
|
2014-03-31 10:58:00 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# experimental plugins
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_EXPERIMENTAL),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --enable-experimental
|
2014-03-31 10:58:00 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --disable-experimental
|
2014-03-31 10:58:00 +02:00
|
|
|
endif
|
|
|
|
|
2017-05-01 14:59:43 +02:00
|
|
|
# enable health plugin
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_PLUGINS_HEALTH),y)
|
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --enable-health
|
|
|
|
else
|
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --disable-health
|
|
|
|
endif
|
|
|
|
|
2017-05-01 14:59:44 +02:00
|
|
|
# enable midi profile
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_PLUGINS_MIDI),y)
|
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --enable-midi
|
|
|
|
BLUEZ5_UTILS_DEPENDENCIES += alsa-lib
|
|
|
|
else
|
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --disable-midi
|
|
|
|
endif
|
|
|
|
|
2017-05-01 14:59:43 +02:00
|
|
|
# enable nfc plugin
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_PLUGINS_NFC),y)
|
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --enable-nfc
|
|
|
|
else
|
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --disable-nfc
|
|
|
|
endif
|
|
|
|
|
|
|
|
# enable sap plugin
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_PLUGINS_SAP),y)
|
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --enable-sap
|
|
|
|
else
|
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --disable-sap
|
|
|
|
endif
|
|
|
|
|
2015-07-16 10:46:14 +02:00
|
|
|
# enable sixaxis plugin
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_PLUGINS_SIXAXIS),y)
|
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --enable-sixaxis
|
|
|
|
else
|
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --disable-sixaxis
|
|
|
|
endif
|
|
|
|
|
2014-03-31 10:58:00 +02:00
|
|
|
# install gatttool (For some reason upstream choose not to do it by default)
|
2017-05-01 14:59:41 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_DEPRECATED),y)
|
2014-03-31 10:58:00 +02:00
|
|
|
define BLUEZ5_UTILS_INSTALL_GATTTOOL
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/attrib/gatttool $(TARGET_DIR)/usr/bin/gatttool
|
|
|
|
endef
|
|
|
|
BLUEZ5_UTILS_POST_INSTALL_TARGET_HOOKS += BLUEZ5_UTILS_INSTALL_GATTTOOL
|
2017-05-01 14:59:41 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --enable-deprecated
|
|
|
|
else
|
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --disable-deprecated
|
2014-03-31 10:58:00 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# enable test
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_TEST),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --enable-test
|
2014-03-31 10:58:00 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --disable-test
|
2014-03-31 10:58:00 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# use udev if available
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --enable-udev
|
2014-03-31 10:58:00 +02:00
|
|
|
BLUEZ5_UTILS_DEPENDENCIES += udev
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --disable-udev
|
2014-03-31 10:58:00 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# integrate with systemd if available
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --enable-systemd
|
2014-03-31 10:58:00 +02:00
|
|
|
BLUEZ5_UTILS_DEPENDENCIES += systemd
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --disable-systemd
|
2014-03-31 10:58:00 +02:00
|
|
|
endif
|
|
|
|
|
2016-05-06 20:30:19 +02:00
|
|
|
define BLUEZ5_UTILS_INSTALL_INIT_SYSTEMD
|
2016-06-16 19:15:38 +02:00
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/bluetooth.target.wants
|
2016-05-06 20:30:19 +02:00
|
|
|
ln -fs ../../../../usr/lib/systemd/system/bluetooth.service \
|
2016-06-16 19:15:38 +02:00
|
|
|
$(TARGET_DIR)/etc/systemd/system/bluetooth.target.wants/bluetooth.service
|
|
|
|
ln -fs ../../../../usr/lib/systemd/system/bluetooth.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/dbus-org.bluez.service
|
2016-05-06 20:30:19 +02:00
|
|
|
endef
|
|
|
|
|
2014-03-31 10:58:00 +02:00
|
|
|
$(eval $(autotools-package))
|