2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-08-30 15:36:11 +02:00
|
|
|
#
|
|
|
|
# bluez_utils
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-01-26 17:51:23 +01:00
|
|
|
|
2012-06-25 01:12:51 +02:00
|
|
|
BLUEZ_UTILS_VERSION = 4.101
|
2013-09-06 08:14:15 +02:00
|
|
|
BLUEZ_UTILS_SOURCE = bluez-$(BLUEZ_UTILS_VERSION).tar.xz
|
2012-01-26 17:51:23 +01:00
|
|
|
BLUEZ_UTILS_SITE = $(BR2_KERNEL_MIRROR)/linux/bluetooth
|
2011-08-30 15:36:11 +02:00
|
|
|
BLUEZ_UTILS_INSTALL_STAGING = YES
|
2017-05-13 19:10:08 +02:00
|
|
|
BLUEZ_UTILS_DEPENDENCIES = host-pkgconf check dbus libglib2
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ_UTILS_CONF_OPTS = --enable-test --enable-tools
|
2012-01-12 10:02:02 +01:00
|
|
|
BLUEZ_UTILS_AUTORECONF = YES
|
2017-03-30 15:43:34 +02:00
|
|
|
BLUEZ_UTILS_LICENSE = GPL-2.0+, LGPL-2.1+
|
2013-01-29 09:23:50 +01:00
|
|
|
BLUEZ_UTILS_LICENSE_FILES = COPYING COPYING.LIB
|
2011-08-30 15:36:11 +02:00
|
|
|
|
|
|
|
# BlueZ 3.x compatibility
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ_UTILS_COMPAT),y)
|
2017-04-21 17:24:48 +02:00
|
|
|
BLUEZ_UTILS_CONF_OPTS += \
|
|
|
|
--enable-hidd \
|
|
|
|
--enable-pand \
|
|
|
|
--enable-sdp \
|
2011-08-30 15:36:11 +02:00
|
|
|
--enable-dund
|
|
|
|
endif
|
|
|
|
|
|
|
|
# audio support
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ_UTILS_AUDIO),y)
|
2017-04-21 17:24:48 +02:00
|
|
|
BLUEZ_UTILS_DEPENDENCIES += \
|
|
|
|
alsa-lib \
|
2011-08-30 15:36:11 +02:00
|
|
|
libsndfile
|
2017-04-21 17:24:48 +02:00
|
|
|
BLUEZ_UTILS_CONF_OPTS += \
|
|
|
|
--enable-alsa \
|
2011-08-30 15:36:11 +02:00
|
|
|
--enable-audio
|
|
|
|
else
|
2017-04-21 17:24:48 +02:00
|
|
|
BLUEZ_UTILS_CONF_OPTS += \
|
|
|
|
--disable-alsa \
|
2011-08-30 15:36:11 +02:00
|
|
|
--disable-audio
|
|
|
|
endif
|
|
|
|
|
2013-12-20 15:20:23 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ_UTILS_GATT),y)
|
|
|
|
BLUEZ_UTILS_DEPENDENCIES += readline
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ_UTILS_CONF_OPTS += --enable-gatt
|
2013-12-20 15:20:23 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ_UTILS_CONF_OPTS += --disable-gatt
|
2013-12-20 15:20:23 +01:00
|
|
|
endif
|
|
|
|
|
2011-08-30 15:36:11 +02:00
|
|
|
# USB support
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ_UTILS_USB),y)
|
|
|
|
BLUEZ_UTILS_DEPENDENCIES += libusb
|
2017-04-21 17:24:48 +02:00
|
|
|
BLUEZ_UTILS_CONF_OPTS += \
|
2011-08-30 15:36:11 +02:00
|
|
|
--enable-usb
|
|
|
|
else
|
2017-04-21 17:24:48 +02:00
|
|
|
BLUEZ_UTILS_CONF_OPTS += \
|
2011-08-30 15:36:11 +02:00
|
|
|
--disable-usb
|
|
|
|
endif
|
|
|
|
|
2016-07-11 16:35:14 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),)
|
2016-06-22 21:13:23 +02:00
|
|
|
BLUEZ_UTILS_CONF_OPTS += --disable-pie
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|