| 1 | package=icu4c |
| 2 | $(package)_version=55.2 |
| 3 | $(package)_download_path=https://github.com/unicode-org/icu/releases/download/release-55-2/ |
| 4 | $(package)_file_name=$(package)-55_2-src.tgz |
| 5 | $(package)_sha256_hash=eda2aa9f9c787748a2e2d310590720ca8bcc6252adf6b4cfb03b65bef9d66759 |
| 6 | $(package)_patches=icu-001-dont-build-static-dynamic-twice.patch |
| 7 | |
| 8 | define $(package)_set_vars |
| 9 | $(package)_build_opts=CFLAGS="$($(package)_cflags) $($(package)_cppflags) -DU_USING_ICU_NAMESPACE=0 -DU_STATIC_IMPLEMENTATION -DU_COMBINED_IMPLEMENTATION -fPIC -DENABLE_STATIC=YES -DPGKDATA_MODE=static" |
| 10 | endef |
| 11 | |
| 12 | define $(package)_config_cmds |
| 13 | patch -p1 < $($(package)_patch_dir)/icu-001-dont-build-static-dynamic-twice.patch &&\ |
| 14 | mkdir builda &&\ |
| 15 | mkdir buildb &&\ |
| 16 | cd builda &&\ |
| 17 | sh ../source/runConfigureICU Linux &&\ |
| 18 | make &&\ |
| 19 | cd ../buildb &&\ |
| 20 | sh ../source/runConfigureICU MinGW --enable-static=yes --disable-shared --disable-layout --disable-layoutex --disable-tests --disable-samples --prefix=$(host_prefix) --with-cross-build=`pwd`/../builda &&\ |
| 21 | $(MAKE) $($(package)_build_opts) |
| 22 | endef |
| 23 | |
| 24 | define $(package)_stage_cmds |
| 25 | cd buildb &&\ |
| 26 | $(MAKE) $($(package)_build_opts) DESTDIR=$($(package)_staging_dir) install lib/* |
| 27 | endef |