mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-11-06 04:27:45 +08:00
Recipe for Lua
This commit is contained in:
parent
f1e261f868
commit
edf6930cb5
15
recipes/lua/patch
Normal file
15
recipes/lua/patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff -rupN lua/src/Makefile lua-redox/src/Makefile
|
||||
--- lua/src/Makefile 2015-05-27 04:10:11.000000000 -0700
|
||||
+++ lua-redox/src/Makefile 2016-07-27 18:08:54.167232304 -0700
|
||||
@@ -4,9 +4,9 @@
|
||||
# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
|
||||
|
||||
# Your platform. See PLATS for possible values.
|
||||
-PLAT= none
|
||||
+PLAT= posix
|
||||
|
||||
-CC= gcc -std=gnu99
|
||||
+CC:= $(CC) -std=gnu99
|
||||
CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)
|
||||
LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
|
||||
LIBS= -lm $(SYSLIBS) $(MYLIBS)
|
||||
34
recipes/lua/recipe.sh
Normal file
34
recipes/lua/recipe.sh
Normal file
@ -0,0 +1,34 @@
|
||||
VERSION=5.3.1
|
||||
SRC=http://www.lua.org/ftp/lua-$VERSION.tar.gz
|
||||
DIR=lua-$VERSION
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
return 1
|
||||
}
|
||||
|
||||
function recipe_update {
|
||||
echo "skipping update"
|
||||
return 1
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
make generic
|
||||
return 1
|
||||
}
|
||||
|
||||
function recipe_test {
|
||||
echo "skipping test"
|
||||
return 1
|
||||
}
|
||||
|
||||
function recipe_clean {
|
||||
make clean
|
||||
return 1
|
||||
}
|
||||
|
||||
function recipe_stage {
|
||||
mkdir -pv "$1/bin"
|
||||
cp src/lua src/luac "$1/bin"
|
||||
return 1
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user