[buildout]
extends =
  ../bison/buildout.cfg
  ../gettext/buildout.cfg
  ../gmp/buildout.cfg
  ../m4/buildout.cfg
  ../texinfo/buildout.cfg

parts = binutils

[mpfr]
recipe = slapos.recipe.cmmi
shared = true
url = http://ftp.gnu.org/gnu/mpfr/mpfr-4.0.2.tar.xz
md5sum = 320fbc4463d4c8cb1e566929d8adc4f8
configure-options =
  --with-gmp=${gmp:location}
  --disable-static
environment =
  PATH=${xz-utils:location}/bin:${bison:location}/bin:%(PATH)s
  LDFLAGS=-Wl,-rpath=${gmp:location}/lib

[mpc]
recipe = slapos.recipe.cmmi
shared = true
url = http://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
md5sum = 4125404e41e482ec68282a2e687f6c73
configure-options =
  --with-gmp=${gmp:location}
  --with-mpfr=${mpfr:location}
  --disable-static
environment =
  LDFLAGS=-Wl,-rpath=${gmp:location}/lib -Wl,-rpath=${mpfr:location}/lib

[isl]
recipe = slapos.recipe.cmmi
shared = true
url = ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-0.18.tar.bz2
md5sum = 11436d6b205e516635b666090b94ab32
configure-options =
  --with-gmp-prefix=${gmp:location}
  --disable-static
environment =
  LDFLAGS=-Wl,-rpath=${gmp:location}/lib

[binutils]
recipe = slapos.recipe.cmmi
shared = true
url = http://ftp.gnu.org/gnu/binutils/binutils-2.40.tar.bz2
md5sum = fe10027c8de77b643ae72bd6de3f7996
configure-options =
  --disable-bootstrap
  --with-mpc=${mpc:location}
  --with-mpfr=${mpfr:location}
  --with-gmp=${gmp:location}
  --with-isl=${isl:location}
environment =
  LDFLAGS=-L${gettext:location}/lib -lintl -Wl,-rpath=${gettext:location}/lib -Wl,-rpath=${zlib:location}/lib
  PATH=${texinfo7:location}/bin:${bison:location}/bin:${m4:location}/bin:%(PATH)s
  BISON_PKGDATADIR=${bison:location}/share/bison
