mirror of https://git.wownero.com/dsc/mxe.git
update package lua
This commit is contained in:
parent
5f0403f7dc
commit
1c5da167d8
|
@ -1519,7 +1519,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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 @@ define $(PKG)_BUILD
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue