udev: convert to virtual package
[buildroot-gz.git] / package / libusb / libusb.mk
blob417b2cebe9eeaaf318c7e54fe2bc41fd6b6df977
1 ################################################################################
3 # libusb
5 ################################################################################
7 LIBUSB_VERSION_MAJOR = 1.0
8 LIBUSB_VERSION = $(LIBUSB_VERSION_MAJOR).18
9 LIBUSB_SOURCE = libusb-$(LIBUSB_VERSION).tar.bz2
10 LIBUSB_SITE = http://downloads.sourceforge.net/project/libusb/libusb-$(LIBUSB_VERSION_MAJOR)/libusb-$(LIBUSB_VERSION)
11 LIBUSB_LICENSE = LGPLv2.1+
12 LIBUSB_LICENSE_FILES = COPYING
13 LIBUSB_DEPENDENCIES = host-pkgconf
14 LIBUSB_INSTALL_STAGING = YES
16 # Avoid the discovery of udev for the host variant
17 HOST_LIBUSB_CONF_OPT = --disable-udev
18 HOST_LIBUSB_DEPENDENCIES = host-pkgconf
20 ifeq ($(BR2_avr32),y)
21 LIBUSB_CONF_OPT += --disable-timerfd
22 endif
24 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
25 LIBUSB_DEPENDENCIES += udev
26 else
27 LIBUSB_CONF_OPT += --disable-udev
28 endif
30 $(eval $(autotools-package))
31 $(eval $(host-autotools-package))