[buildout]
extends =
  ../gcc/buildout.cfg
parts = icu4c

[icu4c]
recipe = slapos.recipe.cmmi
shared = true
location = @@LOCATION@@
url = http://download.icu-project.org/files/icu4c/58.2/icu4c-58_2-src.tgz
md5sum = fac212b32b7ec7ab007a12dff1f3aea1
configure-command = source/configure
configure-options =
  --prefix=${:location}
  --disable-static
  --enable-rpath
patches =
  ${:_profile_base_location_}/fix-glibc2.26-ftbfs.patch#f1622be16964029fc66a70b8f9e1693c

[icu4c-slaposgcc]
# need for onlyoffice-core
<= icu4c
environment =
  PATH=${gcc:location}/bin:%(PATH)s
  LD_LIBRARY_PATH=${gcc:location}/lib:${gcc:location}/lib64
  LDFLAGS=-Wl,-rpath=${gcc:location}/lib -Wl,-rpath=${gcc:location}/lib64

[icu]
<= icu4c

[icu4c-58.2]
<= icu4c

[icu4c-55.1]
<= icu4c
url = http://download.icu-project.org/files/icu4c/55.1/icu4c-55_1-src.tgz
md5sum = e2d523df79d6cb7855c2fbe284f4db29
