From c1340512ff3ff6fa2ceba4f35b29258b5abe8408 Mon Sep 17 00:00:00 2001 From: Scott McCreary Date: Wed, 30 Jul 2008 17:05:16 +0000 Subject: [PATCH] Patch to add Haiku as a target platform for lua --- dev-lang/lua/lua-5.1.3-haiku.diff | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dev-lang/lua/lua-5.1.3-haiku.diff diff --git a/dev-lang/lua/lua-5.1.3-haiku.diff b/dev-lang/lua/lua-5.1.3-haiku.diff new file mode 100644 index 000000000..77d923c3e --- /dev/null +++ b/dev-lang/lua/lua-5.1.3-haiku.diff @@ -0,0 +1,34 @@ +diff -urN lua-5.1.3/Makefile lua-5.1.3-haiku/Makefile +--- lua-5.1.3/Makefile 2008-01-17 17:53:37.000000000 +0000 ++++ lua-5.1.3-haiku/Makefile 2008-07-24 20:31:06.000000000 +0000 +@@ -33,7 +33,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 haiku linux macosx mingw posix solaris + + # What to install. + TO_BIN= lua luac +diff -urN lua-5.1.3/src/Makefile lua-5.1.3-haiku/src/Makefile +--- lua-5.1.3/src/Makefile 2008-01-19 19:37:58.000000000 +0000 ++++ lua-5.1.3-haiku/src/Makefile 2008-07-24 20:19:12.000000000 +0000 +@@ -20,7 +20,7 @@ + + # == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE ========= + +-PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris ++PLATS= aix ansi bsd freebsd generic haiku linux macosx mingw posix solaris + + LUA_A= liblua.a + CORE_O= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \ +@@ -95,6 +95,9 @@ + generic: + $(MAKE) all MYCFLAGS= + ++haiku: ++ $(MAKE) all MYCFLAGS="-DLUA_ANSI" LIBS=$(MYLIBS) ++ + linux: + $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" +