kumquat-buildroot/package/hidapi/hidapi.mk
Thomas Petazzoni 97f6ba2e7b hidapi: add libiconv handling
hidapi uses iconv functions, which on uClibc without locale support is
provided by the external libiconv library. This commit adds the
necessary libiconv handling to make the hidapi package build on
!locale toolchains.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-12-30 22:18:11 +01:00

25 lines
811 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 libgudev
ifeq ($(BR2_PACKAGE_LIBICONV),y)
HIDAPI_DEPENDENCIES += libiconv
HIDAPI_CONF_ENV += LIBS="-liconv"
endif
$(eval $(autotools-package))