mirror of
https://github.com/mborgerson/xemu.git
synced 2026-02-04 09:15:40 +00:00
35 lines
1.2 KiB
Makefile
35 lines
1.2 KiB
Makefile
# 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
|