xref: /OK3568_Linux_fs/buildroot/package/minetest/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_PACKAGE_MINETEST
2	bool "minetest"
3	depends on BR2_INSTALL_LIBSTDCPP # irrlicht
4	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11
5	depends on BR2_TOOLCHAIN_HAS_THREADS
6	depends on BR2_PACKAGE_XORG7 # irrlicht
7	depends on BR2_PACKAGE_HAS_LIBGL # irrlicht
8	depends on BR2_PACKAGE_LUAJIT
9	select BR2_PACKAGE_IRRLICHT
10	select BR2_PACKAGE_GMP
11	select BR2_PACKAGE_JSONCPP
12	select BR2_PACKAGE_SQLITE
13	select BR2_PACKAGE_ZLIB
14	# At least one option must be enabled
15	select BR2_PACKAGE_MINETEST_CLIENT if !BR2_PACKAGE_MINETEST_SERVER
16	help
17	  Minetest is a near-infinite-world block sandbox game and a
18	  game engine, inspired by InfiniMiner, Minecraft, and the
19	  like.
20
21	  http://www.minetest.net
22
23if BR2_PACKAGE_MINETEST
24
25config BR2_PACKAGE_MINETEST_CLIENT
26	bool "minetest client"
27	select BR2_PACKAGE_BZIP2
28	select BR2_PACKAGE_LIBPNG
29	select BR2_PACKAGE_JPEG
30	select BR2_PACKAGE_XLIB_LIBXXF86VM
31	help
32	  Build Minetest client.
33
34config BR2_PACKAGE_MINETEST_SERVER
35	bool "minetest server"
36	help
37	  Build Minetest server.
38
39config BR2_PACKAGE_MINETEST_SOUND
40	bool "enable sound"
41	depends on BR2_PACKAGE_MINETEST_CLIENT
42	depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
43	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # openal
44	select BR2_PACKAGE_LIBVORBIS
45	select BR2_PACKAGE_OPENAL
46
47comment "sound support needs a toolchain w/ threads NPTL"
48	depends on BR2_PACKAGE_MINETEST_CLIENT
49	depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
50	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
51
52endif
53
54comment "minetest needs a toolchain w/ C++, gcc >= 4.9, threads"
55	depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
56	depends on !BR2_INSTALL_LIBSTDCPP \
57		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 \
58		|| !BR2_TOOLCHAIN_HAS_THREADS
59
60comment "minetest needs X11 and an OpenGL provider"
61	depends on (BR2_INSTALL_LIBSTDCPP \
62		&& BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 \
63		&& BR2_TOOLCHAIN_HAS_THREADS)
64	depends on !BR2_PACKAGE_HAS_LIBGL || !BR2_PACKAGE_XORG7
65