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>
MINETEST_CONF_OPTS = \
-DDEFAULT_RUN_IN_PLACE=OFF \
- -DENABLE_CURL=OFF \
-DENABLE_GETTEXT=OFF \
-DENABLE_SOUND=OFF \
-DENABLE_GLES=OFF \
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))