# This file is part of MXE. See LICENSE.md for licensing information. PKG := curl $(PKG)_WEBSITE := https://curl.haxx.se/libcurl/ $(PKG)_DESCR := cURL $(PKG)_IGNORE := $(PKG)_VERSION := 8.10.1 $(PKG)_CHECKSUM := 73a4b0e99596a09fa5924a4fb7e4b995a85fda0d18a2c02ab9cf134bebce04ee $(PKG)_SUBDIR := curl-$($(PKG)_VERSION) $(PKG)_FILE := curl-$($(PKG)_VERSION).tar.xz $(PKG)_URL := https://curl.haxx.se/download/$($(PKG)_FILE) $(PKG)_DEPS := cc brotli libidn2 libpsl libssh2 pthreads openssl define $(PKG)_UPDATE $(WGET) -q -O- 'https://curl.haxx.se/download/?C=M;O=D' | \ $(SED) -n 's,.*curl-\([0-9][^"]*\)\.tar.*,\1,p' | \ head -1 endef define $(PKG)_BUILD cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \ $(MXE_CONFIGURE_OPTS) \ --with-default-ssl-backend=schannel \ --with-schannel \ --with-openssl \ --with-libidn2 \ --enable-sspi \ --enable-ipv6 \ --with-libssh2 \ --with-brotli \ LIBS="`'$(TARGET)-pkg-config' libpsl libbrotlidec pthreads --libs`" \ PKG_CONFIG='$(TARGET)-pkg-config' $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(MXE_DISABLE_DOCS) $(MAKE) -C '$(BUILD_DIR)' -j 1 install $(MXE_DISABLE_DOCS) ln -sf '$(PREFIX)/$(TARGET)/bin/curl-config' '$(PREFIX)/bin/$(TARGET)-curl-config' echo "Requires.private: libpsl" >> \ '$(PREFIX)/$(TARGET)/lib/pkgconfig/libcurl.pc' '$(TARGET)-gcc' \ -W -Wall -Werror -ansi -pedantic \ '$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-curl.exe' \ `'$(TARGET)-pkg-config' libcurl --cflags --libs` endef