mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-25 22:34:18 +08:00
LuaJIT dynamic recipe
This commit is contained in:
parent
9c54dacdf3
commit
f84c756c0e
16
recipes/dev/luajit/recipe.toml
Normal file
16
recipes/dev/luajit/recipe.toml
Normal file
@ -0,0 +1,16 @@
|
||||
[source]
|
||||
git = "https://luajit.org/git/luajit.git"
|
||||
rev = "a4f56a459a588ae768801074b46ba0adcfb49eb1"
|
||||
patches = ["redox.patch"]
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
|
||||
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
|
||||
|
||||
${COOKBOOK_MAKE} -j ${COOKBOOK_MAKE_JOBS} install \
|
||||
PREFIX="${COOKBOOK_STAGE}" \
|
||||
TARGET_SYS='Redox' \
|
||||
CROSS="${TARGET}-"
|
||||
"""
|
||||
@ -1,25 +0,0 @@
|
||||
#TODO remove -DLUAJIT_SECURITY_MCODE=0
|
||||
[source]
|
||||
# LuaJIT is only available as a rolling release
|
||||
git = "https://luajit.org/git/luajit.git"
|
||||
rev = "2090842410e0ba6f81fad310a77bf5432488249a"
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
|
||||
|
||||
# Cookbook doesn't apply patches to git repositiories (so we do it manually)
|
||||
# The patch is applied so that LUAJIT_OS is set to LUAJIT_OS_POSIX without
|
||||
# redefinition warnings
|
||||
git apply "${COOKBOOK_RECIPE}/redox.patch"
|
||||
|
||||
${COOKBOOK_MAKE} -j ${COOKBOOK_MAKE_JOBS} install \
|
||||
PREFIX="${COOKBOOK_STAGE}" \
|
||||
BUILDMODE='static' \
|
||||
TARGET_SYS='Redox' \
|
||||
XCFLAGS='-DLUAJIT_SECURITY_MCODE=0' \
|
||||
CROSS="${TARGET}-"
|
||||
|
||||
cd "${COOKBOOK_STAGE}"/bin && ln -s luajit-2.1.* luajit
|
||||
"""
|
||||
Loading…
Reference in New Issue
Block a user