[buildout]
extends =
  ../autoconf/buildout.cfg
  ../automake/buildout.cfg
  ../libtool/buildout.cfg
  ../gettext/buildout.cfg
  ../m4/buildout.cfg
  ../mariadb/buildout.cfg

parts =
  sysbench

[sysbench]
recipe = slapos.recipe.cmmi
shared = true
url = https://github.com/akopytov/sysbench/archive/1.0.19.tar.gz
md5sum = 2912bfe7238cac7351459019a84e2557
pre-configure =
  ./autogen.sh
configure-options =
  --disable-static
  --with-mysql-includes=${mariadb:location}/include/mysql
  --with-mysql-libs=${mariadb:location}/lib
environment =
  PATH=${m4:location}/bin:${autoconf:location}/bin:${automake:location}/bin:${pkgconfig:location}/bin:${libtool:location}/bin:%(PATH)s
  CPPFLAGS=-I${gettext:location}/include -I${mariadb:location}/include
  LDFLAGS=-L${gettext:location}/lib -Wl,-rpath=${gettext:location}/lib -L${mariadb:location}/lib -Wl,-rpath=${mariadb:location}/lib
  ACLOCAL_PATH=${pkgconfig:location}/share/aclocal:${gettext:location}/share/aclocal:${libtool:location}/share/aclocal
