summaryrefslogtreecommitdiff
path: root/packages/lua/lua-build.inc
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-12-24 00:46:16 +0000
committerChris Larson <clarson@kergoth.com>2004-12-24 00:46:16 +0000
commitfbea51d37a0e9df3e88f5d5de383e6f168832dc0 (patch)
tree17ab4d2f5cea340f5d51e10f072af60bc35d7412 /packages/lua/lua-build.inc
parentce2291e0bdc56906ee10662483721669c8b40973 (diff)
Merge oe-devel@oe-devel.bkbits.net:openembedded
into odin.sc.ti.com:/home/kergoth/code/openembedded 2004/12/23 18:45:10-06:00 ti.com!kergoth Lua 5.0: Apply the advanced readline patch from the LuaPowerPatches page on the lua users wiki. This patch greatly improves the readline handling in the lua interpreter, adding things like completion of keywords and variable names, context sensitive delimiter completion, et cetera. BKrev: 41cb66d823kHSs_ffOKNBw_1IbAuvw
Diffstat (limited to 'packages/lua/lua-build.inc')
-rw-r--r--packages/lua/lua-build.inc39
1 files changed, 39 insertions, 0 deletions
diff --git a/packages/lua/lua-build.inc b/packages/lua/lua-build.inc
index e69de29bb2..fed15f1841 100644
--- a/packages/lua/lua-build.inc
+++ b/packages/lua/lua-build.inc
@@ -0,0 +1,39 @@
+LOADLIB = "-DUSE_DLOPEN=1 -fPIC"
+DLLIB = "-ldl"
+MYLDFLAGS = "${LDFLAGS} -Wl,-E"
+MYCFLAGS = "${CFLAGS}"
+USERCONF = '-DLUA_USERCONFIG="\"$(LUA)/etc/saconfig.c\"" -DUSE_READLINE'
+# EXTRA_LIBS= "-lm -ldl -lreadline # -lhistory -lcurses -lncurses"
+EXTRA_LIBS= "-lm -ldl -lreadline"
+
+EXTRA_OEMAKE = "'CC=${CC}' 'MYCFLAGS=${MYCFLAGS}' \
+ 'MYLDFLAGS=${MYLDFLAGS}' 'WARN=' \
+ 'INSTALL_EXEC=install -m 0755' \
+ 'INSTALL_DATA=install -m 0644' \
+ 'STRIP=echo' 'RANLIB=${RANLIB}' \
+ 'AR=${AR} rcu' 'LD=${LD}' \
+ 'LOADLIB=${LOADLIB}' 'DLLIB=${DLLIB}' \
+ 'USERCONF=${USERCONF}' 'EXTRA_LIBS=${EXTRA_LIBS}' \
+ 'INSTALL_ROOT=${prefix}' 'INSTALL_BIN=${bindir}' \
+ 'INSTALL_INC=${includedir}' 'INSTALL_MAN=${mandir}/man1' \
+ 'INSTALL_SHARE=${datadir}/lua'"
+
+do_compile () {
+ oe_runmake all so sobin
+}
+
+do_stage () {
+ oe_libinstall -C lib liblua ${STAGING_LIBDIR}/
+ oe_libinstall -C lib liblualib ${STAGING_LIBDIR}/
+ install -m 0644 include/lua.h include/lualib.h ${STAGING_INCDIR}/
+}
+
+do_install () {
+ oe_runmake \
+ 'INSTALL_ROOT=${D}${prefix}' \
+ 'INSTALL_BIN=${D}${bindir}' \
+ 'INSTALL_INC=${D}${includedir}' \
+ 'INSTALL_MAN=${D}${mandir}/man1' \
+ 'INSTALL_SHARE=${D}${datadir}/lua' \
+ install soinstall
+}