diff options
author | Jeremy Lainé <jeremy.laine@m4x.org> | 2008-10-16 21:16:15 +0200 |
---|---|---|
committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2008-10-16 21:16:15 +0200 |
commit | 34a12c2ff974595a014375de4eaacb553d4742df (patch) | |
tree | c78fe3410f1d511279b31a4b7c13fcc8b88cb80d /packages | |
parent | 368320c838e5752cc6c292cfcf0bdf4658a60e07 (diff) |
lua5.1: package 5.1 branch of the lua language
Diffstat (limited to 'packages')
-rw-r--r-- | packages/lua/lua5.1/lua5.1.pc | 11 | ||||
-rw-r--r-- | packages/lua/lua5.1/makefile.patch | 22 | ||||
-rw-r--r-- | packages/lua/lua5.1_5.1.4.bb | 37 |
3 files changed, 70 insertions, 0 deletions
diff --git a/packages/lua/lua5.1/lua5.1.pc b/packages/lua/lua5.1/lua5.1.pc new file mode 100644 index 0000000000..df8eb15c0f --- /dev/null +++ b/packages/lua/lua5.1/lua5.1.pc @@ -0,0 +1,11 @@ +prefix=/usr +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: Lua +Description: Lua language engine +Version: 5.1.3 +Requires: +Libs: -L${libdir} -llua5.1 +Libs.private: -lm +Cflags: -I${includedir}/lua5.1 diff --git a/packages/lua/lua5.1/makefile.patch b/packages/lua/lua5.1/makefile.patch new file mode 100644 index 0000000000..569a94421b --- /dev/null +++ b/packages/lua/lua5.1/makefile.patch @@ -0,0 +1,22 @@ +--- lua-5.1.3.orig/Makefile 2008-08-18 17:59:06.000000000 +0200 ++++ lua-5.1.3/Makefile 2008-08-18 17:59:15.000000000 +0200 +@@ -38,7 +38,7 @@ + # What to install. + TO_BIN= lua luac + TO_INC= lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp +-TO_LIB= liblua.a ++TO_LIB= liblua5.1.a + TO_MAN= lua.1 luac.1 + + # Lua version and release. +--- lua-5.1.3.orig/src/Makefile 2008-08-18 17:54:30.000000000 +0200 ++++ lua-5.1.3/src/Makefile 2008-08-18 17:54:39.000000000 +0200 +@@ -22,7 +22,7 @@ + + PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris + +-LUA_A= liblua.a ++LUA_A= liblua5.1.a + CORE_O= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \ + lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o \ + lundump.o lvm.o lzio.o diff --git a/packages/lua/lua5.1_5.1.4.bb b/packages/lua/lua5.1_5.1.4.bb new file mode 100644 index 0000000000..faf7676f84 --- /dev/null +++ b/packages/lua/lua5.1_5.1.4.bb @@ -0,0 +1,37 @@ +DESCRIPTION = "Lua is a powerful light-weight programming language designed \ +for extending applications." +LICENSE = "MIT" +HOMEPAGE = "http://www.lua.org/" + +DEPENDS += "readline" +FILE_PR = "r0" +SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz \ + file://makefile.patch;patch=1 \ + file://lua5.1.pc" +S = "${WORKDIR}/lua-${PV}" + +inherit binconfig + +EXTRA_OEMAKE = "'CC=${CC}' 'MYCFLAGS=${CFLAGS}' 'MYLDFLAGS=${LDFLAGS}'" + +do_compile () { + oe_runmake linux +} + +do_stage () { + oe_libinstall -C src liblua5.1 ${STAGING_LIBDIR}/ + install -d ${STAGING_INCDIR}/lua5.1 + install -m 0644 src/lua.h src/luaconf.h src/lualib.h src/lauxlib.h ${STAGING_INCDIR}/lua5.1 + install -m 0644 ${WORKDIR}/lua5.1.pc ${STAGING_LIBDIR}/pkgconfig/ +} + +do_install () { + oe_runmake \ + 'INSTALL_TOP=${D}${prefix}' \ + 'INSTALL_BIN=${D}${bindir}' \ + 'INSTALL_INC=${D}${includedir}/lua5.1' \ + 'INSTALL_MAN=${D}${mandir}/man1' \ + 'INSTALL_SHARE=${D}${datadir}/lua' \ + install +} + |