From 5e42d596bd9b74c9d13b2cf3515f3822ba0aac26 Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Thu, 13 Jul 2017 14:40:50 +0200 Subject: [PATCH] package/minetest: add leveldb 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 583bb56342..2d1a90df30 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_LEVELDB=OFF \ -DENABLE_SPATIAL=OFF \ -DAPPLY_LOCALE_BLACKLIST=OFF \ -DENABLE_SYSTEM_GMP=ON \ @@ -56,6 +55,13 @@ 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 -- 2.30.2