kumquat-buildroot/package/hidapi/hidapi.mk
Baruch Siach 462b1cbfa6 package/*: test for BR2_PACKAGE_LIBGUDEV for dependency
Make the case of adding libgudev as a dependency more consistent with all
other dependency packages. The <pkg>_DEPENDENCIES variable sets the build
order which is conceptually independent of the underlying reason for that
dependency.

Also, remove the comments in hidapi.mk and udisks.mk. These comments explain
why BR2_PACKAGE_LIBGUDEV is selected, so the comments in corresponding
Config.in files are enough.

Cc: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-11-18 21:54:55 +01:00

24 lines
768 B
Makefile

################################################################################
#
# hidapi
#
################################################################################
# Use master version as the current stable is very old and some bugs
# have been fixed since then.
HIDAPI_VERSION = d17db57b9d4354752e0af42f5f33007a42ef2906
HIDAPI_SITE = $(call github,signal11,hidapi,$(HIDAPI_VERSION))
HIDAPI_INSTALL_STAGING = YES
# No configure provided, so we need to autoreconf.
HIDAPI_AUTORECONF = YES
HIDAPI_LICENSE = GPLv3 or BSD-3c or HIDAPI license
HIDAPI_LICENSE_FILES = LICENSE.txt LICENSE-gpl3.txt LICENSE-bsd.txt LICENSE-orig.txt
HIDAPI_DEPENDENCIES = libusb
ifeq ($(BR2_PACKAGE_LIBGUDEV),y)
HIDAPI_DEPENDENCIES += libgudev
endif
$(eval $(autotools-package))