Merge pull request 'added OpenBSD Patch and make it runable' (#1) from mrtuxa/me.fier.engine:master into master
Reviewed-on: #1
This commit is contained in:
commit
4e1052d5ee
54
patches/openbsd/generic.patch
Normal file
54
patches/openbsd/generic.patch
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
diff --git a/lua_translate b/lua_translate
|
||||||
|
index b16ab97..f79b4d0 100755
|
||||||
|
--- a/lua_translate
|
||||||
|
+++ b/lua_translate
|
||||||
|
@@ -23,9 +23,9 @@ functions = toml.loads(open("src/values/functions.toml").read())
|
||||||
|
ofile = open("src/lua.c","w")
|
||||||
|
|
||||||
|
ofile.write('''\
|
||||||
|
-#include <lua5.3/lua.h>
|
||||||
|
-#include <lua5.3/lualib.h>
|
||||||
|
-#include <lua5.3/lauxlib.h>
|
||||||
|
+#include <lua-5.3/lua.h>
|
||||||
|
+#include <lua-5.3/lualib.h>
|
||||||
|
+#include <lua-5.3/lauxlib.h>
|
||||||
|
lua_State * engine_lua_state;
|
||||||
|
#include "lua_manual.c"
|
||||||
|
|
||||||
|
diff --git a/run b/run
|
||||||
|
index 03605cc..5d58be7 100755
|
||||||
|
--- a/run
|
||||||
|
+++ b/run
|
||||||
|
@@ -1,5 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
./lua_translate
|
||||||
|
-gcc src/main.c -g -lSDL2 -llua5.3 -o engine -O3 -Werror -Wall
|
||||||
|
+egcc src/main.c -g -lSDL2 -llua5.3 -o engine -O3 -Werror -Wall -I /usr/local/include
|
||||||
|
exec ./engine
|
||||||
|
diff --git a/src/frontend/sdl/main.c b/src/frontend/sdl/main.c
|
||||||
|
index 74578e3..e644e57 100644
|
||||||
|
--- a/src/frontend/sdl/main.c
|
||||||
|
+++ b/src/frontend/sdl/main.c
|
||||||
|
@@ -131,4 +131,4 @@ void engine_window_destroy(struct ENGINE_WINDOW * window) {
|
||||||
|
engine_memory_free(window -> texture);
|
||||||
|
engine_memory_free(window -> fe_window);
|
||||||
|
engine_memory_free(window);
|
||||||
|
-}
|
||||||
|
\ No newline at end of file
|
||||||
|
+}
|
||||||
|
diff --git a/src/lua.c b/src/lua.c
|
||||||
|
index 00317da..eef8e43 100644
|
||||||
|
--- a/src/lua.c
|
||||||
|
+++ b/src/lua.c
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
-#include <lua5.3/lua.h>
|
||||||
|
-#include <lua5.3/lualib.h>
|
||||||
|
-#include <lua5.3/lauxlib.h>
|
||||||
|
+#include <lua-5.3/lua.h>
|
||||||
|
+#include <lua-5.3/lualib.h>
|
||||||
|
+#include <lua-5.3/lauxlib.h>
|
||||||
|
lua_State * engine_lua_state;
|
||||||
|
#include "lua_manual.c"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user