lua: add lua 5.2 recipe

Add lua 5.2.2 recipe.

Update:
  * remove bitwise_operators.patch that lua uses bit32 library to
    support for bitwise operations.
  * update uclibc-pthread.patch

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Kang Kai
2013-12-03 11:12:44 +08:00
committed by Martin Jansa
parent 3b50ee2fa6
commit d2ec4eef07
3 changed files with 73 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
prefix=/usr
libdir=${prefix}/lib
includedir=${prefix}/include
Name: Lua
Description: Lua language engine
Version: 5.2.2
Requires:
Libs: -L${libdir} -llua
Libs.private: -lm
Cflags: -I${includedir}

View File

@@ -0,0 +1,13 @@
Index: lua-5.1.4/src/Makefile
===================================================================
--- a/src/Makefile.orig 2013-10-22 22:17:19.929103523 -0400
+++ a/src/Makefile 2013-10-22 22:18:27.992104545 -0400
@@ -9,7 +9,7 @@
CC= gcc
CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS)
LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
-LIBS= -lm $(SYSLIBS) $(MYLIBS)
+LIBS= -lm -lpthread $(SYSLIBS) $(MYLIBS)
AR= ar rcu
RANLIB= ranlib