support for build with current Lua version 5.4.4
On some platforms this may require:
re-using a sys/unix/hints file to generate updated Makefiles
make spotless
make fetch-lua
This commit is contained in:
@@ -48,7 +48,7 @@ version. You can use one of the following build environments:
|
||||
| | |
|
||||
+------+ +------+ +-----------+
|
||||
| | | | | |
|
||||
share windows tty win32 Lua-5.4.3 pdcurses
|
||||
share windows tty win32 Lua-5.4.4 pdcurses
|
||||
|
|
||||
vs
|
||||
|
||||
@@ -56,11 +56,11 @@ version. You can use one of the following build environments:
|
||||
| Building And Running Using Visual Studio 2017, 2019, 2022 |
|
||||
\-----------------------------------------------------------/
|
||||
|
||||
Before proceeding, please obtain the lua-5.4.3 sources and copy them to
|
||||
the new directory lib\lua-5.4.3\src. This source can be obtained either from
|
||||
http://www.lua.org/ftp/lua-5.4.3.tar.gz or from the git hub mirror
|
||||
https://github.com/lua/lua.git using the tag 'v5.4.3'. The build expects
|
||||
to find lua files such as 'lua.h' at 'lib\lua-5.4.3\src\lua.h'.
|
||||
Before proceeding, please obtain the lua-5.4.4 sources and copy them to
|
||||
the new directory lib\lua-5.4.4\src. This source can be obtained either from
|
||||
http://www.lua.org/ftp/lua-5.4.4.tar.gz or from the git hub mirror
|
||||
https://github.com/lua/lua.git using the tag 'v5.4.4'. The build expects
|
||||
to find lua files such as 'lua.h' at 'lib\lua-5.4.4\src\lua.h'.
|
||||
|
||||
If you are NOT using Visual Studio IDE, or you prefer to build
|
||||
using a Make utility and a Makefile proceed to "Building Using Make".
|
||||
|
||||
@@ -128,7 +128,7 @@ TARGET_CPU=x86
|
||||
#
|
||||
#---------------------------------------------------------------
|
||||
ifndef LUA_VERSION
|
||||
LUAVER=5.4.3
|
||||
LUAVER=5.4.4
|
||||
else
|
||||
LUAVER=$(LUA_VERSION)
|
||||
endif
|
||||
@@ -136,7 +136,7 @@ endif
|
||||
# Location of LUA
|
||||
#
|
||||
# Original source needs to be obtained from:
|
||||
# http://www.lua.org/ftp/lua-5.4.3.tar.gz
|
||||
# http://www.lua.org/ftp/lua-5.4.4.tar.gz
|
||||
#
|
||||
# This build assumes that the LUA sources are located
|
||||
# at the specified location. If they are actually elsewhere
|
||||
@@ -458,11 +458,11 @@ OPTIONS_FILE = $(DAT)\options
|
||||
|
||||
#===============-=================================================
|
||||
# LUA library
|
||||
# Source from http://www.lua.org/ftp/lua-5.4.3.tar.gz
|
||||
# Source from http://www.lua.org/ftp/lua-5.4.4.tar.gz
|
||||
#=================================================================
|
||||
|
||||
ifndef LUAVER
|
||||
LUAVER = 5.4.3
|
||||
LUAVER = 5.4.4
|
||||
endif
|
||||
ifndef LUASRC
|
||||
LUASRC = $(LUATOP)/src
|
||||
|
||||
@@ -142,7 +142,7 @@ DEBUGINFO = Y
|
||||
# This marks the end of the BUILD DECISIONS section.
|
||||
#==============================================================================
|
||||
!IFNDEF LUA_VERSION
|
||||
LUAVER=5.4.3
|
||||
LUAVER=5.4.4
|
||||
!ELSE
|
||||
LUAVER=$(LUA_VERSION)
|
||||
!ENDIF
|
||||
@@ -151,7 +151,7 @@ LUAVER=$(LUA_VERSION)
|
||||
# Location of LUA
|
||||
#
|
||||
# Original source needs to be obtained from:
|
||||
# http://www.lua.org/ftp/lua-5.4.3.tar.gz
|
||||
# http://www.lua.org/ftp/lua-5.4.4.tar.gz
|
||||
#
|
||||
# This build assumes that the LUA sources are located
|
||||
# at the specified location. If they are actually elsewhere
|
||||
@@ -437,7 +437,7 @@ OPTIONS_FILE = $(DAT)\options
|
||||
|
||||
#===============-=================================================
|
||||
# LUA library
|
||||
# Source from http://www.lua.org/ftp/lua-5.4.3.tar.gz
|
||||
# Source from http://www.lua.org/ftp/lua-5.4.4.tar.gz
|
||||
#=================================================================
|
||||
|
||||
!IFNDEF LUAVER
|
||||
@@ -453,8 +453,8 @@ LUAVER = 5.4.1
|
||||
!IF "$(LUATMP)" == "5.4.2"
|
||||
LUAVER = 5.4.2
|
||||
!ENDIF
|
||||
!IF "$(LUATMP)" == "5.4.3"
|
||||
LUAVER = 5.4.3
|
||||
!IF "$(LUATMP)" == "5.4.4"
|
||||
LUAVER = 5.4.4
|
||||
!ENDIF
|
||||
!ELSE
|
||||
!ERROR NetHack 3.7 requires LUA so LUATOP must be defined
|
||||
@@ -466,7 +466,7 @@ LUATMP = $(LUATMP:-BETA=) #strip suffix if exists "-BETA"
|
||||
!IF "$(LUATMP)" == "5.3.5"
|
||||
LUAVER = 5.3.5
|
||||
!ELSE
|
||||
LUAVER = 5.4.3
|
||||
LUAVER = 5.4.4
|
||||
!ENDIF
|
||||
!ENDIF
|
||||
!ENDIF
|
||||
|
||||
@@ -3,6 +3,6 @@ mkdir -p lib
|
||||
cd lib
|
||||
git clone --depth 1 https://github.com/wmcbrine/PDCurses.git pdcurses
|
||||
#git clone --depth 1 https://github.com/universal-ctags/ctags.git ctags
|
||||
curl -R -O http://www.lua.org/ftp/lua-5.4.3.tar.gz
|
||||
tar zxf lua-5.4.3.tar.gz
|
||||
curl -R -O http://www.lua.org/ftp/lua-5.4.4.tar.gz
|
||||
tar zxf lua-5.4.4.tar.gz
|
||||
cd ../
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<PATCHLEVEL>0</PATCHLEVEL>
|
||||
<LUA_MAJOR_VERSION>5</LUA_MAJOR_VERSION>
|
||||
<LUA_MINOR_VERSION>4</LUA_MINOR_VERSION>
|
||||
<LUA_PATCH_LEVEL>3></LUA_PATCH_LEVEL>
|
||||
<LUA_PATCH_LEVEL>4></LUA_PATCH_LEVEL>
|
||||
<LUA_VERSION>$(LUA_MAJOR_VERSION).$(LUA_MINOR_VERSION).$(LUA_PATCH_LEVEL)</LUA_VERSION>
|
||||
<ADD_PACKAGE>true</ADD_PACKAGE>
|
||||
</PropertyGroup>
|
||||
|
||||
Reference in New Issue
Block a user