package/minetest: add libspatialindex optional dependency

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Romain Naour 2017-07-13 14:40:51 +02:00 committed by Thomas Petazzoni
parent 5e42d596bd
commit f83601e741

View File

@ -16,7 +16,6 @@ MINETEST_CONF_OPTS = \
-DENABLE_GLES=OFF \ -DENABLE_GLES=OFF \
-DENABLE_LUAJIT=ON \ -DENABLE_LUAJIT=ON \
-DENABLE_CURSES=OFF \ -DENABLE_CURSES=OFF \
-DENABLE_SPATIAL=OFF \
-DAPPLY_LOCALE_BLACKLIST=OFF \ -DAPPLY_LOCALE_BLACKLIST=OFF \
-DENABLE_SYSTEM_GMP=ON \ -DENABLE_SYSTEM_GMP=ON \
-DENABLE_SYSTEM_JSONCPP=ON -DENABLE_SYSTEM_JSONCPP=ON
@ -69,6 +68,13 @@ else
MINETEST_CONF_OPTS += -DENABLE_CURL=OFF MINETEST_CONF_OPTS += -DENABLE_CURL=OFF
endif 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) ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
MINETEST_DEPENDENCIES += postgresql MINETEST_DEPENDENCIES += postgresql
MINETEST_CONF_OPTS += -DENABLE_POSTGRESQL=ON MINETEST_CONF_OPTS += -DENABLE_POSTGRESQL=ON