[buildout]
extends =
  ../bzip2/buildout.cfg
  ../cmake/buildout.cfg
  ../patch/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.0.0.tar.gz
md5sum = cbda9c3eba21bcf2d56a4080ba7a5dc4
location = @@LOCATION@@
patch-options = -p1
patches =
  ${:_profile_base_location_}/librsync-2.0.0-issue50.patch#5bac5363646a2c2ec6d2c4b26ca4cd7f
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
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
