diff --git a/recipes/dev/luajit/recipe.toml b/recipes/dev/luajit/recipe.toml new file mode 100644 index 000000000..b8d7bf51e --- /dev/null +++ b/recipes/dev/luajit/recipe.toml @@ -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}-" +""" diff --git a/recipes/wip/dev/lang/luajit/redox.patch b/recipes/dev/luajit/redox.patch similarity index 100% rename from recipes/wip/dev/lang/luajit/redox.patch rename to recipes/dev/luajit/redox.patch diff --git a/recipes/wip/dev/lang/luajit/recipe.toml b/recipes/wip/dev/lang/luajit/recipe.toml deleted file mode 100644 index c2359afa7..000000000 --- a/recipes/wip/dev/lang/luajit/recipe.toml +++ /dev/null @@ -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 -"""