changeset 2409:89d0ae6cb123

update package lua
author beoran <beoran@rubyforge.org>
date Mon, 16 Apr 2012 03:40:31 +1000
parents 6cca7503b508
children cbcb88df00f6 c906500af274
files index.html src/lua-test.c src/lua.mk
diffstat 3 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/index.html	Mon Apr 16 02:45:25 2012 +1000
+++ b/index.html	Mon Apr 16 03:40:31 2012 +1000
@@ -1519,7 +1519,7 @@
     </tr>
     <tr>
         <td id="lua-package">lua</td>
-        <td id="lua-version">5.1.4</td>
+        <td id="lua-version">5.2.0</td>
         <td id="lua-website"><a href="http://www.lua.org/">Lua</a></td>
     </tr>
     <tr>
--- a/src/lua-test.c	Mon Apr 16 02:45:25 2012 +1000
+++ b/src/lua-test.c	Mon Apr 16 03:40:31 2012 +1000
@@ -14,7 +14,7 @@
     (void)argc;
     (void)argv;
 
-    L = lua_open();
+    L = luaL_newstate();
     lua_close(L);
     return 0;
 }
--- a/src/lua.mk	Mon Apr 16 02:45:25 2012 +1000
+++ b/src/lua.mk	Mon Apr 16 03:40:31 2012 +1000
@@ -3,7 +3,7 @@
 
 PKG             := lua
 $(PKG)_IGNORE   :=
-$(PKG)_CHECKSUM := 2b11c8e60306efb7f0734b747588f57995493db7
+$(PKG)_CHECKSUM := 08f84c355cdd646f617f09cebea48bd832415829
 $(PKG)_SUBDIR   := lua-$($(PKG)_VERSION)
 $(PKG)_FILE     := lua-$($(PKG)_VERSION).tar.gz
 $(PKG)_URL      := http://www.lua.org/ftp/$($(PKG)_FILE)
@@ -29,12 +29,9 @@
         TO_BIN='lua.h' \
         INSTALL='$(INSTALL)' \
         install
-    $(SED) -i 's,^prefix=.*,prefix=$(PREFIX)/$(TARGET),' '$(1)/etc/lua.pc'
-    $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig'
-    $(INSTALL) -m644 '$(1)/etc/lua.pc' '$(PREFIX)/$(TARGET)/lib/pkgconfig/lua.pc'
 
     '$(TARGET)-gcc' \
         -W -Wall -Werror -ansi -pedantic \
         '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-lua.exe' \
-        `'$(TARGET)-pkg-config' lua --cflags --libs`
+        -llua
 endef