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
|
|
|
|
2011-09-21 12:24:10 +02:00
|
|
|
LIBICONV_VERSION = 1.14
|
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
|
2014-06-26 21:20:58 +02:00
|
|
|
LIBICONV_LICENSE = GPLv3+ (iconv program), LGPLv2+ (library)
|
|
|
|
LIBICONV_LICENSE_FILES = COPYING COPYING.LIB
|
2008-04-24 20:35:44 +02:00
|
|
|
|
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
|
|
|
|
# when glibc is ued). And it causes problems for static only builds.
|
|
|
|
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
|