2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2005-12-13 06:00:18 +01:00
|
|
|
#
|
|
|
|
# libusb
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2013-12-23 09:36:48 +01:00
|
|
|
LIBUSB_VERSION_MAJOR = 1.0
|
2017-03-21 08:17:04 +01:00
|
|
|
LIBUSB_VERSION = $(LIBUSB_VERSION_MAJOR).21
|
2010-02-11 14:19:35 +01:00
|
|
|
LIBUSB_SOURCE = libusb-$(LIBUSB_VERSION).tar.bz2
|
2016-09-09 08:38:29 +02:00
|
|
|
LIBUSB_SITE = https://github.com/libusb/libusb/releases/download/v$(LIBUSB_VERSION)
|
2017-03-30 15:43:34 +02:00
|
|
|
LIBUSB_LICENSE = LGPL-2.1+
|
2012-05-17 19:33:18 +02:00
|
|
|
LIBUSB_LICENSE_FILES = COPYING
|
2012-10-22 17:47:52 +02:00
|
|
|
LIBUSB_DEPENDENCIES = host-pkgconf
|
2010-02-11 14:19:35 +01:00
|
|
|
LIBUSB_INSTALL_STAGING = YES
|
|
|
|
|
2014-01-29 22:33:07 +01:00
|
|
|
# Avoid the discovery of udev for the host variant
|
2014-09-27 21:32:44 +02:00
|
|
|
HOST_LIBUSB_CONF_OPTS = --disable-udev
|
2014-01-29 22:33:07 +01:00
|
|
|
HOST_LIBUSB_DEPENDENCIES = host-pkgconf
|
|
|
|
|
2014-02-07 14:21:33 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
2014-01-28 21:11:35 +01:00
|
|
|
LIBUSB_DEPENDENCIES += udev
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBUSB_CONF_OPTS += --disable-udev
|
2014-01-28 21:11:35 +01:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|