2014-03-31 10:58:00 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# bluez5_utils
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-03-05 10:49:28 +01:00
|
|
|
BLUEZ5_UTILS_VERSION = 5.44
|
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
|
|
|
|
|
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)
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_GATTTOOL),y)
|
|
|
|
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
|
|
|
|
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))
|