kumquat-buildroot/package/icu/icu.mk
Gustavo Zacarias 6dc2737d9a icu: tweak icu-config exec_prefix output
Closes #3259

We need to tweak icu-config's exec_prefix too, otherwise if the host
system lacks icu the build fails when looking for the libraries in
/usr/lib rather than the staging directory.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-02-24 20:54:29 +01:00

28 lines
902 B
Makefile

#############################################################
#
# International Components for Unicode
#
#############################################################
ICU_VERSION = 4.4.2
ICU_SOURCE = icu4c-$(subst .,_,$(ICU_VERSION))-src.tgz
ICU_SITE = http://download.icu-project.org/files/icu4c/$(ICU_VERSION)
ICU_DEPENDENCIES = host-icu
ICU_INSTALL_STAGING = YES
ICU_CONF_OPT = --with-cross-build=$(HOST_ICU_DIR)/source --disable-samples \
--disable-tests
HOST_ICU_CONF_OPT = --disable-samples --disable-tests
ICU_SUBDIR = source
HOST_ICU_SUBDIR = source
define ICU_PREFIX_FIXUP
$(SED) "s,^default_prefix=.*,default_prefix=\'$(STAGING_DIR)/usr\',g" \
-e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
$(STAGING_DIR)/usr/bin/icu-config
endef
ICU_POST_INSTALL_TARGET_HOOKS += ICU_PREFIX_FIXUP
$(eval $(call AUTOTARGETS,package,icu))
$(eval $(call AUTOTARGETS,package,icu,host))