1################################################################################ 2# 3# libiconv 4# 5################################################################################ 6 7LIBICONV_VERSION = 1.15 8LIBICONV_SITE = $(BR2_GNU_MIRROR)/libiconv 9LIBICONV_INSTALL_STAGING = YES 10LIBICONV_LICENSE = GPL-3.0+ (iconv program), LGPL-2.0+ (library) 11LIBICONV_LICENSE_FILES = COPYING COPYING.LIB 12 13ifeq ($(BR2_PACKAGE_LIBICONV_EXTRA_ENCODINGS),y) 14LIBICONV_CONF_OPTS = --enable-extra-encodings 15endif 16 17# Don't build the preloadable library, as we don't need it (it's only 18# for LD_PRELOAD to replace glibc's iconv, but we never build libiconv 19# when glibc is used). And it causes problems for static only builds. 20define LIBICONV_DISABLE_PRELOAD 21 $(SED) '/preload/d' $(@D)/Makefile.in 22endef 23LIBICONV_PRE_CONFIGURE_HOOKS += LIBICONV_DISABLE_PRELOAD 24 25$(eval $(autotools-package)) 26 27# Configurations where the toolchain supports locales and the libiconv 28# package is enabled are incorrect, because the toolchain already 29# provides libiconv functionality, and having both confuses packages. 30ifeq ($(BR2_PACKAGE_LIBICONV)$(BR2_ENABLE_LOCALE),yy) 31$(error Libiconv should never be enabled when the toolchain supports locales. Report this failure to Buildroot developers) 32endif 33