mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
66
package/minetest/Config.in
Normal file
66
package/minetest/Config.in
Normal file
@@ -0,0 +1,66 @@
|
||||
config BR2_PACKAGE_MINETEST
|
||||
bool "minetest"
|
||||
depends on BR2_INSTALL_LIBSTDCPP # irrlicht
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11
|
||||
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.
|
||||
|
||||
config BR2_PACKAGE_MINETEST_SOUND
|
||||
bool "enable sound"
|
||||
depends on BR2_PACKAGE_MINETEST_CLIENT
|
||||
depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # openal
|
||||
select BR2_PACKAGE_LIBVORBIS
|
||||
select BR2_PACKAGE_OPENAL
|
||||
|
||||
comment "sound support needs a toolchain w/ threads NPTL"
|
||||
depends on BR2_PACKAGE_MINETEST_CLIENT
|
||||
depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
|
||||
endif
|
||||
|
||||
comment "minetest needs a toolchain w/ C++, gcc >= 4.9, threads"
|
||||
depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
|
||||
depends on !BR2_INSTALL_LIBSTDCPP \
|
||||
|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 \
|
||||
|| !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_9 \
|
||||
&& BR2_TOOLCHAIN_HAS_THREADS)
|
||||
depends on !BR2_PACKAGE_HAS_LIBGL || !BR2_PACKAGE_XORG7
|
||||
4
package/minetest/minetest.hash
Normal file
4
package/minetest/minetest.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# Locally calculated
|
||||
sha256 aa771cf178ad1b436d5723e5d6dd24e42b5d56f1cfe9c930f6426b7f24bb1635 minetest-5.0.1.tar.gz
|
||||
|
||||
sha256 03ec12b2ba71d5e31c37bcf2700af2f278141df62e5a2ac0ce056c53bf266e44 LICENSE.txt
|
||||
92
package/minetest/minetest.mk
Normal file
92
package/minetest/minetest.mk
Normal file
@@ -0,0 +1,92 @@
|
||||
################################################################################
|
||||
#
|
||||
# minetest
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MINETEST_VERSION = 5.0.1
|
||||
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 = LICENSE.txt
|
||||
|
||||
MINETEST_DEPENDENCIES = gmp irrlicht jsoncpp luajit sqlite zlib
|
||||
|
||||
MINETEST_CONF_OPTS = \
|
||||
-DDEFAULT_RUN_IN_PLACE=OFF \
|
||||
-DENABLE_GLES=OFF \
|
||||
-DENABLE_LUAJIT=ON \
|
||||
-DENABLE_CURSES=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
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MINETEST_SOUND),y)
|
||||
MINETEST_DEPENDENCIES += libvorbis openal
|
||||
MINETEST_CONF_OPTS += -DENABLE_SOUND=ON
|
||||
else
|
||||
MINETEST_CONF_OPTS += -DENABLE_SOUND=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FREETYPE),y)
|
||||
MINETEST_DEPENDENCIES += freetype
|
||||
MINETEST_CONF_OPTS += -DENABLE_FREETYPE=ON
|
||||
else
|
||||
MINETEST_CONF_OPTS += -DENABLE_FREETYPE=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HIREDIS),y)
|
||||
MINETEST_DEPENDENCIES += hiredis
|
||||
MINETEST_CONF_OPTS += -DENABLE_REDIS=ON
|
||||
else
|
||||
MINETEST_CONF_OPTS += -DENABLE_REDIS=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LEVELDB),y)
|
||||
MINETEST_DEPENDENCIES += leveldb
|
||||
MINETEST_CONF_OPTS += -DENABLE_LEVELDB=ON
|
||||
else
|
||||
MINETEST_CONF_OPTS += -DENABLE_LEVELDB=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
||||
MINETEST_DEPENDENCIES += libcurl
|
||||
MINETEST_CONF_OPTS += -DENABLE_CURL=ON
|
||||
else
|
||||
MINETEST_CONF_OPTS += -DENABLE_CURL=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSPATIALINDEX),y)
|
||||
MINETEST_DEPENDENCIES += libspatialindex
|
||||
MINETEST_CONF_OPTS += -DENABLE_SPATIAL=ON
|
||||
else
|
||||
MINETEST_CONF_OPTS += -DENABLE_SPATIAL=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
|
||||
MINETEST_DEPENDENCIES += postgresql
|
||||
MINETEST_CONF_OPTS += -DENABLE_POSTGRESQL=ON
|
||||
else
|
||||
MINETEST_CONF_OPTS += -DENABLE_POSTGRESQL=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
|
||||
MINETEST_DEPENDENCIES += $(TARGET_NLS_DEPENDENCIES)
|
||||
MINETEST_CONF_OPTS += -DENABLE_GETTEXT=ON
|
||||
else
|
||||
MINETEST_CONF_OPTS += -DENABLE_GETTEXT=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user