aboutsummaryrefslogtreecommitdiff
path: root/package/lutok
diff options
context:
space:
mode:
authorGravatar Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com>2015-06-11 18:51:32 -0400
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-06-12 21:41:41 +0200
commit7c8744a2095a46b86f9b00a6346bba108036fe58 (patch)
treedc1dcb95d9b6755fd31d3fde0613390bf9fe33f1 /package/lutok
parent1f2a7b54edfcb7c052033c7ffa0ba9dd81d7f218 (diff)
downloadbuildroot-7c8744a2095a46b86f9b00a6346bba108036fe58.tar.gz
buildroot-7c8744a2095a46b86f9b00a6346bba108036fe58.tar.bz2
lutok: new package
Lutok is a lightweight C++ API library for Lua. https://github.com/jmmv/lutok [Thomas: - move lutok inclusion in package/Config.in after including the Lua external modules - add a comment explaining why we are passing --without-atf - remove the logic around -ldl, it seems to build just fine without it.] Signed-off-by: Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/lutok')
-rw-r--r--package/lutok/Config.in13
-rw-r--r--package/lutok/lutok.hash2
-rw-r--r--package/lutok/lutok.mk16
3 files changed, 31 insertions, 0 deletions
diff --git a/package/lutok/Config.in b/package/lutok/Config.in
new file mode 100644
index 0000000000..d6c87cf586
--- /dev/null
+++ b/package/lutok/Config.in
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_LUTOK
+ bool "lutok"
+ depends on BR2_INSTALL_LIBSTDCPP
+ depends on BR2_PACKAGE_HAS_LUAINTERPRETER
+ depends on !BR2_PACKAGE_LUAJIT
+ help
+ Lutok is a lightweight C++ API library for Lua.
+
+ https://github.com/jmmv/lutok
+
+comment "lutok needs a toolchain w/ C++ and full Lua"
+ depends on !BR2_INSTALL_LIBSTDCPP || BR2_PACKAGE_LUAJIT
+ depends on BR2_PACKAGE_HAS_LUAINTERPRETER
diff --git a/package/lutok/lutok.hash b/package/lutok/lutok.hash
new file mode 100644
index 0000000000..0ec8988073
--- /dev/null
+++ b/package/lutok/lutok.hash
@@ -0,0 +1,2 @@
+# Locally computed
+sha256 2cec51efa0c8d65ace8b21eaa08384b77abc5087b46e785f78de1c21fb754cd5 lutok-0.4.tar.gz
diff --git a/package/lutok/lutok.mk b/package/lutok/lutok.mk
new file mode 100644
index 0000000000..6ee198b402
--- /dev/null
+++ b/package/lutok/lutok.mk
@@ -0,0 +1,16 @@
+################################################################################
+#
+# lutok
+#
+################################################################################
+
+LUTOK_VERSION = 0.4
+LUTOK_SITE = https://github.com/jmmv/lutok/releases/download/lutok-$(LUTOK_VERSION)
+LUTOK_INSTALL_STAGING = YES
+LUTOK_DEPENDENCIES = host-pkgconf lua
+# --without-atf disables the atf-based lutok tests
+LUTOK_CONF_OPTS = --without-doxygen --without-atf
+LUTOK_LICENSE = BSD-3c
+LUTOK_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))