[buildout]
extends =
  ../cmake/buildout.cfg
parts =
  pcre2

[pcre2]
recipe = slapos.recipe.cmmi
shared = true
url = https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.42/pcre2-10.42.tar.bz2
md5sum = a8e9ab2935d428a4807461f183034abe
configure-command = ${cmake:location}/bin/cmake
configure-options =
  -DCMAKE_INSTALL_PREFIX=@@LOCATION@@
  -DPCRE2_BUILD_PCRE2_16=ON
  -DPCRE2_BUILD_PCRE2_32=ON
  -DPCRE2_SUPPORT_LIBBZ2=OFF
  -DPCRE2_SUPPORT_LIBZ=OFF
  -DPCRE2_SUPPORT_LIBEDIT=OFF
  -DPCRE2_SUPPORT_LIBREADLINE=OFF
