ubuntu-win64-cross: Add curl

This commit is contained in:
Matt Borgerson
2026-01-10 01:30:03 -07:00
committed by mborgerson
parent d49402972a
commit b3d6bb0efa
3 changed files with 40 additions and 2 deletions

View File

@ -0,0 +1,34 @@
# 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.18.0
$(PKG)_CHECKSUM := 40df79166e74aa20149365e11ee4c798a46ad57c34e4f68fd13100e2c9a91946
$(PKG)_SUBDIR := curl-$($(PKG)_VERSION)
$(PKG)_FILE := curl-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := https://curl.haxx.se/download/$($(PKG)_FILE)
$(PKG)_DEPS := cc
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) \
--without-libpsl \
--with-schannel \
--enable-ipv6
$(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'
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-curl.exe' \
`'$(TARGET)-pkg-config' libcurl --cflags --libs`
endef

View File

@ -73,6 +73,7 @@ COPY vulkan-headers.mk \
sdl2.mk \
libsamplerate.mk \
libressl.mk \
curl.mk \
${MXE_PATH}/src/
RUN make \
@ -90,7 +91,8 @@ RUN make \
cmake \
libslirp \
sdl2 \
vulkan-headers
vulkan-headers \
curl
RUN find ${MXE_PATH}/usr -executable -type f -exec chmod a+x {} \;

View File

@ -54,6 +54,7 @@ COPY vulkan-headers.mk \
sdl2.mk \
libsamplerate.mk \
libressl.mk \
curl.mk \
${MXE_PATH}/src/
RUN make \
@ -72,7 +73,8 @@ RUN make \
cmake \
libslirp \
sdl2 \
vulkan-headers
vulkan-headers \
curl
RUN find ${MXE_PATH}/usr -executable -type f -exec chmod a+x {} \;