mxe/src/curl.mk

36 lines
1.1 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2008-11-08 19:54:35 +00:00
PKG := curl
$(PKG)_IGNORE :=
2016-08-08 23:49:05 +01:00
$(PKG)_VERSION := 7.50.1
$(PKG)_CHECKSUM := b2b176f3ef39d945d31e68e788be8564a7e16478af1dfe732462a300c7c58361
$(PKG)_SUBDIR := curl-$($(PKG)_VERSION)
2012-10-10 23:31:16 +01:00
$(PKG)_FILE := curl-$($(PKG)_VERSION).tar.lzma
$(PKG)_URL := http://curl.haxx.se/download/$($(PKG)_FILE)
$(PKG)_DEPS := gcc gnutls libidn libssh2
2008-11-08 19:54:35 +00:00
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://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 '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--with-gnutls \
--without-ssl \
--with-libidn \
2011-11-16 22:19:43 +00:00
--enable-sspi \
2012-10-10 23:31:31 +01:00
--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'
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