mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-17 18:29:55 +00:00
ca971bbfd8
This patch changes the top-level directory layout as a preparatory step for improving the tools for managing 3rd-party source codes. The rationale is described in the issue referenced below. Issue #1082
37 lines
984 B
Makefile
37 lines
984 B
Makefile
ICU_VERSION = 51.2
|
|
ICU = icu
|
|
ICU_TGZ = $(ICU)4c-51_2-src.tgz
|
|
ICU_URL = http://download.icu-project.org/files/icu4c/$(ICU_VERSION)/$(ICU_TGZ)
|
|
ICU_MD5 = 072e501b87065f3a0ca888f1b5165709
|
|
|
|
#
|
|
# Interface to top-level prepare Makefile
|
|
#
|
|
PORTS += $(ICU)
|
|
|
|
prepare-icu: $(CONTRIB_DIR)/$(ICU) include/icu
|
|
|
|
$(CONTRIB_DIR)/$(ICU):clean-icu
|
|
|
|
#
|
|
# Port-specific local rules
|
|
#
|
|
$(DOWNLOAD_DIR)/$(ICU_TGZ):
|
|
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(ICU_URL) && touch $@
|
|
|
|
$(DOWNLOAD_DIR)/$(ICU_TGZ).verified: $(DOWNLOAD_DIR)/$(ICU_TGZ)
|
|
$(VERBOSE)$(HASHVERIFIER) $(DOWNLOAD_DIR)/$(ICU_TGZ) $(ICU_MD5) md5
|
|
$(VERBOSE)touch $@
|
|
|
|
$(CONTRIB_DIR)/$(ICU): $(DOWNLOAD_DIR)/$(ICU_TGZ).verified
|
|
$(VERBOSE)tar xfz $(<:.verified=) -C $(CONTRIB_DIR) && touch $@
|
|
|
|
include/icu:
|
|
$(VERBOSE)mkdir -p $@
|
|
ln -sf ../../$(CONTRIB_DIR)/$(ICU)/source/common $@/common
|
|
ln -sf ../../$(CONTRIB_DIR)/$(ICU)/source/i18n $@/i18n
|
|
|
|
clean-icu:
|
|
$(VERBOSE)rm -rf include/icu
|
|
$(VERBOSE)rm -rf $(CONTRIB_DIR)/$(ICU)
|