Created
April 14, 2012 20:57
-
-
Save beoran/2387846 to your computer and use it in GitHub Desktop.
Diff for updating to lua 5.200
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git diff | |
diff --git a/index.html b/index.html | |
index 399ee51..366aa4b 100644 | |
--- a/index.html | |
+++ b/index.html | |
@@ -1490,7 +1490,7 @@ USE_OSGPLUGIN(<plugin2>) | |
</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> | |
diff --git a/src/lua-test.c b/src/lua-test.c | |
index 8cd0e9f..68de286 100644 | |
--- a/src/lua-test.c | |
+++ b/src/lua-test.c | |
@@ -14,7 +14,7 @@ int main(int argc, char *argv[]) | |
(void)argc; | |
(void)argv; | |
- L = lua_open(); | |
+ L = luaL_newstate(); | |
lua_close(L); | |
return 0; | |
} | |
diff --git a/src/lua.mk b/src/lua.mk | |
index 9825e9a..4338065 100644 | |
--- a/src/lua.mk | |
+++ b/src/lua.mk | |
@@ -1,9 +1,10 @@ | |
# This file is part of MXE. | |
# See index.html for further information. | |
+# updated by beoran for lua-5.2.0 | |
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,11 +30,10 @@ define $(PKG)_BUILD | |
TO_BIN='lua.h' \ | |
INSTALL='$(INSTALL)' \ | |
install | |
- $(SED) -i 's,^prefix=.*,prefix=$(PREFIX)/$(TARGET),' '$(1)/etc/lua.pc' | |
- $(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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment