abded6bfea
[Thomas: - use one single BR2_PACKAGE_ICU_CUSTOM_DATA_PATH string option instead of a boolean option + a string option, which always causes a lot of issues with random configurations that enable the boolean option, but do not provide a valid value for the string option. - enclose the definition of ICU_COPY_CUSTOM_DATA into the condition.] Signed-off-by: Johan Derycke <johan.derycke@barco.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
38 lines
1021 B
Makefile
38 lines
1021 B
Makefile
################################################################################
|
|
#
|
|
# icu
|
|
#
|
|
################################################################################
|
|
|
|
ICU_VERSION = 51.2
|
|
ICU_SOURCE = icu4c-$(subst .,_,$(ICU_VERSION))-src.tgz
|
|
ICU_SITE = http://download.icu-project.org/files/icu4c/$(ICU_VERSION)
|
|
ICU_LICENSE = ICU License
|
|
ICU_LICENSE_FILES = license.html
|
|
|
|
ICU_DEPENDENCIES = host-icu
|
|
ICU_INSTALL_STAGING = YES
|
|
ICU_CONFIG_SCRIPTS = icu-config
|
|
ICU_CONF_OPT = --with-cross-build=$(HOST_ICU_DIR)/source --disable-samples \
|
|
--disable-tests
|
|
HOST_ICU_CONF_OPT = \
|
|
--disable-samples \
|
|
--disable-tests \
|
|
--disable-extras \
|
|
--disable-icuio \
|
|
--disable-layout \
|
|
--disable-renaming
|
|
ICU_MAKE = $(MAKE1)
|
|
ICU_SUBDIR = source
|
|
HOST_ICU_SUBDIR = source
|
|
|
|
ifneq ($(BR2_PACKAGE_ICU_CUSTOM_DATA_PATH),)
|
|
define ICU_COPY_CUSTOM_DATA
|
|
cp $(BR2_PACKAGE_ICU_CUSTOM_DATA_PATH) $(@D)/source/data/in/
|
|
endef
|
|
ICU_POST_PATCH_HOOKS += ICU_COPY_CUSTOM_DATA
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|