[buildout]
extends =
  ../bzip2/buildout.cfg
  ../gcc/buildout.cfg
  ../pcre/buildout.cfg
  ../readline/buildout.cfg
  ../xz-utils/buildout.cfg
  ../zlib/buildout.cfg

parts =
  gcc-fortran
  r-language

[r-language]
recipe = slapos.recipe.cmmi
url = http://cran.irsn.fr/src/base/R-3/R-3.1.2.tar.gz
md5sum = 3af29ec06704cbd08d4ba8d69250ae74
configure-options =
  --enable-R-shlib
  --with-readline=yes
  --without-tcltk
  --without-cairo
  --without-libpng
  --without-jpeglib
  --without-libtiff
  --with-system-zlib
  --with-system-bzlib
  --with-system-pcre
  --with-system-xz
  --without-ICU
  --without-x
environment =
  PATH=${gcc-fortran:location}/bin:%(PATH)s
  CPPFLAGS=-I${bzip2:location}/include  -I${pcre:location}/include -I${readline5:location}/include -I${ncurses:location}/include -I${xz-utils:location}/include -I${zlib:location}/include
  LDFLAGS=-L${bzip2:location}/lib -Wl,-rpath=${bzip2:location}/lib -L${gcc-fortran:location}/lib -Wl,-rpath=${gcc-fortran:location}/lib -L${gcc-fortran:location}/lib64 -Wl,-rpath=${gcc-fortran:location}/lib64 -L${ncurses:location}/lib -Wl,-rpath=${ncurses:location}/lib -L${pcre:location}/lib -Wl,-rpath=${pcre:location}/lib -L${readline5:location}/lib -Wl,-rpath=${readline5:location}/lib -L${xz-utils:location}/lib -Wl,-rpath=${xz-utils:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
