[buildout]
extends =
  ../m4/buildout.cfg
  ../xz-utils/buildout.cfg

parts =
  gmp

# we should use version 4.x for ppl-0.10
[gmp-4]
recipe = slapos.recipe.cmmi
url = ftp://ftp.gmplib.org/pub/gmp-4.3.2/gmp-4.3.2.tar.bz2
md5sum = dd60683d7057917e34630b4a787932e8
# GMP does not correctly detect achitecture so it have to be given
# as slapos.recipe.cmmi is using shell expansion in subproceses
# backticks are working
configure-options =
  --build=`uname -m`-linux
  --enable-cxx
  --disable-static
environment =
  PATH=${m4:location}/bin:%(PATH)s

[gmp]
recipe = slapos.recipe.cmmi
version = 6.0.0a
url = ftp://ftp.gmplib.org/pub/gmp-6.0.0/gmp-${:version}.tar.xz
md5sum = 1e6da4e434553d2811437aa42c7f7c76
configure-options =
  --enable-cxx
  --disable-static
environment =
  PATH=${m4:location}/bin:${xz-utils:location}/bin:%(PATH)s
