[buildout]
extends = ../zlib/buildout.cfg
parts =
  zstd

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