You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/curl.mk

37 lines
1.2 KiB

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := curl
$(PKG)_WEBSITE := http://curl.haxx.se/libcurl/
$(PKG)_DESCR := cURL
$(PKG)_IGNORE :=
$(PKG)_VERSION := 7.52.1
$(PKG)_CHECKSUM := 44286d4b825936e2430fc44ad730ce899afb736a5d328cbb8b5d42462f3f2365
$(PKG)_SUBDIR := curl-$($(PKG)_VERSION)
$(PKG)_FILE := curl-$($(PKG)_VERSION).tar.lzma
$(PKG)_URL := http://curl.haxx.se/download/$($(PKG)_FILE)
$(PKG)_DEPS := gcc gnutls libidn libssh2
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://curl.haxx.se/download/?C=M;O=D' | \
$(SED) -n 's,.*curl-\([0-9][^"]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--with-gnutls \
--without-ssl \
--with-libidn \
--enable-sspi \
--enable-ipv6 \
--with-libssh2
$(MAKE) -C '$(1)' -j '$(JOBS)' 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