source "package/lbreakout2/Config.in"
source "package/ltris/Config.in"
source "package/lugaru/Config.in"
+ source "package/minetest/Config.in"
source "package/opentyrian/Config.in"
source "package/opentyrian-data/Config.in"
source "package/prboom/Config.in"
--- /dev/null
+config BR2_PACKAGE_MINETEST
+ bool "minetest"
+ depends on BR2_INSTALL_LIBSTDCPP # irrlicht
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # jsoncpp
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ depends on BR2_PACKAGE_XORG7 # irrlicht
+ depends on BR2_PACKAGE_HAS_LIBGL # irrlicht
+ depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
+ select BR2_PACKAGE_IRRLICHT
+ select BR2_PACKAGE_GMP
+ select BR2_PACKAGE_JSONCPP
+ select BR2_PACKAGE_LUAJIT
+ select BR2_PACKAGE_SQLITE
+ select BR2_PACKAGE_ZLIB
+ # At least one option must be enabled
+ select BR2_PACKAGE_MINETEST_CLIENT if !BR2_PACKAGE_MINETEST_SERVER
+ help
+ Minetest is a near-infinite-world block sandbox game and a
+ game engine, inspired by InfiniMiner, Minecraft, and the
+ like.
+
+ http://www.minetest.net
+
+if BR2_PACKAGE_MINETEST
+
+config BR2_PACKAGE_MINETEST_CLIENT
+ bool "minetest client"
+ select BR2_PACKAGE_BZIP2
+ select BR2_PACKAGE_LIBPNG
+ select BR2_PACKAGE_JPEG
+ select BR2_PACKAGE_XLIB_LIBXXF86VM
+ help
+ Build Minetest client.
+
+config BR2_PACKAGE_MINETEST_SERVER
+ bool "minetest server"
+ help
+ Build Minetest server.
+
+endif
+
+comment "minetest needs a toolchain w/ C++, gcc >= 4.7, threads"
+ depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
+ depends on !BR2_INSTALL_LIBSTDCPP \
+ || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 \
+ || !BR2_TOOLCHAIN_HAS_THREADS
+
+comment "minetest needs X11 and an OpenGL provider"
+ depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
+ depends on (BR2_INSTALL_LIBSTDCPP \
+ && BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 \
+ && BR2_TOOLCHAIN_HAS_THREADS)
+ depends on !BR2_PACKAGE_HAS_LIBGL || !BR2_PACKAGE_XORG7
--- /dev/null
+################################################################################
+#
+# minetest
+#
+################################################################################
+
+MINETEST_VERSION = 0.4.16
+MINETEST_SITE = $(call github,minetest,minetest,$(MINETEST_VERSION))
+MINETEST_LICENSE = LGPL-2.1+ (code), CC-BY-SA-3.0 (textures and sounds)
+MINETEST_LICENSE_FILES = README.txt
+
+MINETEST_DEPENDENCIES = gmp irrlicht jsoncpp luajit sqlite zlib
+
+MINETEST_CONF_OPTS = \
+ -DDEFAULT_RUN_IN_PLACE=OFF \
+ -DENABLE_CURL=OFF \
+ -DENABLE_GETTEXT=OFF \
+ -DENABLE_SOUND=OFF \
+ -DENABLE_GLES=OFF \
+ -DENABLE_FREETYPE=OFF \
+ -DENABLE_LUAJIT=ON \
+ -DENABLE_CURSES=OFF \
+ -DENABLE_POSTGRESQL=OFF \
+ -DENABLE_LEVELDB=OFF \
+ -DENABLE_REDIS=OFF \
+ -DENABLE_SPATIAL=OFF \
+ -DAPPLY_LOCALE_BLACKLIST=OFF \
+ -DENABLE_SYSTEM_GMP=ON \
+ -DENABLE_SYSTEM_JSONCPP=ON
+
+ifeq ($(BR2_PACKAGE_MINETEST_CLIENT),y)
+MINETEST_DEPENDENCIES += bzip2 jpeg libgl libpng xlib_libXxf86vm
+MINETEST_CONF_OPTS += -DBUILD_CLIENT=ON
+else
+MINETEST_CONF_OPTS += -DBUILD_CLIENT=OFF
+endif
+
+ifeq ($(BR2_PACKAGE_MINETEST_SERVER),y)
+MINETEST_CONF_OPTS += -DBUILD_SERVER=ON
+else
+MINETEST_CONF_OPTS += -DBUILD_SERVER=OFF
+endif
+
+$(eval $(cmake-package))