package/minetest: add postgresql 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:48 +02:00 committed by Thomas Petazzoni
parent cce9887f85
commit 7fd4e2d23a

View File

@ -16,7 +16,6 @@ MINETEST_CONF_OPTS = \
-DENABLE_GLES=OFF \
-DENABLE_LUAJIT=ON \
-DENABLE_CURSES=OFF \
-DENABLE_POSTGRESQL=OFF \
-DENABLE_LEVELDB=OFF \
-DENABLE_REDIS=OFF \
-DENABLE_SPATIAL=OFF \
@ -58,6 +57,13 @@ else
MINETEST_CONF_OPTS += -DENABLE_CURL=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