2008-04-24 20:35:44 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libiconv
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
LIBICONV_VERSION = 1.12
|
|
|
|
LIBICONV_SOURCE = libiconv-$(LIBICONV_VERSION).tar.gz
|
2008-12-05 16:27:35 +01:00
|
|
|
LIBICONV_SITE = $(BR2_GNU_MIRROR)/libiconv
|
2008-04-24 20:35:44 +02:00
|
|
|
LIBICONV_AUTORECONF = NO
|
|
|
|
LIBICONV_INSTALL_STAGING = YES
|
|
|
|
LIBICONV_INSTALL_TARGET = YES
|
|
|
|
|
2010-09-01 22:45:13 +02:00
|
|
|
# Remove not used preloadable libiconv.so
|
|
|
|
define LIBICONV_TARGET_REMOVE_PRELOADABLE_LIBS
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/preloadable_libiconv.so
|
|
|
|
endef
|
2008-04-24 20:35:44 +02:00
|
|
|
|
2010-09-01 22:45:13 +02:00
|
|
|
define LIBICONV_STAGING_REMOVE_PRELOADABLE_LIBS
|
2008-12-12 10:03:47 +01:00
|
|
|
rm -f $(STAGING_DIR)/usr/lib/preloadable_libiconv.so
|
2010-09-01 22:45:13 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
LIBICONV_POST_INSTALL_TARGET_HOOKS += LIBICONV_TARGET_REMOVE_PRELOADABLE_LIBS
|
|
|
|
LIBICONV_POST_INSTALL_STAGING_HOOKS += LIBICONV_STAGING_REMOVE_PRELOADABLE_LIBS
|
|
|
|
|
|
|
|
$(eval $(call AUTOTARGETS,package,libiconv))
|
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
|