Project import
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ff63a16
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,153 @@
+#
+#    Copyright (c) 2010-2011 Nest, Inc.
+#    All rights reserved.
+#
+#    This document is the property of Nest. It is considered
+#    confidential and proprietary information.
+#
+#    This document may not be reproduced or transmitted in any form,
+#    in whole or in part, without the express written permission of
+#    Nest.
+#
+#    Description:
+#      This file is the makefile for the International Components for
+#      Unicode (ICU) library.
+#
+#      We only use this in the simulator, so host=target
+#
+
+include pre.mak
+
+ICUDataConfSUFFIX		:= local.mk
+
+ICUDataConfSTEMS		:= brkitr/brk	 \
+				   brkitr/brs	 \
+				   coll/col	 \
+				   curr/res	 \
+				   lang/res	 \
+				   locales/res	 \
+				   misc/misc	 \
+				   rbnf/rbnf	 \
+				   region/res	 \
+				   sprep/sprep	 \
+				   translit/trns \
+				   mappings/ucm	 \
+				   zone/res
+
+ICUDataConfFiles		= $(addsuffix $(ICUDataConfSUFFIX),$(ICUDataConfSTEMS))
+
+ICUDataConfSourceDir		:= ./configs
+
+ICUDataConfSourcePaths		= $(addprefix $(call Slashify,$(ICUDataConfSourceDir)),$(ICUDataConfFiles))
+
+ICUDataConfBuildDir		= $(BuildDirectory)/data
+
+ICUDataConfBuildPaths		= $(addprefix $(call Slashify,$(ICUDataConfBuildDir)),$(ICUDataConfFiles))
+
+ICUDataConfMaybeSourcePaths 	= $(wildcard $(ICUDataConfSourcePaths))
+
+ICUDataConfMaybeFiles		= $(subst $(call Slashify,$(ICUDataConfSourceDir)),,$(ICUDataConfMaybeSourcePaths))
+
+ICUDataConfMaybeBuildPaths	= $(addprefix $(call Slashify,$(ICUDataConfBuildDir)),$(ICUDataConfMaybeFiles))
+
+$(ICUDataConfMaybeBuildPaths): $(ICUDataConfBuildDir)/%: $(ICUDataConfSourceDir)/%
+	$(Echo) "Creating ICUDataConfMaybeBuildPaths \"$(call GenerateBuildRootEllipsedPath,$(@D))\""
+	$(Verbose)$(MKDIR) $(MKDIRFLAGS) $(@D)
+	$(copy-result)
+
+# Ensure that the static implicit pattern rule above doesn't become
+# the default target goal. Instead, use the usual default, 'all'.
+
+.DEFAULT_GOAL           := all
+
+PackageName		:= icu
+
+PackageExtension	:= tar.gz
+PackageSeparator	:= -
+
+PackagePatchArgs	:= -p1
+
+PackageArchive		:= $(PackageName).$(PackageExtension)
+PackageSourceDir	:= $(call GenerateBuildPaths,$(PackageName))
+
+PackageBuildMakefile	= $(call GenerateBuildPaths,Makefile)
+
+CleanPaths		+= $(PackageLicenseFile)
+
+all: $(PackageDefaultGoal)
+
+# Generate the package license contents.
+
+$(PackageSourceDir)/license.html: source
+
+$(PackageLicenseFile): $(PackageSourceDir)/license.html
+	$(copy-result)
+
+# Extract the source from the archive and apply patches, if any.
+
+$(PackageSourceDir): $(PackageArchive) $(PackagePatchPaths) | $(BuildDirectory)
+	$(call expand-archive,$(PackageArchive),$(BuildDirectory))
+	$(call patch-directory,$(@),$(PackagePatchArgs),$(PackagePatchPaths))
+	$(Verbose)touch $(@)
+
+# Prepare the sources.
+
+.PHONY: source
+source: | $(PackageSourceDir)
+
+# Patch the sources, if necessary.
+
+.PHONY: patch
+patch: source
+
+PackageConfigFlags =
+
+# The host config of OSM requires shared libraries.
+ifneq ($(CONFIG_OSM_HOST),1)
+PackageConfigFlags += --disable-shared --enable-static
+endif
+
+# Generate the package build makefile.
+
+$(PackageBuildMakefile): | $(PackageSourceDir) $(BuildDirectory) $(ResultDirectory)
+	$(Verbose)cd $(BuildDirectory) && \
+	$(CURDIR)/$(PackageSourceDir)/source/configure \
+	CC="$(CC)" CXX="$(CXX)" AR=$(AR) NM=$(NM) RANLIB=$(RANLIB) STRIP=$(STRIP) \
+	$(PackageConfigFlags) \
+	--prefix=/usr \
+	--sysconfdir=/etc \
+	--localstatedir=/var
+
+# Configure the source for building.
+
+$(ICUDataConfMaybeBuildPaths): | $(BuildDirectory)
+
+.PHONY: configure
+configure: source $(ICUDataConfMaybeBuildPaths) $(PackageBuildMakefile)
+
+# Build the source.
+#
+# We have to unset MAKEFLAGS since icu's Makefile relies on being
+# able to set a different path to find tools during the build.
+
+.PHONY: build
+build: configure
+	$(Verbose)unset MAKEFLAGS && \
+	$(MAKE) $(JOBSFLAG) -C $(BuildDirectory) all
+
+# Stage the build to a temporary installation area.
+#
+# We have to unset MAKEFLAGS since icu's Makefile relies on being
+# able to set a different path to find tools during the build.
+
+.PHONY: stage
+stage: build | $(ResultDirectory)
+	$(Verbose)unset MAKEFLAGS && \
+	$(MAKE) $(JOBSFLAG) -C $(BuildDirectory) DESTDIR=$(ResultDirectory) install
+
+clean:
+	$(Verbose)$(RM) $(RMFLAGS) -r $(PackageSourceDir)
+	$(Verbose)$(RM) $(RMFLAGS) -r $(BuildBaseDirectory)
+	$(Verbose)$(RM) $(RMFLAGS) -r $(ResultDirectory)
+
+include post.mak
diff --git a/configs/brkitr/brklocal.mk b/configs/brkitr/brklocal.mk
new file mode 100644
index 0000000..fa9a99b
--- /dev/null
+++ b/configs/brkitr/brklocal.mk
@@ -0,0 +1,15 @@
+#
+#    Copyright (c) 2012 Nest Labs, Inc.
+#    All rights reserved.
+#
+#    This document is the property of Nest. It is considered
+#    confidential and proprietary information.
+#
+#    This document may not be reproduced or transmitted in any form,
+#    in whole or in part, without the express written permission of
+#    Nest.
+#
+#    Description:
+#      This file is the vendor- and site-specific configuration for
+#      ICU.
+#
diff --git a/configs/brkitr/brslocal.mk b/configs/brkitr/brslocal.mk
new file mode 100644
index 0000000..892b88f
--- /dev/null
+++ b/configs/brkitr/brslocal.mk
@@ -0,0 +1,16 @@
+#
+#    Copyright (c) 2012 Nest Labs, Inc.
+#    All rights reserved.
+#
+#    This document is the property of Nest. It is considered
+#    confidential and proprietary information.
+#
+#    This document may not be reproduced or transmitted in any form,
+#    in whole or in part, without the express written permission of
+#    Nest.
+#
+#    Description:
+#      This file is the vendor- and site-specific configuration for
+#      ICU.
+#
+
diff --git a/configs/coll/collocal.mk b/configs/coll/collocal.mk
new file mode 100644
index 0000000..f8ffe5b
--- /dev/null
+++ b/configs/coll/collocal.mk
@@ -0,0 +1,17 @@
+#
+#    Copyright (c) 2012 Nest Labs, Inc.
+#    All rights reserved.
+#
+#    This document is the property of Nest. It is considered
+#    confidential and proprietary information.
+#
+#    This document may not be reproduced or transmitted in any form,
+#    in whole or in part, without the express written permission of
+#    Nest.
+#
+#    Description:
+#      This file is the vendor- and site-specific configuration for
+#      ICU.
+#
+
+COLLATION_SOURCE = en_US.txt en_CA.txt es_US.txt es.txt es_MX.txt fr_CA.txt fr.txt
diff --git a/configs/curr/reslocal.mk b/configs/curr/reslocal.mk
new file mode 100644
index 0000000..892b88f
--- /dev/null
+++ b/configs/curr/reslocal.mk
@@ -0,0 +1,16 @@
+#
+#    Copyright (c) 2012 Nest Labs, Inc.
+#    All rights reserved.
+#
+#    This document is the property of Nest. It is considered
+#    confidential and proprietary information.
+#
+#    This document may not be reproduced or transmitted in any form,
+#    in whole or in part, without the express written permission of
+#    Nest.
+#
+#    Description:
+#      This file is the vendor- and site-specific configuration for
+#      ICU.
+#
+
diff --git a/configs/lang/reslocal.mk b/configs/lang/reslocal.mk
new file mode 100644
index 0000000..892b88f
--- /dev/null
+++ b/configs/lang/reslocal.mk
@@ -0,0 +1,16 @@
+#
+#    Copyright (c) 2012 Nest Labs, Inc.
+#    All rights reserved.
+#
+#    This document is the property of Nest. It is considered
+#    confidential and proprietary information.
+#
+#    This document may not be reproduced or transmitted in any form,
+#    in whole or in part, without the express written permission of
+#    Nest.
+#
+#    Description:
+#      This file is the vendor- and site-specific configuration for
+#      ICU.
+#
+
diff --git a/configs/locales/reslocal.mk b/configs/locales/reslocal.mk
new file mode 100644
index 0000000..b79ca56
--- /dev/null
+++ b/configs/locales/reslocal.mk
@@ -0,0 +1,17 @@
+#
+#    Copyright (c) 2012 Nest Labs, Inc.
+#    All rights reserved.
+#
+#    This document is the property of Nest. It is considered
+#    confidential and proprietary information.
+#
+#    This document may not be reproduced or transmitted in any form,
+#    in whole or in part, without the express written permission of
+#    Nest.
+#
+#    Description:
+#      This file is the vendor- and site-specific configuration for
+#      ICU.
+#
+
+GENRB_SOURCE = en_US.txt en_CA.txt es_US.txt es.txt es_MX.txt fr_CA.txt fr.txt
diff --git a/configs/mappings/ucmlocal.mk b/configs/mappings/ucmlocal.mk
new file mode 100644
index 0000000..892b88f
--- /dev/null
+++ b/configs/mappings/ucmlocal.mk
@@ -0,0 +1,16 @@
+#
+#    Copyright (c) 2012 Nest Labs, Inc.
+#    All rights reserved.
+#
+#    This document is the property of Nest. It is considered
+#    confidential and proprietary information.
+#
+#    This document may not be reproduced or transmitted in any form,
+#    in whole or in part, without the express written permission of
+#    Nest.
+#
+#    Description:
+#      This file is the vendor- and site-specific configuration for
+#      ICU.
+#
+
diff --git a/configs/misc/misclocal.mk b/configs/misc/misclocal.mk
new file mode 100644
index 0000000..892b88f
--- /dev/null
+++ b/configs/misc/misclocal.mk
@@ -0,0 +1,16 @@
+#
+#    Copyright (c) 2012 Nest Labs, Inc.
+#    All rights reserved.
+#
+#    This document is the property of Nest. It is considered
+#    confidential and proprietary information.
+#
+#    This document may not be reproduced or transmitted in any form,
+#    in whole or in part, without the express written permission of
+#    Nest.
+#
+#    Description:
+#      This file is the vendor- and site-specific configuration for
+#      ICU.
+#
+
diff --git a/configs/rbnf/rbnflocal.mk b/configs/rbnf/rbnflocal.mk
new file mode 100644
index 0000000..892b88f
--- /dev/null
+++ b/configs/rbnf/rbnflocal.mk
@@ -0,0 +1,16 @@
+#
+#    Copyright (c) 2012 Nest Labs, Inc.
+#    All rights reserved.
+#
+#    This document is the property of Nest. It is considered
+#    confidential and proprietary information.
+#
+#    This document may not be reproduced or transmitted in any form,
+#    in whole or in part, without the express written permission of
+#    Nest.
+#
+#    Description:
+#      This file is the vendor- and site-specific configuration for
+#      ICU.
+#
+
diff --git a/configs/region/reslocal.mk b/configs/region/reslocal.mk
new file mode 100644
index 0000000..e946b61
--- /dev/null
+++ b/configs/region/reslocal.mk
@@ -0,0 +1,17 @@
+#
+#    Copyright (c) 2012 Nest Labs, Inc.
+#    All rights reserved.
+#
+#    This document is the property of Nest. It is considered
+#    confidential and proprietary information.
+#
+#    This document may not be reproduced or transmitted in any form,
+#    in whole or in part, without the express written permission of
+#    Nest.
+#
+#    Description:
+#      This file is the vendor- and site-specific configuration for
+#      ICU.
+#
+
+REGION_SOURCE = en.txt es.txt fr.txt
diff --git a/configs/sprep/spreplocal.mk b/configs/sprep/spreplocal.mk
new file mode 100644
index 0000000..892b88f
--- /dev/null
+++ b/configs/sprep/spreplocal.mk
@@ -0,0 +1,16 @@
+#
+#    Copyright (c) 2012 Nest Labs, Inc.
+#    All rights reserved.
+#
+#    This document is the property of Nest. It is considered
+#    confidential and proprietary information.
+#
+#    This document may not be reproduced or transmitted in any form,
+#    in whole or in part, without the express written permission of
+#    Nest.
+#
+#    Description:
+#      This file is the vendor- and site-specific configuration for
+#      ICU.
+#
+
diff --git a/configs/translit/trnslocal.mk b/configs/translit/trnslocal.mk
new file mode 100644
index 0000000..da481f8
--- /dev/null
+++ b/configs/translit/trnslocal.mk
@@ -0,0 +1,17 @@
+#
+#    Copyright (c) 2012 Nest Labs, Inc.
+#    All rights reserved.
+#
+#    This document is the property of Nest. It is considered
+#    confidential and proprietary information.
+#
+#    This document may not be reproduced or transmitted in any form,
+#    in whole or in part, without the express written permission of
+#    Nest.
+#
+#    Description:
+#      This file is the vendor- and site-specific configuration for
+#      ICU.
+#
+
+ TRANLIST_SOURCE = el.txt en.txt
diff --git a/configs/zone/reslocal.mk b/configs/zone/reslocal.mk
new file mode 100644
index 0000000..d3d63c4
--- /dev/null
+++ b/configs/zone/reslocal.mk
@@ -0,0 +1,17 @@
+#
+#    Copyright (c) 2012 Nest Labs, Inc.
+#    All rights reserved.
+#
+#    This document is the property of Nest. It is considered
+#    confidential and proprietary information.
+#
+#    This document may not be reproduced or transmitted in any form,
+#    in whole or in part, without the express written permission of
+#    Nest.
+#
+#    Description:
+#      This file is the vendor- and site-specific configuration for
+#      ICU.
+#
+
+ZONE_SOURCE = en_CA.txt en.txt es.txt fr.txt fr_CA.txt
diff --git a/icu.patches/icu-00.description b/icu.patches/icu-00.description
new file mode 100644
index 0000000..f6721ab
--- /dev/null
+++ b/icu.patches/icu-00.description
@@ -0,0 +1 @@
+This patch changes gcc assembler syntax to use % not @; % works for both x86 and ARM
diff --git a/icu.patches/icu-00.patch b/icu.patches/icu-00.patch
new file mode 100644
index 0000000..b7237c0
--- /dev/null
+++ b/icu.patches/icu-00.patch
@@ -0,0 +1,23 @@
+diff -aruN a/source/tools/toolutil/pkg_genc.c b/source/tools/toolutil/pkg_genc.c
+--- a/source/tools/toolutil/pkg_genc.c	2010-04-28 08:27:46.000000000 -0700
++++ b/source/tools/toolutil/pkg_genc.c	2010-10-01 12:55:24.850893589 -0700
+@@ -1,5 +1,5 @@
+ /******************************************************************************
+- *   Copyright (C) 2009, International Business Machines
++ *   Copyright (C) 2009-2010, International Business Machines
+  *   Corporation and others.  All Rights Reserved.
+  *******************************************************************************
+  */
+@@ -118,10 +118,10 @@
+ } assemblyHeader[] = {
+     {"gcc",
+         ".globl %s\n"
+-        "\t.section .note.GNU-stack,\"\",@progbits\n"
++        "\t.section .note.GNU-stack,\"\",%%progbits\n"
+         "\t.section .rodata\n"
+         "\t.align 8\n" /* Either align 8 bytes or 2^8 (256) bytes. 8 bytes is needed. */
+-        "\t.type %s,@object\n"
++        "\t.type %s,%%object\n"
+         "%s:\n\n",
+ 
+         ".long ","",HEX_0X
diff --git a/icu.patches/icu-00.url b/icu.patches/icu-00.url
new file mode 100644
index 0000000..a553fa8
--- /dev/null
+++ b/icu.patches/icu-00.url
@@ -0,0 +1 @@
+https://bugs.icu-project.org/trac/changeset/28107
diff --git a/icu.patches/icu-50.description b/icu.patches/icu-50.description
new file mode 100644
index 0000000..6050fa0
--- /dev/null
+++ b/icu.patches/icu-50.description
@@ -0,0 +1 @@
+This patch ensures a link against the static libgcc is made to resolve a hidden ARM-only assembly-level primitive symbol.
diff --git a/icu.patches/icu-50.patch b/icu.patches/icu-50.patch
new file mode 100644
index 0000000..dadd6cf
--- /dev/null
+++ b/icu.patches/icu-50.patch
@@ -0,0 +1,12 @@
+diff -aruN a/source/common/Makefile.in b/source/common/Makefile.in
+--- a/source/common/Makefile.in	2010-09-30 17:53:44.194447128 -0700
++++ b/source/common/Makefile.in	2010-04-28 08:27:40.000000000 -0700
+@@ -192,7 +192,7 @@
+ 
+ ifneq ($(ENABLE_SHARED),)
+ $(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA)
+-	$(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
++	$(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) -lgcc
+ 
+ ifeq ($(OS390BATCH),1)
+ $(BATCH_TARGET):$(OBJECTS)
diff --git a/icu.patches/icu-51.description b/icu.patches/icu-51.description
new file mode 100644
index 0000000..d79b67d
--- /dev/null
+++ b/icu.patches/icu-51.description
@@ -0,0 +1 @@
+This patch adds support for applying ICU customizations on a per-build basis rather than on a per-source basis.
diff --git a/icu.patches/icu-51.patch b/icu.patches/icu-51.patch
new file mode 100644
index 0000000..f9fd8d7
--- /dev/null
+++ b/icu.patches/icu-51.patch
@@ -0,0 +1,110 @@
+diff -aruN a/source/data/Makefile.in b/source/data/Makefile.in
+--- a/source/data/Makefile.in	2010-04-28 08:28:50.000000000 -0700
++++ b/source/data/Makefile.in	2012-04-26 10:00:26.283892893 -0700
+@@ -66,6 +66,8 @@
+ OUTDIR=$(top_builddir)/data/out
+ endif
+ 
++CONFDIR=$(top_builddir)/data
++
+ OUTTMPDIR=$(OUTDIR)/tmp
+ MAINBUILDDIR=$(OUTDIR)/build
+ BUILDDIR=$(MAINBUILDDIR)/$(ICUDATA_PLATFORM_NAME)
+@@ -73,24 +75,35 @@
+ LOCSRCDIR=$(SRCDATADIR)/locales
++LOCCONFDIR=$(CONFDIR)/locales
+ CURRSRCDIR=$(SRCDATADIR)/curr
+ CURRBLDDIR=$(BUILDDIR)/curr
++CURRCONFDIR=$(CONFDIR)/curr
+ LANGSRCDIR=$(SRCDATADIR)/lang
+ LANGBLDDIR=$(BUILDDIR)/lang
++LANGCONFDIR=$(CONFDIR)/lang
+ REGIONSRCDIR=$(SRCDATADIR)/region
+ REGIONBLDDIR=$(BUILDDIR)/region
++REGIONCONFDIR=$(CONFDIR)/region
+ ZONESRCDIR=$(SRCDATADIR)/zone
+ ZONEBLDDIR=$(BUILDDIR)/zone
++ZONECONFDIR=$(CONFDIR)/zone
+ COLSRCDIR=$(SRCDATADIR)/coll
+ COLBLDDIR=$(BUILDDIR)/coll
++COLCONFDIR=$(CONFDIR)/coll
+ RBNFSRCDIR=$(SRCDATADIR)/rbnf
+ RBNFBLDDIR=$(BUILDDIR)/rbnf
++RBNFCONFDIR=$(CONFDIR)/rbnc
+ TRANSLITSRCDIR=$(SRCDATADIR)/translit
+ TRANSLITBLDDIR=$(BUILDDIR)/translit
++TRANSLITCONFDIR=$(CONFDIR)/translit
+ MISCSRCDIR=$(SRCDATADIR)/misc
++MISCCONFDIR=$(CONFDIR)/misc
+ BRKSRCDIR=$(SRCDATADIR)/brkitr
+ BRKBLDDIR=$(BUILDDIR)/brkitr
+-MISCSRCDIR=$(SRCDATADIR)/misc
++BRKCONFDIR=$(CONFDIR)/brkitr
+ UCMSRCDIR=$(SRCDATADIR)/mappings
++UCMCONFDIR=$(CONFDIR)/mappings
+ SPREPSRCDIR=$(SRCDATADIR)/sprep
++SPREPCONFDIR=$(CONFDIR)/sprep
+ COMINCDIR=$(top_srcdir)/common/unicode
+ SRCLISTDEPS=Makefile $(srcdir)/Makefile.in
+ BUILD_DIRS=$(OUTDIR) $(MAINBUILDDIR) $(BUILDDIR) $(CURRBLDDIR) $(LANGBLDDIR) $(REGIONBLDDIR) $(ZONEBLDDIR) $(BRKBLDDIR) $(COLBLDDIR) $(RBNFBLDDIR) $(TRANSLITBLDDIR) $(OUTTMPDIR) $(OUTTMPDIR_390STUB) $(OUTTMPDIR)/$(CURR_TREE) $(OUTTMPDIR)/$(LANG_TREE) $(OUTTMPDIR)/$(REGION_TREE) $(OUTTMPDIR)/$(ZONE_TREE) $(OUTTMPDIR)/$(COLLATION_TREE) $(OUTTMPDIR)/$(RBNF_TREE) $(OUTTMPDIR)/$(TRANSLIT_TREE) $(OUTTMPDIR)/$(BREAK_TREE)
+@@ -231,7 +243,7 @@
+ ## BRK files
+ BREAK_TREE=brkitr
+ -include $(BRKSRCDIR)/brkfiles.mk
+--include $(BRKSRCDIR)/brklocal.mk
++-include $(BRKCONFDIR)/brklocal.mk
+ ALL_BRK_SOURCE= $(BRK_SOURCE) $(BRK_SOURCE_LOCAL)
+ BRK_FILES_SHORT=$(ALL_BRK_SOURCE:%.txt=$(BREAK_TREE)/%.brk)
+ BRK_FILES=$(ALL_BRK_SOURCE:%.txt=$(BRKBLDDIR)/%.brk)
+@@ -255,7 +267,7 @@
+ -include $(UCMSRCDIR)/ucmcore.mk
+ -include $(UCMSRCDIR)/ucmfiles.mk
+ -include $(UCMSRCDIR)/ucmebcdic.mk
+--include $(UCMSRCDIR)/ucmlocal.mk
++-include $(UCMCONFDIR)/ucmlocal.mk
+ ALL_UCM_SOURCE=ibm-37_P100-1995.ucm ibm-1047_P100-1995.ucm $(UCM_SOURCE_CORE) $(UCM_SOURCE_FILES) $(UCM_SOURCE_EBCDIC) $(UCM_SOURCE_LOCAL)
+ UCM_FILES = $(ALL_UCM_SOURCE:%=$(SRCDATADIR)/%)
+ CNV_FILES = $(ALL_UCM_SOURCE:%.ucm=$(BUILDDIR)/%.cnv)
+@@ -274,15 +286,15 @@
+ -include $(COLSRCDIR)/colfiles.mk
+ -include $(RBNFSRCDIR)/rbnffiles.mk
+ -include $(TRANSLITSRCDIR)/trnsfiles.mk
+--include $(LOCSRCDIR)/reslocal.mk
+--include $(CURRSRCDIR)/reslocal.mk
+--include $(LANGSRCDIR)/reslocal.mk
+--include $(REGIONSRCDIR)/reslocal.mk
+--include $(ZONESRCDIR)/reslocal.mk
+--include $(COLSRCDIR)/collocal.mk
+--include $(BRKSRCDIR)/brslocal.mk
+--include $(RBNFSRCDIR)/rbnflocal.mk
+--include $(TRANSLITSRCDIR)/trnslocal.mk
++-include $(LOCCONFDIR)/reslocal.mk
++-include $(CURRCONFDIR)/reslocal.mk
++-include $(LANGCONFDIR)/reslocal.mk
++-include $(REGIONCONFDIR)/reslocal.mk
++-include $(ZONECONFDIR)/reslocal.mk
++-include $(COLCONFDIR)/collocal.mk
++-include $(BRKCONFDIR)/brslocal.mk
++-include $(RBNFCONFDIR)/rbnflocal.mk
++-include $(TRANSLITCONFDIR)/trnslocal.mk
+ ifdef GENRB_SOURCE
+ RES_SRC= root.txt $(GENRB_SOURCE) $(GENRB_ALIAS_SOURCE) $(GENRB_SOURCE_LOCAL) $(GENRB_ALIAS_SOURCE_LOCAL)
+ RES_SRC_FILES = $(RES_SRC:%=$(LOCSRCDIR)/%)
+@@ -327,7 +339,7 @@
+ 
+ ## MISC files
+ -include $(MISCSRCDIR)/miscfiles.mk
+--include $(MISCSRCDIR)/misclocal.mk
++-include $(MISCCONFDIR)/misclocal.mk
+ MSC_SOURCE= $(MISC_SOURCE) $(MISC_SOURCE_LOCAL)
+ MSC_SRC_FILES=$(MSC_SOURCE:%=$(MISCSRCDIR)/%)
+ 
+@@ -396,7 +408,7 @@
+ 
+ ## SPP files
+ -include $(SPREPSRCDIR)/sprepfiles.mk
+--include $(SPREPSRCDIR)/spreplocal.mk
++-include $(SPREPCONFDIR)/spreplocal.mk
+ ALL_SPREP_SOURCE=$(SPREP_SOURCE) $(SPREP_SOURCE_LOCAL)
+ SPREP_FILES = $(ALL_SPREP_SOURCE:%.txt=$(BUILDDIR)/%.spp)
+ SPREP_FILES_SHORT = $(ALL_SPREP_SOURCE:%.txt=%.spp)
diff --git a/icu.patches/icu-52.description b/icu.patches/icu-52.description
new file mode 100644
index 0000000..95c68c8
--- /dev/null
+++ b/icu.patches/icu-52.description
@@ -0,0 +1 @@
+This patch fixes CCACHE compilation error (needs extra quoting around CC reference in Makefile)
diff --git a/icu.patches/icu-52.patch b/icu.patches/icu-52.patch
new file mode 100644
index 0000000..e7df424
--- /dev/null
+++ b/icu.patches/icu-52.patch
@@ -0,0 +1,12 @@
+diff -aruN a/source/tools/icuinfo/Makefile.in b/source/tools/icuinfo/Makefile.in
+--- a/source/tools/icuinfo/Makefile.in	2010-04-28 08:27:44.000000000 -0700
++++ b/source/tools/icuinfo/Makefile.in	2015-04-07 20:27:45.214583128 -0700
+@@ -36,7 +36,7 @@
+ 
+ ICUINFO_OPTS=-i ../../data/out/build/$(ICUDATA_PLATFORM_NAME)
+ 
+-CPPFLAGS+=  -DU_PLATFORM=\"@platform@\"  -DU_BUILD=\"@build@\" -DU_HOST=\"@host@\" -DU_CC=\"@CC@\" -DU_CXX=\"@CXX@\"
++CPPFLAGS+=  -DU_PLATFORM=\"@platform@\"  -DU_BUILD=\"@build@\" -DU_HOST=\"@host@\" -DU_CC="\"@CC@\"" -DU_CXX="\"@CXX@\""
+ # -DENABLE_RELEASE=@ENABLE_RELEASE@ -DENABLE_DEBUG=@ENABLE_DEBUG@ "
+ 
+ 
diff --git a/icu.tar.gz b/icu.tar.gz
new file mode 100644
index 0000000..1ce2111
--- /dev/null
+++ b/icu.tar.gz
Binary files differ
diff --git a/icu.url b/icu.url
new file mode 100644
index 0000000..27d38f8
--- /dev/null
+++ b/icu.url
@@ -0,0 +1 @@
+http://download.icu-project.org/files/icu4c/4.4.1/icu4c-4_4_1-src.tgz
diff --git a/icu.version b/icu.version
new file mode 100644
index 0000000..cca25a9
--- /dev/null
+++ b/icu.version
@@ -0,0 +1 @@
+4.4.1