82bfd4366a69e8cbdd0f37acbc72590abdad1b8a
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / openobex / openobex.mk
1 ################################################################################
2 #
3 # openobex
4 #
5 ################################################################################
6
7 OPENOBEX_VERSION = 1.5
8 OPENOBEX_SITE = http://ftp.osuosl.org/pub/linux/bluetooth
9 # Libraries seems to be released under LGPLv2.1+,
10 # while other material is under GPLv2+.
11 OPENOBEX_LICENSE = GPLv2+/LGPLv2.1+
12 OPENOBEX_LICENSE_FILES = COPYING COPYING.LIB
13
14 OPENOBEX_DEPENDENCIES = host-pkgconf
15 OPENOBEX_AUTORECONF = YES
16 OPENOBEX_INSTALL_STAGING = YES
17
18 OPENOBEX_CONF_OPTS += \
19         $(if $(BR2_PACKAGE_OPENOBEX_APPS),--enable-apps) \
20         $(if $(BR2_PACKAGE_OPENOBEX_SYSLOG),--enable-syslog) \
21         $(if $(BR2_PACKAGE_OPENOBEX_DUMP),--enable-dump)
22
23 ifeq ($(BR2_PACKAGE_OPENOBEX_BLUEZ),y)
24 OPENOBEX_DEPENDENCIES += bluez_utils
25 OPENOBEX_CONF_OPTS += --with-bluez=$(STAGING_DIR)
26 else
27 OPENOBEX_CONF_OPTS += --disable-bluetooth
28 endif
29
30 ifeq ($(BR2_PACKAGE_OPENOBEX_LIBUSB),y)
31 OPENOBEX_DEPENDENCIES += libusb
32 OPENOBEX_CONF_OPTS += --with-usb=$(STAGING_DIR)
33 else
34 OPENOBEX_CONF_OPTS += --disable-usb
35 endif
36
37 $(eval $(autotools-package))