2018-03-20 02:26:35 +02:00
|
|
|
package=icu4c
|
2019-06-27 17:25:22 +03:00
|
|
|
$(package)_version=55.2
|
|
|
|
$(package)_download_path=https://github.com/unicode-org/icu/releases/download/release-55-2/
|
|
|
|
$(package)_file_name=$(package)-55_2-src.tgz
|
|
|
|
$(package)_sha256_hash=eda2aa9f9c787748a2e2d310590720ca8bcc6252adf6b4cfb03b65bef9d66759
|
2018-03-20 02:26:35 +02:00
|
|
|
$(package)_patches=icu-001-dont-build-static-dynamic-twice.patch
|
|
|
|
|
|
|
|
define $(package)_set_vars
|
2019-01-29 17:18:47 +02:00
|
|
|
$(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"
|
2018-03-20 02:26:35 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
|
|
|
patch -p1 < $($(package)_patch_dir)/icu-001-dont-build-static-dynamic-twice.patch &&\
|
|
|
|
mkdir builda &&\
|
|
|
|
mkdir buildb &&\
|
|
|
|
cd builda &&\
|
|
|
|
sh ../source/runConfigureICU Linux &&\
|
|
|
|
make &&\
|
|
|
|
cd ../buildb &&\
|
2019-01-29 17:18:47 +02:00
|
|
|
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 &&\
|
2018-03-20 02:26:35 +02:00
|
|
|
$(MAKE) $($(package)_build_opts)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
cd buildb &&\
|
|
|
|
$(MAKE) $($(package)_build_opts) DESTDIR=$($(package)_staging_dir) install lib/*
|
|
|
|
endef
|