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>
This commit is contained in:
Thomas Petazzoni 2015-12-30 22:17:00 +01:00
parent 26e1b249da
commit 97f6ba2e7b
2 changed files with 6 additions and 0 deletions

View file

@ -4,6 +4,7 @@ config BR2_PACKAGE_HIDAPI
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
select BR2_PACKAGE_LIBUSB
select BR2_PACKAGE_LIBGUDEV
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
help
HIDAPI is a multi-platform library which allows an application
to interface with USB and Bluetooth HID-Class devices on

View file

@ -16,4 +16,9 @@ HIDAPI_LICENSE_FILES = LICENSE.txt LICENSE-gpl3.txt LICENSE-bsd.txt LICENSE-orig
HIDAPI_DEPENDENCIES = libusb libgudev
ifeq ($(BR2_PACKAGE_LIBICONV),y)
HIDAPI_DEPENDENCIES += libiconv
HIDAPI_CONF_ENV += LIBS="-liconv"
endif
$(eval $(autotools-package))