summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.html5
-rw-r--r--src/icu4c.mk32
2 files changed, 37 insertions, 0 deletions
diff --git a/index.html b/index.html
index 5b6425b..ad359e8 100644
--- a/index.html
+++ b/index.html
@@ -1353,6 +1353,11 @@ aptitude -t squeeze-backports install cmake yasm</pre>
<td id="hunspell-website"><a href="http://hunspell.sourceforge.net/">Hunspell</a></td>
</tr>
<tr>
+ <td id="icu4c-package">icu4c</td>
+ <td id="icu4c-version">51.1</td>
+ <td id="icu4c-website"><a href="http://site.icu-project.org/">ICU4C</a></td>
+ </tr>
+ <tr>
<td id="id3lib-package">id3lib</td>
<td id="id3lib-version">3.8.3</td>
<td id="id3lib-website"><a href="http://id3lib.sourceforge.net/">id3lib</a></td>
diff --git a/src/icu4c.mk b/src/icu4c.mk
new file mode 100644
index 0000000..2a19e69
--- /dev/null
+++ b/src/icu4c.mk
@@ -0,0 +1,32 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := icu4c
+$(PKG)_IGNORE :=
+$(PKG)_CHECKSUM := 7905632335e3dcd6667224da0fa087b49f9095e9
+$(PKG)_SUBDIR := icu
+$(PKG)_FILE := $(PKG)-$(subst .,_,$($(PKG)_VERSION))-src.tgz
+$(PKG)_URL := http://download.icu-project.org/files/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
+
+define $(PKG)_UPDATE
+ echo 'TODO: Updates for package icu4c need to be written.' >&2;
+ echo $(icu4c_VERSION)
+endef
+
+define $(PKG)_BUILD
+ mkdir '$(1).native' && cd '$(1).native' && '$(1)/source/configure'
+ $(MAKE) -C '$(1).native' -j '$(JOBS)'
+
+ mkdir '$(1).cross' && cd '$(1).cross' && '$(1)/source/configure' \
+ --host='$(TARGET)' \
+ --build="`config.guess`" \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ --enable-static \
+ --disable-shared \
+ --with-cross-build='$(1).native' \
+ CFLAGS=-DU_USING_ICU_NAMESPACE=0 \
+ SHELL=bash
+
+ $(MAKE) -C '$(1).cross' -j '$(JOBS)' install LIBPREFIX=lib
+endef