revert between 56095 -> 55830 in arch
[AROS.git] / tools / icu4c / mmakefile.src
blob3d589ee875641bcc406946df61b4853fae39cd97
1 include $(SRCDIR)/config/aros.cfg
3 LN ?= ln
5 ICU_VERSION := 4.2.1
6 ICU_PKGNAME := icu4c
7 ICU_PKGVERSION=$(subst .,_,$(ICU_VERSION))
9 ICU_EXTRA_OPTS = \
10         --bindir=$(CROSSTOOLSDIR) \
11         --sbindir=$(CROSSTOOLSDIR) \
12         --enable-static \
13         --disable-strict \
14         --disable-dyload \
15         --disable-shared \
16         --disable-tests \
17         --disable-samples \
18         --disable-extras \
19         --with-data-packaging=static
21 ICU_REPOSITORY := http://download.icu-project.org/files/$(ICU_PKGNAME)/$(ICU_VERSION)
23 icu-installflag := $(CROSSTOOLSDIR)/.installflag-icu-$(ICU_VERSION)
25 #MM
26 tools-crosstools-icu :
27         @$(IF) ! $(TEST) -d $(CROSSTOOLSDIR) \
28             || ! $(TEST) -f $(icu-installflag) ; then \
29                $(RM) $(CROSSTOOLSDIR)/$(ICU_PKGNAME)/.files-touched \
30             && $(MAKE) -f ./mmakefile crosstools-icu--fetch \
31             && $(MAKE) -f ./mmakefile crosstools-icu--build_and_install-quick \
32             && $(TOUCH) $(icu-installflag) ; \
33         fi
35 HOST_CXXFLAGS := $(subst -Wno-pointer-sign,, $(subst -Werror-implicit-function-declaration,, $(HOST_CXXFLAGS)))
37 # specify the gendir for icu to be in HOSTDIR so it ends up under CROSSTOOLSDIR, and can be reused
38 %fetch_and_build mmake=crosstools-icu package=$(ICU_PKGNAME) version=$(ICU_PKGVERSION)-src compiler=host \
39         package_repo="$(ICU_REPOSITORY)" suffixes="tgz" \
40         patch=yes srcdir=icu builddir=source gendir=$(CROSSTOOLSDIR) basedir= \
41         prefix="$(CROSSTOOLSDIR)" \
42         extraoptions="$(ICU_EXTRA_OPTS)" extracflags=$(ICU_FLAGS)