[buildout]
extends =
  ../cmake/buildout.cfg
  ../openssl/buildout.cfg
  ../libxslt/buildout.cfg

[mosquitto]
recipe = slapos.recipe.cmmi
url = https://mosquitto.org/files/source/mosquitto-2.0.15.tar.gz
md5sum = 22b7a8b05caa692cb22496b791529193
configure-command = 
  ${cmake:location}/bin/cmake
configure-options = 
  -DDOCUMENTATION=OFF
  -DWITH_CJSON=no
  -DCMAKE_INSTALL_PREFIX=@@LOCATION@@
  -DOPENSSL_ROOT_DIR=${openssl:location}
  -DOPENSSL_INCLUDE_DIR=${openssl:location}/include
environment =
  PATH=${openssl:location}/bin:${libxslt:location}/bin:%(PATH)s
  LDFLAGS=-L${openssl:location}/lib -Wl,-rpath=${openssl:location}/lib -Wl,-rpath=@@LOCATION@@/lib
