aboutsummaryrefslogtreecommitdiff
path: root/recipes/lua/lua-lanes_2.0.6.bb
blob: 49ceb9c1424bb4c48bd5e06287576ab41a18f3a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
DESCRIPTION = "Lua Lanes is a Lua extension library providing the possibility to run multiple Lua states in parallel."
LICENSE = "MIT"
HOMEPAGE = "http://kotisivu.dnainternet.net/askok/bin/lanes/index.html"

DEPENDS += "lua5.1-native"
RDEPENDS_${PN} += "lua5.1"

PR = "r0"
S = "${WORKDIR}/lanes-${PV}"

SRC_URI = "http://luaforge.net/frs/download.php/4652/lanes-2.0.6.tgz \
           file://makefile.patch \
           file://0001-fix-LanesTimer-inifinite-thread-GC.patch \
          "

UCLIBC_PATCHES = "file://uclibc.patch"
SRC_URI_append_linux-uclibc = "${UCLIBC_PATCHES}"
SRC_URI_append_linux-uclibceabi = "${UCLIBC_PATCHES}"

LUA_LIB_DIR =  "${libdir}/lua/5.1"
LUA_SHARE_DIR = "${datadir}/lua/5.1"

PACKAGES = "${PN} ${PN}-dbg"
FILES_${PN} = "${LUA_LIB_DIR}/lua51-lanes.so ${LUA_SHARE_DIR}/lanes.lua"
FILES_${PN}-dbg = "${LUA_LIB_DIR}/.debug/lua51-lanes.so"

EXTRA_OEMAKE = "MYFLAGS='${CFLAGS} ${LDFLAGS}'"

do_install() {
	oe_runmake install DESTDIR='${D}/usr' 
}

SRC_URI[md5sum] = "1716bdf138fcc65b7069aaad864da677"
SRC_URI[sha256sum] = "7b07fa1c21749981ec0addcf8e9e85acfca91efe8d3f64982a6ac0bc6a615e70"