2013-06-05 23:53:30 +00:00
|
|
|
################################################################################
|
2008-04-24 18:35:44 +00:00
|
|
|
#
|
|
|
|
|
# libiconv
|
|
|
|
|
#
|
2013-06-05 23:53:30 +00:00
|
|
|
################################################################################
|
2013-06-05 23:53:25 +00:00
|
|
|
|
2011-09-21 12:24:10 +02:00
|
|
|
LIBICONV_VERSION = 1.14
|
2008-12-05 15:27:35 +00:00
|
|
|
LIBICONV_SITE = $(BR2_GNU_MIRROR)/libiconv
|
2008-04-24 18:35:44 +00:00
|
|
|
LIBICONV_INSTALL_STAGING = YES
|
2014-06-26 16:20:58 -03:00
|
|
|
LIBICONV_LICENSE = GPLv3+ (iconv program), LGPLv2+ (library)
|
|
|
|
|
LIBICONV_LICENSE_FILES = COPYING COPYING.LIB
|
2008-04-24 18:35:44 +00:00
|
|
|
|
2014-05-25 19:12:58 -03: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-25 19:12:58 -03:00
|
|
|
define LIBICONV_DISABLE_PRELOAD
|
|
|
|
|
$(SED) '/preload/d' $(@D)/Makefile.in
|
2010-09-01 22:45:13 +02:00
|
|
|
endef
|
2014-05-25 19:12:58 -03: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
|