4a09e9b54f
This patch introduces the luainterpreter virtual package, which is provided either by 'lua' or by 'lua-jit'. Packages that require a Lua interpreter can then depend on BR2_PACKAGE_LUAINTERPRETER (in their Config.in) and luainterpreter (in their .mk). Signed-off-by: Francois Perrad <francois.perrad@gadz.org> [yann.morin.1998@free.fr: switch to package-defined providers, apply Thomas' comments] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
20 lines
600 B
Makefile
20 lines
600 B
Makefile
################################################################################
|
|
#
|
|
# luaposix
|
|
#
|
|
################################################################################
|
|
|
|
LUAPOSIX_VERSION = 31
|
|
LUAPOSIX_SITE = https://github.com/luaposix/luaposix/archive
|
|
LUAPOSIX_SOURCE = release-v$(LUAPOSIX_VERSION).tar.gz
|
|
LUAPOSIX_LICENSE = MIT
|
|
LUAPOSIX_LICENSE_FILES = COPYING
|
|
LUAPOSIX_DEPENDENCIES = luainterpreter host-lua
|
|
LUAPOSIX_CONF_OPT = --libdir="/usr/lib/lua" --datarootdir="/usr/share/lua"
|
|
|
|
ifeq ($(BR2_PACKAGE_NCURSES),y)
|
|
LUAPOSIX_DEPENDENCIES += ncurses
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|