[buildout]

extends =
  ../bzip2/buildout.cfg
  ../cmake/buildout.cfg
  ../xz-utils/buildout.cfg
  ../zlib/buildout.cfg

parts = libzip

[libzip]
recipe = slapos.recipe.cmmi
shared = true
url = https://libzip.org/download/libzip-1.5.2.tar.xz
md5sum = f9dd38d273bcdec5d3d1498fe6684f42
location = @@LOCATION@@
configure-command = cmake
configure-options =
  -Bbuild
  -DCMAKE_BUILD_TYPE=Release
  -DCMAKE_INSTALL_PREFIX=${:location}
  -DCMAKE_INCLUDE_PATH=${zlib:location}/include:${bzip2:location}/include
  -DCMAKE_LIBRARY_PATH=${zlib:location}/lib:${bzip2:location}/lib
make-options = -C build
environment =
  PATH=${cmake:location}/bin:${xz-utils:location}/bin:%(PATH)s
  CMAKE_INCLUDE_PATH=${zlib:location}/include:${bzip2:location}/include
  CMAKE_LIBRARY_PATH=${zlib:location}/lib:${bzip2:location}/lib
  LDFLAGS=-Wl,-rpath=${:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib -L${bzip2:location}/lib -Wl,-rpath=${bzip2:location}/lib
