package/minetest: add libcurl optional dependency

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>
This commit is contained in:
Romain Naour 2017-07-13 14:40:44 +02:00 committed by Thomas Petazzoni
parent 04289064b7
commit 773eb70e38

View File

@ -13,7 +13,6 @@ MINETEST_DEPENDENCIES = gmp irrlicht jsoncpp luajit sqlite zlib
MINETEST_CONF_OPTS = \ MINETEST_CONF_OPTS = \
-DDEFAULT_RUN_IN_PLACE=OFF \ -DDEFAULT_RUN_IN_PLACE=OFF \
-DENABLE_CURL=OFF \
-DENABLE_GETTEXT=OFF \ -DENABLE_GETTEXT=OFF \
-DENABLE_SOUND=OFF \ -DENABLE_SOUND=OFF \
-DENABLE_GLES=OFF \ -DENABLE_GLES=OFF \
@ -41,4 +40,11 @@ else
MINETEST_CONF_OPTS += -DBUILD_SERVER=OFF MINETEST_CONF_OPTS += -DBUILD_SERVER=OFF
endif 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)) $(eval $(cmake-package))