mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-22 02:26:11 +00:00
Port:Add Lua
This commit is contained in:
parent
1361721053
commit
5fa8858dfb
2
Ports/lua/.gitignore
vendored
Normal file
2
Ports/lua/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
lua
|
||||
lua-5.3.5.tar.gz
|
22
Ports/lua/lua.patch
Normal file
22
Ports/lua/lua.patch
Normal file
|
@ -0,0 +1,22 @@
|
|||
--- lua/src/Makefile 2018-06-25 13:46:36.000000000 -0400
|
||||
+++ /home/mustafa/src/lua/src/Makefile 2019-05-28 15:26:12.575719307 -0400
|
||||
@@ -4,15 +4,15 @@
|
||||
# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
|
||||
|
||||
# Your platform. See PLATS for possible values.
|
||||
-PLAT= none
|
||||
+PLAT= generic
|
||||
|
||||
-CC= gcc -std=gnu99
|
||||
+CC= i686-pc-serenity-gcc -std=gnu99
|
||||
CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)
|
||||
LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
|
||||
LIBS= -lm $(SYSLIBS) $(MYLIBS)
|
||||
|
||||
-AR= ar rcu
|
||||
-RANLIB= ranlib
|
||||
+AR= i686-pc-serenity-ar rcu
|
||||
+RANLIB= i686-pc-serenity-ranlib
|
||||
RM= rm -f
|
||||
|
||||
SYSCFLAGS=
|
19
Ports/lua/lua.sh
Executable file
19
Ports/lua/lua.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
PORT_DIR=lua
|
||||
MAKEOPTS='generic'
|
||||
function fetch() {
|
||||
run_fetch_web "http://www.lua.org/ftp/lua-5.3.5.tar.gz"
|
||||
run_patch lua.patch -p1
|
||||
}
|
||||
|
||||
function run_make() {
|
||||
run_command make $MAKEOPTS "$@"
|
||||
}
|
||||
|
||||
function build() {
|
||||
run_make
|
||||
}
|
||||
function install() {
|
||||
run_make_install DESTDIR="$SERENITY_ROOT"/Root
|
||||
}
|
||||
source ../.port_include.sh
|
Loading…
Reference in a new issue