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
|
2014-01-28 21:11:35 +01:00
|
|
|
LIBUSB_VERSION = $(LIBUSB_VERSION_MAJOR).18
|
2010-02-11 14:19:35 +01:00
|
|
|
LIBUSB_SOURCE = libusb-$(LIBUSB_VERSION).tar.bz2
|
2013-12-23 09:36:48 +01:00
|
|
|
LIBUSB_SITE = http://downloads.sourceforge.net/project/libusb/libusb-$(LIBUSB_VERSION_MAJOR)/libusb-$(LIBUSB_VERSION)
|
2012-05-17 19:33:18 +02:00
|
|
|
LIBUSB_LICENSE = LGPLv2.1+
|
|
|
|
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
|
|
|
|
HOST_LIBUSB_CONF_OPT = --disable-udev
|
|
|
|
HOST_LIBUSB_DEPENDENCIES = host-pkgconf
|
|
|
|
|
2012-11-23 00:16:36 +01:00
|
|
|
ifeq ($(BR2_avr32),y)
|
|
|
|
LIBUSB_CONF_OPT += --disable-timerfd
|
|
|
|
endif
|
|
|
|
|
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
|
|
|
|
LIBUSB_CONF_OPT += --disable-udev
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|