lua5.4, revbump, adjust paths (#10663)

This commit is contained in:
Schrijvers Luc
2024-07-08 10:02:45 +02:00
committed by GitHub
parent bf707c6229
commit 382a77dde2
2 changed files with 42 additions and 59 deletions

View File

@@ -7,7 +7,7 @@ collection, making it ideal for configuration, scripting, and rapid prototyping.
HOMEPAGE="https://www.lua.org/"
COPYRIGHT="1994-2023 Lua.org, PUC-Rio"
LICENSE="MIT"
REVISION="1"
REVISION="2"
SOURCE_URI="http://www.lua.org/ftp/lua-$portVersion.tar.gz"
CHECKSUM_SHA256="9fbf5e28ef86c69858f6d3d34eccc32e911c1a28b4120ff3e84aaa70cfbf1e30"
PATCHES="lua-$portVersion.patchset"
@@ -58,14 +58,10 @@ BUILD_PREREQUIRES="
BUILD()
{
if [ $effectiveTargetArchitecture = x86_gcc2 ]; then
GCC2_CFLAG="-DLUA_NOBUILTIN=1"
fi
make haiku MYCFLAGS="-DLUA_ROOT='\"`finddir B_SYSTEM_DIRECTORY`/\"' \
-DLUA_LDIR='\"`finddir B_SYSTEM_DATA_DIRECTORY`/lua/$libVersion/\"' \
-DLUA_EXEC_DIR='\"`finddir B_SYSTEM_BIN_DIRECTORY`/\"' \
$GCC2_CFLAG" LUA_T="lua$libVersion" LUAC_T="luac$libVersion" \
-DLUA_USER_ROOT='\"`finddir B_USER_NONPACKAGED_DIRECTORY`/\"' \
-DLUA_LDIR='\"`finddir B_SYSTEM_DATA_DIRECTORY`/lua/$libVersion/\"'" \
LUA_T="lua$libVersion" LUAC_T="luac$libVersion" \
LUA_SO="liblua.so.$libVersion"
}