diff options
author | Francois Perrad <fperrad@gmail.com> | 2012-07-17 10:18:28 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2012-07-17 21:19:36 +0200 |
commit | 641f5dcb764f63c086a23a2018aca952e83ef666 (patch) | |
tree | b12572a5bf1aaf9d130a746986247256dd493df9 /package/lua/lua-01-root-path.patch | |
parent | 2c7e9c50e9bef1c494ef90411a466ad320846b96 (diff) | |
download | buildroot-novena-641f5dcb764f63c086a23a2018aca952e83ef666.tar.gz buildroot-novena-641f5dcb764f63c086a23a2018aca952e83ef666.zip |
lua: refactor root path tuning
Use a patch rather than sed'ing files in the build process.
Signed-off-by: Francois Perrad <fperrad@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/lua/lua-01-root-path.patch')
-rw-r--r-- | package/lua/lua-01-root-path.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/package/lua/lua-01-root-path.patch b/package/lua/lua-01-root-path.patch index c5dbf3270..f82c9c5f0 100644 --- a/package/lua/lua-01-root-path.patch +++ b/package/lua/lua-01-root-path.patch @@ -1,5 +1,29 @@ Adjust installation location to /usr. +Remove version in module paths. +Signed-off-by: Francois Perrad <francois.perrad@gadz.org> + +Index: b/etc/lua.pc +=================================================================== +--- a/etc/lua.pc ++++ b/etc/lua.pc +@@ -8,13 +8,13 @@ + 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 + INSTALL_MAN= ${prefix}/man/man1 +-INSTALL_LMOD= ${prefix}/share/lua/${V} +-INSTALL_CMOD= ${prefix}/lib/lua/${V} ++INSTALL_LMOD= ${prefix}/share/lua ++INSTALL_CMOD= ${prefix}/lib/lua + + # canonical vars + exec_prefix=${prefix} Index: b/src/luaconf.h =================================================================== --- a/src/luaconf.h |