2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2008-11-08 19:54:35 +00:00
|
|
|
|
2009-04-05 13:00:17 +01:00
|
|
|
PKG := curl
|
2017-03-04 10:33:47 +00:00
|
|
|
$(PKG)_WEBSITE := https://curl.haxx.se/libcurl/
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_DESCR := cURL
|
2009-09-20 13:36:46 +01:00
|
|
|
$(PKG)_IGNORE :=
|
2020-08-19 13:56:46 +01:00
|
|
|
$(PKG)_VERSION := 7.72.0
|
|
|
|
$(PKG)_CHECKSUM := 0ded0808c4d85f2ee0db86980ae610cc9d165e9ca9da466196cc73c346513713
|
2009-04-05 13:00:17 +01:00
|
|
|
$(PKG)_SUBDIR := curl-$($(PKG)_VERSION)
|
2017-08-10 22:29:08 +01:00
|
|
|
$(PKG)_FILE := curl-$($(PKG)_VERSION).tar.xz
|
2017-03-04 10:33:47 +00:00
|
|
|
$(PKG)_URL := https://curl.haxx.se/download/$($(PKG)_FILE)
|
2019-08-03 17:49:28 +01:00
|
|
|
$(PKG)_DEPS := cc libidn2 libssh2 pthreads
|
2008-11-08 19:54:35 +00:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2017-03-04 10:33:47 +00:00
|
|
|
$(WGET) -q -O- 'https://curl.haxx.se/download/?C=M;O=D' | \
|
2010-11-28 22:08:01 +00:00
|
|
|
$(SED) -n 's,.*curl-\([0-9][^"]*\)\.tar.*,\1,p' | \
|
2008-11-08 19:54:35 +00:00
|
|
|
head -1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
2019-10-21 09:25:22 +01:00
|
|
|
cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \
|
2014-02-17 05:01:50 +00:00
|
|
|
$(MXE_CONFIGURE_OPTS) \
|
2019-10-21 09:25:22 +01:00
|
|
|
--with-winssl \
|
2014-04-29 11:38:34 +01:00
|
|
|
--without-ssl \
|
2017-03-05 02:54:26 +00:00
|
|
|
--with-libidn2 \
|
2011-11-16 22:19:43 +00:00
|
|
|
--enable-sspi \
|
2012-10-10 23:31:31 +01:00
|
|
|
--enable-ipv6 \
|
2017-08-14 20:12:41 +01:00
|
|
|
--with-libssh2 \
|
|
|
|
LIBS=`'$(TARGET)-pkg-config' pthreads --libs`
|
2019-10-21 09:25:22 +01:00
|
|
|
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(MXE_DISABLE_DOCS)
|
|
|
|
$(MAKE) -C '$(BUILD_DIR)' -j 1 install $(MXE_DISABLE_DOCS)
|
2014-03-08 09:38:11 +00:00
|
|
|
ln -sf '$(PREFIX)/$(TARGET)/bin/curl-config' '$(PREFIX)/bin/$(TARGET)-curl-config'
|
2010-11-29 00:16:25 +00:00
|
|
|
|
|
|
|
'$(TARGET)-gcc' \
|
|
|
|
-W -Wall -Werror -ansi -pedantic \
|
2016-07-30 20:14:38 +01:00
|
|
|
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-curl.exe' \
|
2010-11-29 00:16:25 +00:00
|
|
|
`'$(TARGET)-pkg-config' libcurl --cflags --libs`
|
2008-11-08 19:54:35 +00:00
|
|
|
endef
|