config BR2_PACKAGE_LUAPOSIX
	bool "luaposix"
	depends on BR2_PACKAGE_HAS_LUAINTERPRETER
	depends on !BR2_PACKAGE_LUA_5_3
	select BR2_PACKAGE_NCURSES
	select BR2_PACKAGE_LUABITOP if BR2_PACKAGE_LUA_5_1
	# LuaBitOp is already included in LuaJIT
	help
	  luaposix is a POSIX binding, including curses, for Lua 5.1
	  and 5.2; Like most libraries it simply binds to C APIs on
	  the underlying system, so it won't work on a non-POSIX
	  system. However, it does try to detect the level of POSIX
	  conformance of the underlying system and bind only available
	  APIs

	  https://github.com/luaposix/luaposix

comment "luaposix needs a Lua 5.1/5.2 interpreter"
	depends on BR2_PACKAGE_LUA_5_3
