mxe/src/curl.mk

39 lines
1.3 KiB
Makefile
Raw Permalink Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2008-11-08 19:54:35 +00:00
PKG := curl
2017-03-04 10:33:47 +00:00
$(PKG)_WEBSITE := https://curl.haxx.se/libcurl/
$(PKG)_DESCR := cURL
$(PKG)_IGNORE :=
2020-08-19 13:56:46 +01:00
$(PKG)_VERSION := 7.72.0
$(PKG)_CHECKSUM := 0ded0808c4d85f2ee0db86980ae610cc9d165e9ca9da466196cc73c346513713
$(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
cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \
$(MXE_CONFIGURE_OPTS) \
--with-winssl \
--without-ssl \
--with-libidn2 \
2011-11-16 22:19:43 +00:00
--enable-sspi \
2012-10-10 23:31:31 +01:00
--enable-ipv6 \
--with-libssh2 \
LIBS=`'$(TARGET)-pkg-config' pthreads --libs`
$(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'
2010-11-29 00:16:25 +00:00
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(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