package/minetest: add leveldb optional dependency
authorRomain Naour <romain.naour@gmail.com>
Thu, 13 Jul 2017 12:40:50 +0000 (14:40 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 21 Oct 2017 15:19:32 +0000 (17:19 +0200)
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/minetest/minetest.mk

index 583bb56342af356350069190eb4c9ce0820fd855..2d1a90df3018d60332064f3faa852cae853615f3 100644 (file)
@@ -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