60797e98de576aa1d470c5a6b67950ac84ee54fa
[project/luci.git] / contrib / package / lua-luci / patches / 200-lua-path.patch
1 diff -ur lua-5.1.3/etc/lua.pc lua-5.1.3-new/etc/lua.pc
2 --- lua-5.1.3/etc/lua.pc        2008-01-11 14:12:59.000000000 +0100
3 +++ lua-5.1.3-new/etc/lua.pc    2008-05-18 22:09:24.000000000 +0200
4 @@ -8,7 +8,7 @@
5  R= 5.1.3
6
7  # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
8 -prefix= /usr/local
9 +prefix= /usr
10  INSTALL_BIN= ${prefix}/bin
11  INSTALL_INC= ${prefix}/include
12  INSTALL_LIB= ${prefix}/lib
13 diff -ur lua-5.1.3/Makefile lua-5.1.3-new/Makefile
14 --- lua-5.1.3/Makefile  2008-05-18 22:06:55.000000000 +0200
15 +++ lua-5.1.3-new/Makefile      2008-05-18 22:09:13.000000000 +0200
16 @@ -12,7 +12,7 @@
17  # doc directory.) You may want to make these paths consistent with LUA_ROOT,
18  # LUA_LDIR, and LUA_CDIR in luaconf.h (and also with etc/lua.pc).
19  #
20 -INSTALL_TOP= /usr/local
21 +INSTALL_TOP= /usr
22  INSTALL_BIN= $(INSTALL_TOP)/bin
23  INSTALL_INC= $(INSTALL_TOP)/include
24  INSTALL_LIB= $(INSTALL_TOP)/lib
25 diff -ur lua-5.1.3/src/luaconf.h lua-5.1.3-new/src/luaconf.h
26 --- lua-5.1.3/src/luaconf.h     2008-05-18 22:07:11.000000000 +0200
27 +++ lua-5.1.3-new/src/luaconf.h 2008-05-18 22:09:50.000000000 +0200
28 @@ -95,7 +95,7 @@
29         ".\\?.dll;"  LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
30
31  #else
32 -#define LUA_ROOT       "/usr/local/"
33 +#define LUA_ROOT       "/usr/"
34  #define LUA_LDIR       LUA_ROOT "share/lua/5.1/"
35  #define LUA_CDIR       LUA_ROOT "lib/lua/5.1/"
36  #define LUA_PATH_DEFAULT  \