config BR2_PACKAGE_MOARVM
	bool "moarvm"
	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv
	depends on !BR2_STATIC_LIBS # libuv
	depends on BR2_USE_MMU # libuv
	depends on BR2_PACKAGE_LIBATOMIC_OPS_ARCH_SUPPORTS # libatomic_ops
	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv
	select BR2_PACKAGE_LIBUV
	select BR2_PACKAGE_LIBTOMMATH
	select BR2_PACKAGE_LIBATOMIC_OPS
	# dyncall does not work on riscv
	select BR2_PACKAGE_LIBFFI if BR2_riscv
	select BR2_PACKAGE_ZSTD
	help
	  Short for "Metamodel On A Runtime", MoarVM is a virtual
	  machine built especially for Rakudo Perl 6 and the NQP
	  Compiler Toolchain.

	  http://moarvm.com

comment "moarvm needs a toolchain w/ NPTL, dynamic library"
	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS
	depends on BR2_USE_MMU
	depends on BR2_PACKAGE_LIBATOMIC_OPS_ARCH_SUPPORTS
	depends on BR2_TOOLCHAIN_HAS_SYNC_4