[oe-commits] Petr Štetiar : lua5.1: use standard prefix for Lua libraries

git version control git at git.openembedded.org
Thu Oct 21 01:34:16 UTC 2010


Module: openembedded.git
Branch: master
Commit: 4292ef191122b77b7d1890b74ab988e8c1f58615
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=4292ef191122b77b7d1890b74ab988e8c1f58615

Author: Petr Štetiar <ynezz at true.cz>
Date:   Wed Oct 20 16:23:20 2010 -0700

lua5.1: use standard prefix for Lua libraries

In default configuration Lua uses wrong /usr/local/{lib,share} in it's
module/script search path. This patch change it to the usage of the standard
/usr/{lib,share} directories.

Signed-off-by: Petr Štetiar <ynezz at true.cz>
Signed-off-by: Khem Raj <raj.khem at gmail.com>

---

 recipes/lua/lua5.1_5.1.4.bb |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/recipes/lua/lua5.1_5.1.4.bb b/recipes/lua/lua5.1_5.1.4.bb
index ba2f8b9..e3d56fd 100644
--- a/recipes/lua/lua5.1_5.1.4.bb
+++ b/recipes/lua/lua5.1_5.1.4.bb
@@ -4,7 +4,7 @@ LICENSE = "MIT"
 HOMEPAGE = "http://www.lua.org/"
 
 DEPENDS += "readline"
-PR = "r7"
+PR = "r8"
 SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz \
            file://bitwise_operators.patch \
            file://lua5.1.pc \
@@ -20,6 +20,10 @@ SRC_URI_append_linux-uclibceabi = "${UCLIBC_PATCHES}"
 TARGET_CC_ARCH += " -fPIC ${LDFLAGS}"
 EXTRA_OEMAKE = "'CC=${CC} -fPIC' 'MYCFLAGS=${CFLAGS} -DLUA_USE_LINUX -fPIC' MYLDFLAGS='${LDFLAGS}'"
 
+do_configure_prepend() {                                                                                                                                     
+	sed -i -e s:/usr/local:${prefix}:g src/luaconf.h
+}
+
 do_compile () {
 	cp ${WORKDIR}/lua5.1.pc ${S}/
 	oe_runmake linux





More information about the Openembedded-commits mailing list