summaryrefslogtreecommitdiff
path: root/package/bluez_utils/bluez_utils.mk
diff options
context:
space:
mode:
authorYegor Yefremov <yegor_sub1@visionsystems.de>2011-08-30 15:36:11 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2011-09-26 23:16:53 +0200
commit06c3e2159686a886e52b2522a47e60c300cfb7f7 (patch)
tree9b0ac7d30fc01c79915769bd5eb0a5f98fc8fa63 /package/bluez_utils/bluez_utils.mk
parent4353fec6d7e5f6ab607af4fc897a02eeca637f85 (diff)
New package: bluez-utils
Bluetooth utils often used in embedded system, add it to package. [Peter: fix dbus dependency] Signed-off-by: Bob Liu <lliubbo@gmail.com> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/bluez_utils/bluez_utils.mk')
-rw-r--r--package/bluez_utils/bluez_utils.mk46
1 files changed, 46 insertions, 0 deletions
diff --git a/package/bluez_utils/bluez_utils.mk b/package/bluez_utils/bluez_utils.mk
new file mode 100644
index 000000000..cbadf3313
--- /dev/null
+++ b/package/bluez_utils/bluez_utils.mk
@@ -0,0 +1,46 @@
+#############################################################
+#
+# 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,package,bluez_utils))