Commit 4dca0e84 authored by Felix Paul Kühne's avatar Felix Paul Kühne

contrib/lua: added support for iOS

parent 9d0a7c47
diff -ru lua/Makefile lua-f/Makefile
--- lua/Makefile 2008-08-12 02:40:48.000000000 +0200
+++ lua-f/Makefile 2012-03-21 13:58:30.000000000 +0100
@@ -38,7 +38,7 @@
# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
# Convenience platforms targets.
-PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
+PLATS= aix ansi bsd freebsd generic linux ios macosx mingw posix solaris
# What to install.
TO_BIN= lua luac
diff -ru lua/src/Makefile lua-f/src/Makefile
--- lua/src/Makefile 2012-03-21 13:58:59.000000000 +0100
+++ lua-f/src/Makefile 2012-03-21 13:57:08.000000000 +0100
@@ -98,6 +98,9 @@
linux:
$(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl"
+ios:
+ $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX
+
macosx:
$(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-lreadline"
# use this on Mac OS X 10.3-
...@@ -14,6 +14,9 @@ endif ...@@ -14,6 +14,9 @@ endif
ifdef HAVE_MACOSX ifdef HAVE_MACOSX
LUA_TARGET := macosx LUA_TARGET := macosx
endif endif
ifdef HAVE_IOS
LUA_TARGET := ios
endif
ifdef HAVE_WIN32 ifdef HAVE_WIN32
LUA_TARGET := mingw LUA_TARGET := mingw
endif endif
...@@ -34,12 +37,15 @@ lua: lua-$(LUA_VERSION).tar.gz .sum-lua ...@@ -34,12 +37,15 @@ lua: lua-$(LUA_VERSION).tar.gz .sum-lua
$(APPLY) $(SRC)/lua/lua-noreadline.patch $(APPLY) $(SRC)/lua/lua-noreadline.patch
$(APPLY) $(SRC)/lua/luac-32bits.patch $(APPLY) $(SRC)/lua/luac-32bits.patch
$(APPLY) $(SRC)/lua/no-localeconv.patch $(APPLY) $(SRC)/lua/no-localeconv.patch
ifdef HAVE_MACOSX ifdef HAVE_DARWIN_OS
(cd $(UNPACK_DIR) && \ (cd $(UNPACK_DIR) && \
sed -e 's%gcc%$(CC)%' \ sed -e 's%gcc%$(CC)%' \
-e 's%LDFLAGS=%LDFLAGS=$(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)%' \ -e 's%LDFLAGS=%LDFLAGS=$(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)%' \
-i.orig src/Makefile) -i.orig src/Makefile)
endif endif
ifdef HAVE_IOS
$(APPLY) $(SRC)/lua/lua-ios-support.patch
endif
ifdef HAVE_WIN32 ifdef HAVE_WIN32
cd $(UNPACK_DIR) && sed -i.orig -e 's/lua luac/lua.exe/' Makefile cd $(UNPACK_DIR) && sed -i.orig -e 's/lua luac/lua.exe/' Makefile
endif endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment