buildout.cfg 750 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
[buildout]
extends =
  ../readline/buildout.cfg

parts =
  lua

[lua]
recipe = slapos.recipe.cmmi
10
shared = true
11 12
url = http://www.lua.org/ftp/lua-5.4.3.tar.gz
md5sum = ef63ed2ecfb713646a7fcc583cf5f352
13 14 15
configure-command = true
make-options =
  "$(uname -sr 2>/dev/null|grep -Eq '^Linux' && echo linux || echo posix)"
16
  MYCFLAGS="-I${readline:location}/include -fPIC"
17
  MYLDFLAGS="-L${readline:location}/lib -Wl,-rpath=${readline:location}/lib"
18 19 20 21 22 23 24 25 26 27 28 29 30
  INSTALL_TOP=@@LOCATION@@
post-install =
  mkdir -p %(location)s/lib/pkgconfig
  {
    make pc INSTALL_TOP=%(location)s
    echo '%(pc)s'
  } > %(location)s/lib/pkgconfig/lua.pc
pc =
  Name: Lua
  Description: Lua language engine
  Version: $${version}
  Libs: -L$${libdir} -llua
  Cflags: -I$${includedir}