diff options
Diffstat (limited to 'strata/lua51')
-rw-r--r-- | strata/lua51/lua51.morph | 11 | ||||
-rw-r--r-- | strata/lua51/luajit2.morph | 7 |
2 files changed, 18 insertions, 0 deletions
diff --git a/strata/lua51/lua51.morph b/strata/lua51/lua51.morph new file mode 100644 index 00000000..32aeb5c1 --- /dev/null +++ b/strata/lua51/lua51.morph @@ -0,0 +1,11 @@ +name: lua +kind: chunk +configure-commands: +- sed -e 's/defined(LUA_USE_READLINE)/0/g' src/luaconf.h.orig >src/luaconf.h +- sed -i -e '/^linux:/{n;s/-lreadline//g;s/-lhistory//g;s/-lncurses//g}' src/Makefile +build-commands: +- make debian_linux INSTALL_TOP="$PREFIX" RPATH="$PREFIX/lib" +install-commands: +- make INSTALL_TOP="$DESTDIR/$PREFIX" debian_install +- mkdir -p "$DESTDIR/$PREFIX/lib/pkgconfig" +- cp lua5.1.pc "$DESTDIR/$PREFIX/lib/pkgconfig/" diff --git a/strata/lua51/luajit2.morph b/strata/lua51/luajit2.morph new file mode 100644 index 00000000..72f34f02 --- /dev/null +++ b/strata/lua51/luajit2.morph @@ -0,0 +1,7 @@ +name: luajit2 +kind: chunk +build-commands: +- make PREFIX="$PREFIX" +install-commands: +- make install PREFIX="$PREFIX" DESTDIR="$DESTDIR" + |