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

parts =
  lua

[lua]
recipe = slapos.recipe.cmmi
url = http://www.lua.org/ftp/lua-5.2.3.tar.gz
md5sum = dc7f94ec6ff15c985d2d6ad0f1b35654
configure-command = make posix
make-targets =
  install INSTALL_TOP=${buildout:parts-directory}/${:_buildout_section_name_}
environment =
  CMAKE_INCLUDE_PATH=${readline:location}/include
  CMAKE_LIBRARY_PATH=${readline:location}/lib
  CPPFLAGS =-I${readline:location}/include
  LDFLAGS =-L${readline:location}/lib -Wl,-rpath=${readline:location}/lib
