diff options
author | Khem Raj <raj.khem@gmail.com> | 2013-01-18 18:31:31 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-01-22 13:18:23 +0100 |
commit | 055938e9f7bd7cdba1d5c560eee17f56049953ab (patch) | |
tree | 1bf072f2574d36739727a605a4ba4e924e65f79d /meta-oe/recipes-devtools | |
parent | 2942932a8bbc18115d8093a9e32cd85083a70635 (diff) | |
download | meta-openembedded-055938e9f7bd7cdba1d5c560eee17f56049953ab.tar.gz |
lua5.1: Fix multilib install
when we have multilib enabled then there are some hardcoded
assumptions in lua code which needs to be fixed some can
be fixed by simply passing right variable on cmdline for
the one's in sourcecode needs to be edited in place.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools')
-rw-r--r-- | meta-oe/recipes-devtools/lua/lua5.1_5.1.5.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/lua/lua5.1_5.1.5.bb b/meta-oe/recipes-devtools/lua/lua5.1_5.1.5.bb index 9da9e957a..f303d8711 100644 --- a/meta-oe/recipes-devtools/lua/lua5.1_5.1.5.bb +++ b/meta-oe/recipes-devtools/lua/lua5.1_5.1.5.bb | |||
@@ -4,6 +4,8 @@ LICENSE = "MIT" | |||
4 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=59bdd99bb82238f238cf5c65c21604fd" | 4 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=59bdd99bb82238f238cf5c65c21604fd" |
5 | HOMEPAGE = "http://www.lua.org/" | 5 | HOMEPAGE = "http://www.lua.org/" |
6 | 6 | ||
7 | PR = "r1" | ||
8 | |||
7 | DEPENDS += "readline" | 9 | DEPENDS += "readline" |
8 | SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz \ | 10 | SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz \ |
9 | file://bitwise_operators.patch \ | 11 | file://bitwise_operators.patch \ |
@@ -21,6 +23,7 @@ EXTRA_OEMAKE = "'CC=${CC} -fPIC' 'MYCFLAGS=${CFLAGS} -DLUA_USE_LINUX -fPIC' MYLD | |||
21 | 23 | ||
22 | do_configure_prepend() { | 24 | do_configure_prepend() { |
23 | sed -i -e s:/usr/local:${prefix}:g src/luaconf.h | 25 | sed -i -e s:/usr/local:${prefix}:g src/luaconf.h |
26 | sed -i -e s:lib/lua/5.1/:${base_libdir}/lua/5.1/:g src/luaconf.h | ||
24 | } | 27 | } |
25 | 28 | ||
26 | do_compile () { | 29 | do_compile () { |
@@ -34,6 +37,8 @@ do_install () { | |||
34 | 'INSTALL_INC=${D}${includedir}/' \ | 37 | 'INSTALL_INC=${D}${includedir}/' \ |
35 | 'INSTALL_MAN=${D}${mandir}/man1' \ | 38 | 'INSTALL_MAN=${D}${mandir}/man1' \ |
36 | 'INSTALL_SHARE=${D}${datadir}/lua' \ | 39 | 'INSTALL_SHARE=${D}${datadir}/lua' \ |
40 | 'INSTALL_LIB=${D}${libdir}' \ | ||
41 | 'INSTALL_CMOD=${D}${libdir}/lua/5.1' \ | ||
37 | install | 42 | install |
38 | install -d ${D}${libdir}/pkgconfig | 43 | install -d ${D}${libdir}/pkgconfig |
39 | install -m 0644 ${WORKDIR}/lua5.1.pc ${D}${libdir}/pkgconfig/lua5.1.pc | 44 | install -m 0644 ${WORKDIR}/lua5.1.pc ${D}${libdir}/pkgconfig/lua5.1.pc |