From ba296ab1eaeab5ab68c596f7723932788749c9c6 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Fri, 17 Jan 2014 18:47:35 +0100 Subject: lua: choice between 5.1.x & 5.2.x Signed-off-by: Francois Perrad Signed-off-by: Peter Korsgaard --- package/lua/5.1.5/lua-01-root-path.patch | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 package/lua/5.1.5/lua-01-root-path.patch (limited to 'package/lua/5.1.5/lua-01-root-path.patch') diff --git a/package/lua/5.1.5/lua-01-root-path.patch b/package/lua/5.1.5/lua-01-root-path.patch new file mode 100644 index 0000000000..fd0da6eb57 --- /dev/null +++ b/package/lua/5.1.5/lua-01-root-path.patch @@ -0,0 +1,30 @@ +Adjust installation location to /usr. + +Signed-off-by: Francois Perrad + +Index: b/etc/lua.pc +=================================================================== +--- a/etc/lua.pc ++++ b/etc/lua.pc +@@ -8,7 +8,7 @@ + R= 5.1.5 + + # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/' +-prefix= /usr/local ++prefix= /usr + INSTALL_BIN= ${prefix}/bin + INSTALL_INC= ${prefix}/include + INSTALL_LIB= ${prefix}/lib +Index: b/src/luaconf.h +=================================================================== +--- a/src/luaconf.h ++++ b/src/luaconf.h +@@ -94,7 +94,7 @@ + ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll" + + #else +-#define LUA_ROOT "/usr/local/" ++#define LUA_ROOT "/usr/" + #define LUA_LDIR LUA_ROOT "share/lua/5.1/" + #define LUA_CDIR LUA_ROOT "lib/lua/5.1/" + #define LUA_PATH_DEFAULT \ -- cgit v1.2.3