[buildout]
extends =
  ../bzip2/buildout.cfg
  ../cmake/buildout.cfg
  ../perl/buildout.cfg
  ../popt/buildout.cfg
  ../zlib/buildout.cfg
parts =
  librsync

[librsync]
recipe = slapos.recipe.cmmi
shared = true
url = https://github.com/librsync/librsync/archive/v2.3.2.tar.gz
md5sum = 74ba5b50de5ba3d595828e9109fa5fce
location = @@LOCATION@@
configure-command = ${cmake:location}/bin/cmake
configure-options =
  -DCMAKE_INSTALL_PREFIX=${:location}
  -DCMAKE_INSTALL_RPATH=${:location}/lib:${bzip2:location}/lib:${popt:location}/lib:${zlib:location}/lib
  -DCMAKE_INSTALL_LIBDIR=lib
make-options =
  VERBOSE=1
environment =
  PATH=${perl:location}/bin:%(PATH)s
  CMAKE_INCLUDE_PATH=${bzip2:location}/include:${popt:location}/include:${zlib:location}/include
  CMAKE_LIBRARY_PATH=${bzip2:location}/lib:${popt:location}/lib:${zlib:location}/lib
