300f9c9c9d
Thanks to the pkgparentdir and pkgname functions, we can rewrite the AUTOTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
47 lines
1.0 KiB
Makefile
47 lines
1.0 KiB
Makefile
#############################################################
|
|
#
|
|
# bluez_utils
|
|
#
|
|
#############################################################
|
|
BLUEZ_UTILS_VERSION = 4.96
|
|
BLUEZ_UTILS_SOURCE = bluez-$(BLUEZ_UTILS_VERSION).tar.gz
|
|
BLUEZ_UTILS_SITE = http://www.kernel.org/pub/linux/bluetooth/
|
|
BLUEZ_UTILS_INSTALL_STAGING = YES
|
|
BLUEZ_UTILS_DEPENDENCIES = dbus libglib2
|
|
BLUEZ_UTILS_CONF_OPT = --enable-test --enable-tools
|
|
|
|
# BlueZ 3.x compatibility
|
|
ifeq ($(BR2_PACKAGE_BLUEZ_UTILS_COMPAT),y)
|
|
BLUEZ_UTILS_CONF_OPT += \
|
|
--enable-hidd \
|
|
--enable-pand \
|
|
--enable-sdp \
|
|
--enable-dund
|
|
endif
|
|
|
|
# audio support
|
|
ifeq ($(BR2_PACKAGE_BLUEZ_UTILS_AUDIO),y)
|
|
BLUEZ_UTILS_DEPENDENCIES += \
|
|
alsa-lib \
|
|
libsndfile
|
|
BLUEZ_UTILS_CONF_OPT += \
|
|
--enable-alsa \
|
|
--enable-audio
|
|
else
|
|
BLUEZ_UTILS_CONF_OPT += \
|
|
--disable-alsa \
|
|
--disable-audio
|
|
endif
|
|
|
|
# USB support
|
|
ifeq ($(BR2_PACKAGE_BLUEZ_UTILS_USB),y)
|
|
BLUEZ_UTILS_DEPENDENCIES += libusb
|
|
BLUEZ_UTILS_CONF_OPT += \
|
|
--enable-usb
|
|
else
|
|
BLUEZ_UTILS_CONF_OPT += \
|
|
--disable-usb
|
|
endif
|
|
|
|
$(eval $(call AUTOTARGETS))
|