diff --git a/recipes/net/download/curl/recipe.toml b/recipes/net/download/curl/recipe.toml index 54e27c7e1..3732fc2e1 100644 --- a/recipes/net/download/curl/recipe.toml +++ b/recipes/net/download/curl/recipe.toml @@ -4,33 +4,25 @@ branch = "redox-8.6" upstream = "https://github.com/curl/curl.git" [build] -template = "custom" +template = "cmake" dependencies = [ #TODO: git fails to build when this is a dependency: "libpsl", "nghttp2", "openssl1", "zlib" ] -script = """ -DYNAMIC_INIT -rsync -av --delete "${COOKBOOK_SOURCE}/" ./ -GNU_CONFIG_GET config.sub -autotools_recursive_regenerate -COOKBOOK_CONFIGURE="./configure" -COOKBOOK_CONFIGURE_FLAGS+=( - --disable-ftp - --disable-ipv6 - --disable-ntlm-wb - --disable-tftp - --disable-threaded-resolver - --with-ca-path=/etc/ssl/certs - --with-nghttp2 - --with-ssl - --with-zlib - --without-libpsl -) -cookbook_configure -""" +cmakeflags = [ + "-DCURL_DISABLE_FTP=On", + "-DCURL_DISABLE_TFTP=On", + "-DENABLE_IPV6=Off", + "-DCURL_DISABLE_NTLM=On", + "-DENABLE_THREADED_RESOLVER=Off", + "-DCURL_CA_PATH=/etc/ssl/certs", + "-DUSE_NGHTTP2=On", + "-DCURL_USE_OPENSSL=On", + "-DUSE_ZLIB=On", + "-DCURL_USE_LIBPSL=Off", +] [package] dependencies = [