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

parts =
  openjpeg

[openjpeg]
recipe = slapos.recipe.cmmi
shared = true
version = 2.5.3
url = https://github.com/uclouvain/openjpeg/archive/refs/tags/v${:version}.tar.gz
md5sum = 12ae257cb21738c41b5f6ca977d01081
location = @@LOCATION@@
configure-command = ${cmake:location}/bin/cmake
configure-options =
  -DCMAKE_BUILD_TYPE=Release
  -DCMAKE_INSTALL_PREFIX=@@LOCATION@@
  -DCMAKE_INSTALL_LIBDIR=lib
  -DCMAKE_INSTALL_RPATH=${:location}/lib
