2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-11 19:58:39 +01:00
|
|
|
#
|
|
|
|
# openobex
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-11 19:58:39 +01:00
|
|
|
|
2016-01-31 10:48:58 +01:00
|
|
|
OPENOBEX_VERSION_MAJOR = 1.5
|
|
|
|
OPENOBEX_VERSION = $(OPENOBEX_VERSION_MAJOR).0
|
|
|
|
OPENOBEX_SITE = http://downloads.sourceforge.net/project/openobex/openobex/$(OPENOBEX_VERSION_MAJOR)
|
|
|
|
OPENOBEX_SOURCE = openobex-$(OPENOBEX_VERSION)-Source.zip
|
2013-03-11 19:58:39 +01:00
|
|
|
# Libraries seems to be released under LGPLv2.1+,
|
|
|
|
# while other material is under GPLv2+.
|
|
|
|
OPENOBEX_LICENSE = GPLv2+/LGPLv2.1+
|
|
|
|
OPENOBEX_LICENSE_FILES = COPYING COPYING.LIB
|
|
|
|
|
|
|
|
OPENOBEX_DEPENDENCIES = host-pkgconf
|
|
|
|
OPENOBEX_AUTORECONF = YES
|
|
|
|
OPENOBEX_INSTALL_STAGING = YES
|
|
|
|
|
2016-01-31 10:48:58 +01:00
|
|
|
define OPENOBEX_EXTRACT_CMDS
|
|
|
|
$(UNZIP) -d $(@D) $(DL_DIR)/$(OPENOBEX_SOURCE)
|
|
|
|
mv $(@D)/openobex-$(OPENOBEX_VERSION)-Source/* $(@D)
|
|
|
|
$(RM) -r $(@D)/openobex-$(OPENOBEX_VERSION)-Source
|
|
|
|
endef
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENOBEX_CONF_OPTS += \
|
2013-03-11 19:58:39 +01:00
|
|
|
$(if $(BR2_PACKAGE_OPENOBEX_APPS),--enable-apps) \
|
|
|
|
$(if $(BR2_PACKAGE_OPENOBEX_SYSLOG),--enable-syslog) \
|
|
|
|
$(if $(BR2_PACKAGE_OPENOBEX_DUMP),--enable-dump)
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENOBEX_BLUEZ),y)
|
|
|
|
OPENOBEX_DEPENDENCIES += bluez_utils
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENOBEX_CONF_OPTS += --with-bluez=$(STAGING_DIR)
|
2013-03-11 19:58:39 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENOBEX_CONF_OPTS += --disable-bluetooth
|
2013-03-11 19:58:39 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENOBEX_LIBUSB),y)
|
|
|
|
OPENOBEX_DEPENDENCIES += libusb
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENOBEX_CONF_OPTS += --with-usb=$(STAGING_DIR)
|
2013-03-11 19:58:39 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENOBEX_CONF_OPTS += --disable-usb
|
2013-03-11 19:58:39 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|