1 ################################################################################
5 ################################################################################
7 LIBUSB_VERSION_MAJOR
= 1.0
8 LIBUSB_VERSION
= $(LIBUSB_VERSION_MAJOR
).20
9 LIBUSB_SOURCE
= libusb-
$(LIBUSB_VERSION
).
tar.bz2
10 LIBUSB_SITE
= https
://github.com
/libusb
/libusb
/releases
/download
/v
$(LIBUSB_VERSION
)
11 LIBUSB_LICENSE
= LGPLv2.1
+
12 LIBUSB_LICENSE_FILES
= COPYING
13 LIBUSB_DEPENDENCIES
= host-pkgconf
14 LIBUSB_INSTALL_STAGING
= YES
15 # 0001-parallel-make.patch
16 LIBUSB_AUTORECONF
= YES
18 # Avoid the discovery of udev for the host variant
19 HOST_LIBUSB_CONF_OPTS
= --disable-udev
20 HOST_LIBUSB_DEPENDENCIES
= host-pkgconf
22 ifeq ($(BR2_PACKAGE_HAS_UDEV
),y
)
23 LIBUSB_DEPENDENCIES
+= udev
25 LIBUSB_CONF_OPTS
+= --disable-udev
28 $(eval
$(autotools-package
))
29 $(eval
$(host-autotools-package
))