aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2010-10-03 02:11:22 +0000
committerEric Bénard <eric@eukrea.com>2010-10-04 21:57:26 +0200
commit996f7110f8bffa21e7aeab0d67d58df6fb5035b9 (patch)
treecf8a832313ca5a7fecfbc096910f23018f42ac44
parent80ff6c590f1ece6b6c1652ed345c93b4739a363f (diff)
downloadopenembedded-996f7110f8bffa21e7aeab0d67d58df6fb5035b9.zip
openembedded-996f7110f8bffa21e7aeab0d67d58df6fb5035b9.tar.gz
openembedded-996f7110f8bffa21e7aeab0d67d58df6fb5035b9.tar.bz2
lua-rs232: add new recipe
Signed-off-by: Petr Štetiar <ynezz@true.cz> Signed-off-by: Eric Bénard <eric@eukrea.com>
-rw-r--r--recipes/lua/lua-rs232_1.0.0.bb26
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes/lua/lua-rs232_1.0.0.bb b/recipes/lua/lua-rs232_1.0.0.bb
new file mode 100644
index 0000000..c11e3ac
--- /dev/null
+++ b/recipes/lua/lua-rs232_1.0.0.bb
@@ -0,0 +1,26 @@
+DESCRIPTION = "Lua bindings for librs232 - library for serial communications over RS-232 (serial port)"
+HOMEPAGE = "http://github.com/ynezz/librs232"
+LICENSE = "MIT"
+
+DEPENDS += "lua5.1"
+RDEPENDS_${PN} += "librs232"
+
+SRC_URI = "git://github.com/ynezz/librs232.git;protocol=git"
+
+SRCREV = "ecad1e03104bc9bf348e0c5e571660f270c86421"
+S = "${WORKDIR}/git/"
+
+inherit autotools
+
+LUA_LIB_DIR = "/usr/local/lib/lua/5.1"
+LUA_LIB = "luars232.so"
+
+PACKAGES = "${PN} ${PN}-dbg"
+FILES_${PN} = "${LUA_LIB_DIR}/${LUA_LIB}"
+FILES_${PN}-dbg = "${LUA_LIB_DIR}/.debug/${LUA_LIB}"
+
+do_install_append() {
+ install -d ${D}${LUA_LIB_DIR}/.debug
+ install -m 0644 ${D}${libdir}/${LUA_LIB} ${D}${LUA_LIB_DIR}/${LUA_LIB}
+ install -m 0644 ${D}${libdir}/${LUA_LIB} ${D}${LUA_LIB_DIR}/.debug/${LUA_LIB}
+}