2008-03-06 19:12:45 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# ICU International Components for Unicode
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
|
|
|
ICU_VERSION:=4c-3_8_1
|
|
|
|
ICU_SOURCE:=icu$(ICU_VERSION)-src.tgz
|
2008-03-10 16:15:57 +01:00
|
|
|
ICU_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/icu
|
2008-03-06 19:12:45 +01:00
|
|
|
ICU_CAT:=$(ZCAT)
|
|
|
|
ICU_DIR:=$(BUILD_DIR)/icu/source
|
|
|
|
ICU_HOST_DIR:=$(BUILD_DIR)/icu-host/source
|
|
|
|
|
|
|
|
$(DL_DIR)/$(ICU_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(ICU_SITE),$(ICU_SOURCE))
|
2008-03-06 19:12:45 +01:00
|
|
|
|
|
|
|
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
|
2010-05-23 23:29:38 +02:00
|
|
|
toolchain/patch-kernel.sh $(ICU_HOST_DIR) package/icu/ \*both\*.patch
|
2008-03-06 19:12:45 +01:00
|
|
|
touch $(ICU_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(ICU_HOST_DIR)/.configured: $(ICU_DIR)/.unpacked
|
2009-10-01 21:24:42 +02:00
|
|
|
(cd $(ICU_HOST_DIR); ./configure $(QUIET) \
|
2008-03-06 19:12:45 +01:00
|
|
|
--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) \
|
2009-10-01 21:24:42 +02:00
|
|
|
./configure $(QUIET) \
|
2008-03-06 19:12:45 +01:00
|
|
|
--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
|
2010-05-23 23:29:38 +02:00
|
|
|
$(MAKE1) -C $(ICU_HOST_DIR)
|
2008-03-06 19:12:45 +01:00
|
|
|
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
|
2010-05-23 23:29:38 +02:00
|
|
|
$(MAKE1) -C $(ICU_DIR)
|
2008-03-06 19:12:45 +01:00
|
|
|
$(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
|
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
icu: $(ICU_DIR)/.done
|
2008-03-06 19:12:45 +01:00
|
|
|
|
|
|
|
icu-clean:
|
|
|
|
rm -f $(TARGET_DIR)/bin/icu
|
|
|
|
-$(MAKE) -C $(ICU_DIR) clean
|
|
|
|
|
|
|
|
icu-dirclean:
|
|
|
|
rm -rf $(ICU_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ICU),y)
|
2008-03-06 19:12:45 +01:00
|
|
|
TARGETS+=icu
|
|
|
|
endif
|