[buildout]
extends =
  ../gcc/buildout.cfg
  ../tokyocabinet/buildout.cfg
  ../messagepack/buildout.cfg
  ../openssl/buildout.cfg
  ../patch/buildout.cfg
  ../zlib/buildout.cfg

parts = kumo

[kumo]
recipe = slapos.recipe.cmmi
url = https://github.com/downloads/etolabo/kumofs/kumofs-0.4.13.tar.gz
md5sum = 46148e9536222d0ad2ef36777c55714d
pre-configure-hook = ${:_profile_base_location_}/kumo-hooks.py#958a595a02de75624728f8d65e39d800:pre_configure_hook
patches =
  ${:_profile_base_location_}/kumofs-0.4.13_ipv6support_multiiplistenfix.patch#53af9f1f1375940841c589a6cbe11425
  ${:_profile_base_location_}/kumofs-0.4.13_fix_gcc-4.9_ftbfs.patch#c09e04c620ce11c3fdd4afc3459cd355
patch-options = -p1
configure-options =
  --enable-tcadb
  --with-tokyocabinet=${tokyocabinet:location}
  --with-msgpack=${messagepack:location}

environment =
  CPPFLAGS=-I${zlib:location}/include -I${openssl:location}/include
  LD_LIBRARY_PATH=${gcc:location}/lib:${gcc:location}/lib64
  LDFLAGS=-Wl,-rpath=${gcc:location}/lib -Wl,-rpath=${gcc:location}/lib64 -L${zlib:location}/lib -L${openssl:location}/lib -Wl,-rpath=${tokyocabinet:location}/lib -Wl,-rpath=${messagepack:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${openssl:location}/lib
  PATH=${gcc:location}/bin:${patch:location}/bin:%(PATH)s
