d608368e1a
Force LibUSB_VERSION_1.0 to ON to fix the following static build failure with libusb and libatomic: -- Looking for libusb_get_device_list in /nvmedata/autobuild/instance-4/output-1/host/sparc-buildroot-linux-uclibc/sysroot/usr/lib/libusb-1.0.a -- Looking for libusb_get_device_list in /nvmedata/autobuild/instance-4/output-1/host/sparc-buildroot-linux-uclibc/sysroot/usr/lib/libusb-1.0.a - not found [...] /nvmedata/autobuild/instance-4/output-1/build/openobex-1.7.2/lib/transport/usbobex.h:30:10: fatal error: usb.h: No such file or directory 30 | #include <usb.h> | ^~~~~~~ Fixes: - http://autobuild.buildroot.org/results/52b0edc4278f65fb4a9671b65c655cc4544a3103 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
32 lines
943 B
Makefile
32 lines
943 B
Makefile
################################################################################
|
|
#
|
|
# openobex
|
|
#
|
|
################################################################################
|
|
|
|
OPENOBEX_VERSION = 1.7.2
|
|
OPENOBEX_SITE = http://downloads.sourceforge.net/project/openobex/openobex/$(OPENOBEX_VERSION)
|
|
OPENOBEX_SOURCE = openobex-$(OPENOBEX_VERSION)-Source.tar.gz
|
|
# Libraries seems to be released under LGPL-2.1+,
|
|
# while other material is under GPL-2.0+.
|
|
OPENOBEX_LICENSE = GPL-2.0+/LGPL-2.1+
|
|
OPENOBEX_LICENSE_FILES = COPYING COPYING.LIB
|
|
OPENOBEX_DEPENDENCIES = host-pkgconf
|
|
OPENOBEX_INSTALL_STAGING = YES
|
|
OPENOBEX_CONF_OPTS = -DBUILD_DOCUMENTATION=OFF
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS),y)
|
|
OPENOBEX_DEPENDENCIES += bluez5_utils
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBUSB),y)
|
|
OPENOBEX_CONF_OPTS += -DLibUSB_VERSION_1.0=ON
|
|
OPENOBEX_DEPENDENCIES += libusb
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
OPENOBEX_DEPENDENCIES += udev
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|