diff options
Diffstat (limited to 'data/_lua5.3/toolchain.diff')
-rw-r--r-- | data/_lua5.3/toolchain.diff | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/data/_lua5.3/toolchain.diff b/data/_lua5.3/toolchain.diff new file mode 100644 index 000000000..6816cf8c1 --- /dev/null +++ b/data/_lua5.3/toolchain.diff @@ -0,0 +1,111 @@ +diff -ur lua-5.3.5/Makefile lua-5.3.5+iPhone/Makefile +--- lua-5.3.5/Makefile 2016-12-20 06:26:08.000000000 -1000 ++++ lua-5.3.5+iPhone/Makefile 2019-04-08 22:32:10.000000000 -1000 +@@ -10,7 +10,8 @@ + # so take care if INSTALL_TOP is not an absolute path. See the local target. + # You may want to make INSTALL_LMOD and INSTALL_CMOD consistent with + # LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h. +-INSTALL_TOP= /usr/local ++PREFIX= /usr ++INSTALL_TOP?= $(DESTDIR)/$(PREFIX) + INSTALL_BIN= $(INSTALL_TOP)/bin +-INSTALL_INC= $(INSTALL_TOP)/include ++INSTALL_INC= $(INSTALL_TOP)/include/lua$(V) + INSTALL_LIB= $(INSTALL_TOP)/lib +@@ -36,17 +37,21 @@ + # == END OF USER SETTINGS -- NO NEED TO CHANGE ANYTHING BELOW THIS LINE ======= + + # Convenience platforms targets. +-PLATS= aix bsd c89 freebsd generic linux macosx mingw posix solaris ++PLATS= aix bsd c89 freebsd generic linux macosx ios mingw posix solaris + + # What to install. +-TO_BIN= lua luac ++TO_BIN= lua$(V) luac$(V) + TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp +-TO_LIB= liblua.a + TO_MAN= lua.1 luac.1 ++TO_LIB= liblua$(V).dylib + + # Lua version and release. +-V= 5.3 +-R= $V.4 ++R= $V.5 ++VERSION_MAJOR=$(word 1,$(subst ., ,$(PKG_VRSN))) ++VERSION_MINOR=$(word 2,$(subst ., ,$(PKG_VRSN))) ++V= $(VERSION_MAJOR).$(VERSION_MINOR) ++R=$(word 3,$(subst ., ,$(PKG_VRSN))) ++export VERSION_MAJOR VERSION_MINOR V R + + # Targets start here. + all: $(PLAT) +diff -ur lua-5.3.5/src/Makefile lua-5.3.5+iPhone/src/Makefile +--- lua-5.3.5/src/Makefile 2018-06-25 07:46:36.000000000 -1000 ++++ lua-5.3.5+iPhone/src/Makefile 2019-04-08 22:32:23.000000000 -1000 +@@ -26,9 +26,10 @@ + + # == END OF USER SETTINGS -- NO NEED TO CHANGE ANYTHING BELOW THIS LINE ======= + +-PLATS= aix bsd c89 freebsd generic linux macosx mingw posix solaris ++PLATS= aix bsd c89 freebsd generic linux macosx ios mingw posix solaris + + LUA_A= liblua.a ++LUA_DYLIB= liblua$(V).dylib + CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \ + lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o \ + ltm.o lundump.o lvm.o lzio.o +@@ -36,15 +37,16 @@ + lmathlib.o loslib.o lstrlib.o ltablib.o lutf8lib.o loadlib.o linit.o + BASE_O= $(CORE_O) $(LIB_O) $(MYOBJS) + +-LUA_T= lua ++LUA_T= lua$(V) + LUA_O= lua.o + +-LUAC_T= luac ++LUAC_T= luac$(V) + LUAC_O= luac.o + + ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O) +-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) ++ALL_T= $(LUA_DYLIB) $(LUA_T) $(LUAC_T) + ALL_A= $(LUA_A) ++ALL_DYLIB= $(LUA_DYLIB) + + # Targets start here. + default: $(PLAT) +@@ -55,15 +57,20 @@ + + a: $(ALL_A) + ++dylib: $(ALL_DYLIB) ++ + $(LUA_A): $(BASE_O) + $(AR) $@ $(BASE_O) + $(RANLIB) $@ + +-$(LUA_T): $(LUA_O) $(LUA_A) +- $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS) ++$(LUA_DYLIB): $(BASE_O) ++ $(CC) -dynamiclib -install_name $(PREFIX)/lib/$@ -compatibility_version $(V) -current_version $(V).$(R) -o $@ $^ ++ ++$(LUA_T): $(LUA_O) $(LUA_DYLIB) ++ $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_DYLIB) $(LIBS) + +-$(LUAC_T): $(LUAC_O) $(LUA_A) +- $(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS) ++$(LUAC_T): $(LUAC_O) $(LUA_DYLIB) ++ $(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(LUA_DYLIB) $(LIBS) + + clean: + $(RM) $(ALL_T) $(ALL_O) +@@ -112,6 +119,9 @@ + macosx: + $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX" SYSLIBS="-lreadline" + ++ios: ++ $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX" SYSLIBS="-lreadline" ++ + mingw: + $(MAKE) "LUA_A=lua53.dll" "LUA_T=lua.exe" \ + "AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \ |