CURL_VERSION ?= 7.87.0 CURL_STATIC := $(if $(filter true,$(TARGET_STATIC)),-all-static,) CURL_CONF_ARGS := \ --disable-silent-rules \ --disable-debug \ --enable-optimize \ --enable-warnings \ --disable-werror \ --disable-curldebug \ --enable-symbol-hiding \ --disable-ares \ --disable-ech \ --enable-http \ --enable-ftp \ --enable-file \ --disable-ldap \ --disable-ldaps \ --disable-rtsp \ --enable-proxy \ --disable-dict \ --enable-telnet \ --enable-tftp \ --disable-pop3 \ --disable-imap \ --disable-smb \ --disable-smtp \ --disable-gopher \ --disable-mqtt \ --disable-manual \ --enable-libcurl-option \ --enable-ipv6 \ --disable-openssl-auto-load-config \ --disable-versioned-symbols \ --enable-threaded-resolver \ --enable-pthreads \ --enable-verbose \ --disable-sspi \ --enable-crypto-auth \ --disable-ntlm-wb \ --disable-tls-srp \ --enable-unix-sockets \ --enable-cookies \ --enable-socketpair \ --enable-http-auth \ --disable-doh \ --disable-mime \ --enable-dateparse \ --disable-netrc \ --enable-progress-meter \ --disable-dnsshuffle \ --enable-get-easy-options \ --disable-alt-svc \ --enable-hsts \ --with-zlib=$(OUTPUT)/rootfs/opt/zlib \ --without-brotli \ --without-zstd \ --with-default-ssl-backend=bearssl \ --without-winssl \ --without-schannel \ --without-darwinssl \ --without-secure-transport \ --without-amissl \ --without-ssl \ --without-gnutls \ --without-mbedtls \ --without-wolfssl \ --without-mesalink \ --with-bearssl=$(OUTPUT)/rootfs/opt/bearssl \ --without-nss \ --without-libmetalink \ --without-ca-bundle \ --without-ca-path \ --without-ca-fallback \ --without-wolfssh \ --without-libssh2 \ --without-libssh \ --without-librtmp \ --without-winidn \ --without-libidn2 \ --without-nghttp2 \ --without-ngtcp2 \ --without-nghttp3 \ --without-quiche \ --without-hyper \ --without-zsh-functions-dir \ --without-fish-functions-dir CURL_MAKE_ARGS := LDFLAGS="-L$(OUTPUT)/rootfs/opt/bearssl/lib -L$(OUTPUT)/rootfs/opt/zlib/lib $(CURL_STATIC)" clean-curl: rm -f $(OUTPUT)/build-$(TRIPLE)/.lh_curl_* $(OUTPUT)/sources/curl-$(CURL_VERSION).tar.xz: | $(OUTPUT)/tmp/.lh_prepared $(OUTPUT)/build-build/.lh_skarnet_installed exec setuidgid $(NORMALUSER) cd $(OUTPUT)/sources wget https://curl.se/download/curl-$(CURL_VERSION).tar.xz $(OUTPUT)/build-$(TRIPLE)/.lh_curl_dled: $(OUTPUT)/sources/curl-$(CURL_VERSION).tar.xz | $(OUTPUT)/build-build/.lh_skarnet_installed exec setuidgid $(NORMALUSER) s6-touch $@ $(OUTPUT)/build-$(TRIPLE)/.lh_curl_copied: $(OUTPUT)/build-$(TRIPLE)/.lh_curl_dled | $(OUTPUT)/build-build/.lh_skarnet_installed exec setuidgid $(NORMALUSER) s6-rmrf $(OUTPUT)/build-$(TRIPLE)/curl-$(CURL_VERSION) exec setuidgid $(NORMALUSER) cd $(OUTPUT)/build-$(TRIPLE) tar -Jxpvf $(OUTPUT)/sources/curl-$(CURL_VERSION).tar.xz exec setuidgid $(NORMALUSER) s6-touch $@ $(OUTPUT)/build-$(TRIPLE)/.lh_curl_configured: $(OUTPUT)/build-$(TRIPLE)/.lh_curl_copied $(OUTPUT)/build-$(TRIPLE)/.lh_bearssl_installed $(OUTPUT)/build-$(TRIPLE)/.lh_zlib_installed | $(OUTPUT)/build-build/.lh_skarnet_installed exec setuidgid $(NORMALUSER) cd $(OUTPUT)/build-$(TRIPLE)/curl-$(CURL_VERSION) export CC "$(TARGET_CC)" ./configure --build=$(BUILD_QUADRUPLE) --host=$(TRIPLE) --prefix=/opt/curl-$(CURL_VERSION) $(CURL_CONF_ARGS) exec setuidgid $(NORMALUSER) s6-touch $@ $(OUTPUT)/build-$(TRIPLE)/.lh_curl_built: $(OUTPUT)/build-$(TRIPLE)/.lh_curl_configured | $(OUTPUT)/build-build/.lh_skarnet_installed +exec setuidgid $(NORMALUSER) cd $(OUTPUT)/build-$(TRIPLE)/curl-$(CURL_VERSION) $(MAKE) $(CURL_MAKE_ARGS) exec setuidgid $(NORMALUSER) s6-touch $@ $(OUTPUT)/build-$(TRIPLE)/.lh_curl_installed: $(OUTPUT)/build-$(TRIPLE)/.lh_curl_built | $(OUTPUT)/tmp/.lh_prepared $(OUTPUT)/build-build/.lh_skarnet_installed $(OUTPUT)/tmp/.lh_layout_installed +exec cd $(OUTPUT)/build-$(TRIPLE)/curl-$(CURL_VERSION) $(MAKE) install DESTDIR=$(OUTPUT)/rootfs exec makenamelink $(OUTPUT)/rootfs/opt curl curl-$(CURL_VERSION) $(OUTPUT)/tmp exec makelinks $(OUTPUT)/rootfs /bin /opt/curl/bin exec setuidgid $(NORMALUSER) s6-touch $@