summaryrefslogtreecommitdiffstats
path: root/src/icu4c.mk
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-08-08 00:34:58 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-08-08 00:34:58 (GMT)
commit4cc9e46f4881b0d1aa0a9464f5879a4899e3825d (patch)
treefa62899f7524da677a1a0d4ae12181b1c6e28a66 /src/icu4c.mk
parent2182e9b2f9b8be2fc430373884b96d0fc761a513 (diff)
downloadmxe-4cc9e46f4881b0d1aa0a9464f5879a4899e3825d.zip
mxe-4cc9e46f4881b0d1aa0a9464f5879a4899e3825d.tar.gz
mxe-4cc9e46f4881b0d1aa0a9464f5879a4899e3825d.tar.bz2
icu4c: move DLLs to bin/
See #393. Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/icu4c.mk')
-rw-r--r--src/icu4c.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/icu4c.mk b/src/icu4c.mk
index af3130a..19de795 100644
--- a/src/icu4c.mk
+++ b/src/icu4c.mk
@@ -18,7 +18,7 @@ define $(PKG)_UPDATE
tail -1
endef
-define $(PKG)_BUILD_SHARED
+define $(PKG)_BUILD_COMMON
cd '$(1)/source' && autoreconf -fi
mkdir '$(1).native' && cd '$(1).native' && '$(1)/source/configure' \
CC=gcc CXX=g++
@@ -35,8 +35,14 @@ define $(PKG)_BUILD_SHARED
ln -sf '$(PREFIX)/$(TARGET)/bin/icu-config' '$(PREFIX)/bin/$(TARGET)-icu-config'
endef
+define $(PKG)_BUILD_SHARED
+ $($(PKG)_BUILD_COMMON)
+ # icu4c installs its DLLs to lib/. Move them to bin/.
+ mv -fv $(wildcard $(PREFIX)/$(TARGET)/lib/icu*.dll) '$(PREFIX)/$(TARGET)/bin/'
+endef
+
define $(PKG)_BUILD
- $($(PKG)_BUILD_SHARED)
+ $($(PKG)_BUILD_COMMON)
# Static libs are prefixed with an `s` but the config script
# doesn't detect it properly, despite the STATIC_PREFIX="s" line
$(SED) -i 's,ICUPREFIX="icu",ICUPREFIX="sicu",' '$(PREFIX)/$(TARGET)/bin/icu-config'