1config BR2_PACKAGE_LUVI
2	bool "luvi"
3	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv
4	depends on BR2_USE_MMU # libuv
5	depends on !BR2_STATIC_LIBS # libuv
6	depends on BR2_PACKAGE_LUAJIT
7	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv
8	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libuv
9	select BR2_PACKAGE_LIBUV
10	select BR2_PACKAGE_LUV
11	select BR2_PACKAGE_LIBOPENSSL_ENABLE_DES if BR2_PACKAGE_LIBOPENSSL
12	help
13	  A project in-between luv and luvit. The goal of this is to
14	  make building luvit and derivatives much easier.
15
16	  luvi extends LuaJIT with asynchronous I/O and several optional
17	  modules to run Lua applications and build self-contained
18	  binaries on systems that don't have a compiler.
19
20	  The luvi core can be extended with several Lua modules by
21	  adding its bundled Lua binding libraries.
22	  To get the Lua module...
23	    * 'rex' select PCRE (BR2_PACKAGE_PCRE)
24	    * 'ssl' select OpenSSL (BR2_PACKAGE_OPENSSL)
25	    * 'zlib' select zlib (BR2_PACKAGE_ZLIB)
26
27	  https://github.com/luvit/luvi
28
29comment "luvi needs a toolchain w/ NPTL, dynamic library, gcc >= 4.9"
30	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS \
31		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
32	depends on BR2_USE_MMU
33	depends on BR2_TOOLCHAIN_HAS_SYNC_4
34
35comment "luvi needs LuaJIT"
36	depends on !BR2_PACKAGE_LUAJIT
37