diff options
author | Mustafa Ali CAN <mustafaali0732@gmail.com> | 2019-05-29 07:07:34 -0400 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-29 16:03:51 +0200 |
commit | 5fa8858dfb36612da72e9ce453159c0ee09af093 (patch) | |
tree | 48a66361bea3b8780bb5d4e8f0ad32eee52c0508 | |
parent | 13617210530dcc1809bbc175be5fda5352957ace (diff) | |
download | serenity-5fa8858dfb36612da72e9ce453159c0ee09af093.zip |
Port:Add Lua
-rw-r--r-- | Ports/lua/.gitignore | 2 | ||||
-rw-r--r-- | Ports/lua/lua.patch | 22 | ||||
-rwxr-xr-x | Ports/lua/lua.sh | 19 |
3 files changed, 43 insertions, 0 deletions
diff --git a/Ports/lua/.gitignore b/Ports/lua/.gitignore new file mode 100644 index 0000000000..1eb2ac7edf --- /dev/null +++ b/Ports/lua/.gitignore @@ -0,0 +1,2 @@ +lua +lua-5.3.5.tar.gz
\ No newline at end of file diff --git a/Ports/lua/lua.patch b/Ports/lua/lua.patch new file mode 100644 index 0000000000..fe15f963e5 --- /dev/null +++ b/Ports/lua/lua.patch @@ -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= diff --git a/Ports/lua/lua.sh b/Ports/lua/lua.sh new file mode 100755 index 0000000000..5fb21a7158 --- /dev/null +++ b/Ports/lua/lua.sh @@ -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 |