diff options
Diffstat (limited to 'meta-oe/recipes-devtools/lua/lua5.1_5.1.4.bb')
| -rw-r--r-- | meta-oe/recipes-devtools/lua/lua5.1_5.1.4.bb | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/lua/lua5.1_5.1.4.bb b/meta-oe/recipes-devtools/lua/lua5.1_5.1.4.bb new file mode 100644 index 0000000000..06c800496d --- /dev/null +++ b/meta-oe/recipes-devtools/lua/lua5.1_5.1.4.bb | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | DESCRIPTION = "Lua is a powerful light-weight programming language designed \ | ||
| 2 | for extending applications." | ||
| 3 | LICENSE = "MIT" | ||
| 4 | HOMEPAGE = "http://www.lua.org/" | ||
| 5 | |||
| 6 | DEPENDS += "readline" | ||
| 7 | PR = "r10" | ||
| 8 | SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz \ | ||
| 9 | file://bitwise_operators.patch \ | ||
| 10 | file://lua5.1.pc \ | ||
| 11 | " | ||
| 12 | S = "${WORKDIR}/lua-${PV}" | ||
| 13 | |||
| 14 | inherit pkgconfig binconfig | ||
| 15 | |||
| 16 | UCLIBC_PATCHES += "file://uclibc-pthread.patch" | ||
| 17 | SRC_URI_append_libc-uclibc = "${UCLIBC_PATCHES}" | ||
| 18 | |||
| 19 | TARGET_CC_ARCH += " -fPIC ${LDFLAGS}" | ||
| 20 | EXTRA_OEMAKE = "'CC=${CC} -fPIC' 'MYCFLAGS=${CFLAGS} -DLUA_USE_LINUX -fPIC' MYLDFLAGS='${LDFLAGS}'" | ||
| 21 | |||
| 22 | do_configure_prepend() { | ||
| 23 | sed -i -e s:/usr/local:${prefix}:g src/luaconf.h | ||
| 24 | } | ||
| 25 | |||
| 26 | do_compile () { | ||
| 27 | oe_runmake linux | ||
| 28 | } | ||
| 29 | |||
| 30 | do_install () { | ||
| 31 | oe_runmake \ | ||
| 32 | 'INSTALL_TOP=${D}${prefix}' \ | ||
| 33 | 'INSTALL_BIN=${D}${bindir}' \ | ||
| 34 | 'INSTALL_INC=${D}${includedir}/' \ | ||
| 35 | 'INSTALL_MAN=${D}${mandir}/man1' \ | ||
| 36 | 'INSTALL_SHARE=${D}${datadir}/lua' \ | ||
| 37 | install | ||
| 38 | install -d ${D}${libdir}/pkgconfig | ||
| 39 | install -m 0644 ${WORKDIR}/lua5.1.pc ${D}${libdir}/pkgconfig/lua5.1.pc | ||
| 40 | } | ||
| 41 | NATIVE_INSTALL_WORKS = 1 | ||
| 42 | BBCLASSEXTEND = "native" | ||
| 43 | |||
| 44 | SRC_URI[md5sum] = "d0870f2de55d59c1c8419f36e8fac150" | ||
| 45 | SRC_URI[sha256sum] = "b038e225eaf2a5b57c9bcc35cd13aa8c6c8288ef493d52970c9545074098af3a" | ||
