@@ -457,6 +457,7 @@ endif
source "package/lua/Config.in"
source "package/luainterpreter/Config.in"
source "package/luajit/Config.in"
+ source "package/lutok/Config.in"
if BR2_PACKAGE_HAS_LUAINTERPRETER && !BR2_STATIC_LIBS
# lua modules are dynamically loaded, so not available on static builds
menu "Lua libraries/modules"
new file mode 100644
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_LUTOK
+ bool "lutok"
+ depends on BR2_INSTALL_LIBSTDCPP
+ depends on BR2_PACKAGE_HAS_LUAINTERPRETER \
+ && !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
new file mode 100644
@@ -0,0 +1,2 @@
+# Locally computed
+sha256 2cec51efa0c8d65ace8b21eaa08384b77abc5087b46e785f78de1c21fb754cd5 lutok-0.4.tar.gz
new file mode 100644
@@ -0,0 +1,26 @@
+################################################################################
+#
+# 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
+LUTOK_CONF_OPTS = --without-doxygen
+LUTOK_LICENSE = BSD-3c
+LUTOK_LICENSE_FILES = COPYING
+
+ifeq ($(BR2_PACKAGE_ATF),y)
+LUTOK_DEPENDENCIES += atf
+LUTOK_CONF_OPTS += --with-atf
+else
+LUTOK_CONF_OPTS += --without-atf
+endif
+
+ifneq ($(BR2_STATIC_LIBS),y)
+LUTOK_MAKE_OPTS = LIBS=-ldl
+endif
+
+$(eval $(autotools-package))
Lutok is a lightweight C++ API library for Lua. https://github.com/jmmv/lutok Signed-off-by: Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com> --- Changes v2-> v3: - rebase suggested by Arnout Vandecapelle <arnout@mind.be>: - reworks comment in the Config.in for the required lua dependencies Changes v1 -> v2: suggested by Arnout Vandecapelle <arnout@mind.be>: - reworks lua dependencies, doesn't work with luajit - adds comment in the Config.in for the required lua dependencies - uses the release archive instead of the github automatic one - updates the hash - removes the useless AUTORECONF option - adds optional dependency on atf - don't generate the doxygen doc - changes the license --- package/Config.in | 1 + package/lutok/Config.in | 13 +++++++++++++ package/lutok/lutok.hash | 2 ++ package/lutok/lutok.mk | 26 ++++++++++++++++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 package/lutok/Config.in create mode 100644 package/lutok/lutok.hash create mode 100644 package/lutok/lutok.mk