]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package/minetest: add libcurl optional dependency
authorRomain Naour <romain.naour@gmail.com>
Thu, 13 Jul 2017 12:40:44 +0000 (14:40 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 21 Oct 2017 15:19:32 +0000 (17:19 +0200)
Curl support is strongly recommended for multiplayer game.

The build system warn when curl is disabled:
  cURL is required to load the server list
  cURL is required to announce to the server list

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/minetest/minetest.mk

index df9c00db12b405f1b93002b14ca9c57f5256e1da..de4e3f01846739dae78ec19365d674215640db16 100644 (file)
@@ -13,7 +13,6 @@ MINETEST_DEPENDENCIES = gmp irrlicht jsoncpp luajit sqlite zlib
 
 MINETEST_CONF_OPTS = \
        -DDEFAULT_RUN_IN_PLACE=OFF \
-       -DENABLE_CURL=OFF \
        -DENABLE_GETTEXT=OFF \
        -DENABLE_SOUND=OFF \
        -DENABLE_GLES=OFF \
@@ -41,4 +40,11 @@ else
 MINETEST_CONF_OPTS += -DBUILD_SERVER=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_LIBCURL),y)
+MINETEST_DEPENDENCIES += libcurl
+MINETEST_CONF_OPTS += -DENABLE_CURL=ON
+else
+MINETEST_CONF_OPTS += -DENABLE_CURL=OFF
+endif
+
 $(eval $(cmake-package))