[buildout]
extends =
  ../cmake/buildout.cfg
  ../pkgconfig/buildout.cfg

parts =
  jsoncpp

[jsoncpp]
recipe = slapos.recipe.cmmi
shared = true
pre-configure =
  mkdir jsoncpp-build
configure-command =
  cd jsoncpp-build && ${cmake:location}/bin/cmake ..
configure-options =
  -DCMAKE_INSTALL_PREFIX=@@LOCATION@@
url = https://github.com/open-source-parsers/jsoncpp/archive/refs/tags/1.9.5.tar.gz
md5sum = d6c8c609f2162eff373db62b90a051c7
make-binary =
  cd jsoncpp-build && make
environment =
  PATH=${pkgconfig:location}/bin:%(PATH)s
