summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2008-10-16 21:16:15 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2008-10-16 21:16:15 +0200
commit34a12c2ff974595a014375de4eaacb553d4742df (patch)
treec78fe3410f1d511279b31a4b7c13fcc8b88cb80d
parent368320c838e5752cc6c292cfcf0bdf4658a60e07 (diff)
lua5.1: package 5.1 branch of the lua language
-rw-r--r--conf/checksums.ini4
-rw-r--r--packages/lua/lua5.1/lua5.1.pc11
-rw-r--r--packages/lua/lua5.1/makefile.patch22
-rw-r--r--packages/lua/lua5.1_5.1.4.bb37
4 files changed, 74 insertions, 0 deletions
diff --git a/conf/checksums.ini b/conf/checksums.ini
index 9993342480..1fde3153aa 100644
--- a/conf/checksums.ini
+++ b/conf/checksums.ini
@@ -9938,6 +9938,10 @@ sha256=e08067d89e306fad7f4be56821998c073fc457d9444a18f6eb55dc7c0710a9d5
md5=dea74646b7e5c621fef7174df83c34b1
sha256=a6c85d85f912e1c321723084389d63dee7660b81b8292452b190ea7190dd73bc
+[http://www.lua.org/ftp/lua-5.1.4.tar.gz]
+md5=d0870f2de55d59c1c8419f36e8fac150
+sha256=b038e225eaf2a5b57c9bcc35cd13aa8c6c8288ef493d52970c9545074098af3a
+
[http://luaforge.net/frs/download.php/989/lua-gtk2-0.3.tar.gz]
md5=a2788c45d60ef8ce30168811d7e72334
sha256=b3dd85e34b22cf757eafb6ef15c5505d5ec5e71803caef4b69ddc7fd5d46fabe
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
+}
+