From f83601e74184bea01a61a16232992f38fae46676 Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Thu, 13 Jul 2017 14:40:51 +0200 Subject: [PATCH] package/minetest: add libspatialindex optional dependency Signed-off-by: Romain Naour Signed-off-by: Thomas Petazzoni --- package/minetest/minetest.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/minetest/minetest.mk b/package/minetest/minetest.mk index 2d1a90df30..a813a0db4e 100644 --- a/package/minetest/minetest.mk +++ b/package/minetest/minetest.mk @@ -16,7 +16,6 @@ MINETEST_CONF_OPTS = \ -DENABLE_GLES=OFF \ -DENABLE_LUAJIT=ON \ -DENABLE_CURSES=OFF \ - -DENABLE_SPATIAL=OFF \ -DAPPLY_LOCALE_BLACKLIST=OFF \ -DENABLE_SYSTEM_GMP=ON \ -DENABLE_SYSTEM_JSONCPP=ON @@ -69,6 +68,13 @@ 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