[buildout]
extends =
  ../zlib/buildout.cfg
  ../xz-utils/buildout.cfg
  ../lz4/buildout.cfg
parts =
  zstd

[zstd]
recipe = slapos.recipe.cmmi
shared = true
url = https://github.com/facebook/zstd/releases/download/v${:version}/zstd-${:version}.tar.gz
version = 1.5.5
md5sum = 63251602329a106220e0a5ad26ba656f
location = @@LOCATION@@
configure-command = :
environment =
  PREFIX=${:location}
  LDFLAGS=-L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib -L${xz-utils:location}/lib -Wl,-rpath=${xz-utils:location}/lib -L${lz4:location}/lib -Wl,-rpath=${lz4:location}/lib
  CFLAGS=-I${zlib:location}/include -I${xz-utils:location}/include -I${lz4:location}/include
