diff options
author | John Voltz <john.voltz@gmail.com> | 2008-03-06 18:12:45 +0000 |
---|---|---|
committer | John Voltz <john.voltz@gmail.com> | 2008-03-06 18:12:45 +0000 |
commit | bc7ae43824c66c02fae4e0b8bef39f0844cc6679 (patch) | |
tree | 302493fd6482109ae4822e9cec5c3394a52241de /package/icu/icu.mk | |
parent | d8bfb20d7a17a4cdd0592432785e4c298c70a4f6 (diff) | |
download | buildroot-bc7ae43824c66c02fae4e0b8bef39f0844cc6679.tar.gz buildroot-bc7ae43824c66c02fae4e0b8bef39f0844cc6679.zip |
added icu
Diffstat (limited to 'package/icu/icu.mk')
-rw-r--r-- | package/icu/icu.mk | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/package/icu/icu.mk b/package/icu/icu.mk new file mode 100644 index 0000000000..bce9696033 --- /dev/null +++ b/package/icu/icu.mk @@ -0,0 +1,77 @@ +############################################################# +# +# ICU International Components for Unicode +# +############################################################# + +ICU_VERSION:=4c-3_8_1 +ICU_VERSION_NUM:=3.8.1 +ICU_SOURCE:=icu$(ICU_VERSION)-src.tgz +ICU_SITE:=http://download.icu-project.org/files/icu4c/$(ICU_VERSION_NUM) +ICU_CAT:=$(ZCAT) +ICU_DIR:=$(BUILD_DIR)/icu/source +ICU_HOST_DIR:=$(BUILD_DIR)/icu-host/source + +$(DL_DIR)/$(ICU_SOURCE): + $(WGET) -P $(DL_DIR) $(ICU_SITE)/$(ICU_SOURCE) + +icu-source: $(DL_DIR)/$(ICU_SOURCE) + +$(ICU_DIR)/.unpacked: $(DL_DIR)/$(ICU_SOURCE) + $(ICU_CAT) $(DL_DIR)/$(ICU_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - + $(CONFIG_UPDATE) $(ICU_DIR) + cp -a $(BUILD_DIR)/icu $(BUILD_DIR)/icu-host + toolchain/patch-kernel.sh $(ICU_DIR) package/icu/ \*.patch + touch $(ICU_DIR)/.unpacked + +$(ICU_HOST_DIR)/.configured: $(ICU_DIR)/.unpacked + (cd $(ICU_HOST_DIR); ./configure \ + --prefix=/usr;); + touch $(ICU_HOST_DIR)/.configured + +$(ICU_DIR)/.configured: $(ICU_HOST_DIR)/.configured + (cd $(ICU_DIR); rm -rf config.cache; \ + $(TARGET_CONFIGURE_OPTS) \ + $(TARGET_CONFIGURE_ARGS) \ + CXX=$(TARGET_CXX) \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=/usr \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --enable-samples \ + ); + touch $(ICU_DIR)/.configured + +$(ICU_HOST_DIR)/.done: $(ICU_DIR)/.configured + $(MAKE) -C $(ICU_HOST_DIR) + ln -s -f $(ICU_HOST_DIR)/bin $(ICU_DIR)/bin-host + ln -s -f $(ICU_HOST_DIR)/lib $(ICU_DIR)/lib-host + touch $(ICU_HOST_DIR)/.done + +$(ICU_DIR)/.done: $(ICU_HOST_DIR)/.done + $(MAKE) -C $(ICU_DIR) + $(MAKE) -C $(ICU_DIR) install DESTDIR=$(STAGING_DIR) + $(MAKE) -C $(ICU_DIR) install DESTDIR=$(TARGET_DIR) + $(SED) "s,^default_prefix=.*,default_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/icu-config + touch $(ICU_DIR)/.done + +icu: uclibc $(ICU_DIR)/.done + +icu-clean: + rm -f $(TARGET_DIR)/bin/icu + -$(MAKE) -C $(ICU_DIR) clean + +icu-dirclean: + rm -rf $(ICU_DIR) + +############################################################# +# +# Toplevel Makefile options +# +############################################################# +ifeq ($(strip $(BR2_PACKAGE_ICU)),y) +TARGETS+=icu +endif |