config BR2_PACKAGE_SOLARUS
	bool "solarus"
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
	depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # openal
	depends on !BR2_STATIC_LIBS # SDL2
	select BR2_PACKAGE_LIBMODPLUG
	select BR2_PACKAGE_LIBOGG
	select BR2_PACKAGE_LIBPNG # runtime
	select BR2_PACKAGE_LIBVORBIS
	select BR2_PACKAGE_LUAJIT
	select BR2_PACKAGE_OPENAL
	select BR2_PACKAGE_PHYSFS
	select BR2_PACKAGE_SDL2
	select BR2_PACKAGE_SDL2_IMAGE
	select BR2_PACKAGE_SDL2_TTF
	help
	  Solarus is an open-source Zelda-like 2D game engine written
	  in C++. It can run games scripted in Lua. This engine is used
	  by our Zelda fangames. Solarus is licensed under GPL v3.

	  http://www.solarus-games.org
	  https://github.com/solarus-games/solarus

comment "solarus needs a toolchain w/ C++, gcc >= 4.8, NPTL, dynamic library"
	depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
	depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 \
		|| !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS