2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2008-04-24 20:35:44 +02:00
|
|
|
#
|
|
|
|
# libiconv
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2017-06-03 23:47:44 +02:00
|
|
|
LIBICONV_VERSION = 1.15
|
2008-12-05 16:27:35 +01:00
|
|
|
LIBICONV_SITE = $(BR2_GNU_MIRROR)/libiconv
|
2008-04-24 20:35:44 +02:00
|
|
|
LIBICONV_INSTALL_STAGING = YES
|
2017-03-30 15:43:37 +02:00
|
|
|
LIBICONV_LICENSE = GPL-3.0+ (iconv program), LGPL-2.0+ (library)
|
2014-06-26 21:20:58 +02:00
|
|
|
LIBICONV_LICENSE_FILES = COPYING COPYING.LIB
|
2008-04-24 20:35:44 +02:00
|
|
|
|
package/libiconv: enable extra encodings
Quoting https://www.gnu.org/software/libiconv/
"When configured with the option --enable-extra-encodings, it also
provides support for a few extra encodings:
European languages
CP{437,737,775,852,853,855,857,858,860,861,863,865,869,1125}
Semitic languages
CP864
Japanese
EUC-JISX0213, Shift_JISX0213, ISO-2022-JP-3
Chinese
BIG5-2003 (experimental)
Turkmen
TDS565
Platform specifics
ATARIST, RISCOS-LATIN1"
Updating Kodi from version 17.6 to 18.5 caused runtime errors on systems
with locale support disabled, here Kodi uses libiconv but needs CP437:
ERROR: customConvert: iconv_open() for "CP437" -> "UTF-8" failed,
errno = 22 (Invalid argument)
Due to the size increase of libiconv.so.2.6.0 from 941K to 1,1M a new
Config.in option was added.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
[yann.morin.1998@free.fr: fix check-package warning]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2020-02-01 13:59:20 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV_EXTRA_ENCODINGS),y)
|
|
|
|
LIBICONV_CONF_OPTS = --enable-extra-encodings
|
|
|
|
endif
|
|
|
|
|
2014-05-26 00:12:58 +02:00
|
|
|
# Don't build the preloadable library, as we don't need it (it's only
|
|
|
|
# for LD_PRELOAD to replace glibc's iconv, but we never build libiconv
|
2015-03-04 22:01:02 +01:00
|
|
|
# when glibc is used). And it causes problems for static only builds.
|
2014-05-26 00:12:58 +02:00
|
|
|
define LIBICONV_DISABLE_PRELOAD
|
|
|
|
$(SED) '/preload/d' $(@D)/Makefile.in
|
2010-09-01 22:45:13 +02:00
|
|
|
endef
|
2014-05-26 00:12:58 +02:00
|
|
|
LIBICONV_PRE_CONFIGURE_HOOKS += LIBICONV_DISABLE_PRELOAD
|
2010-09-01 22:45:13 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2010-07-29 09:50:59 +02:00
|
|
|
|
|
|
|
# Configurations where the toolchain supports locales and the libiconv
|
|
|
|
# package is enabled are incorrect, because the toolchain already
|
|
|
|
# provides libiconv functionality, and having both confuses packages.
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV)$(BR2_ENABLE_LOCALE),yy)
|
|
|
|
$(error Libiconv should never be enabled when the toolchain supports locales. Report this failure to Buildroot developers)
|
|
|
|
endif
|