mxe/src/curl.mk

34 lines
997 B
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 :=
2014-01-31 00:20:26 +00:00
$(PKG)_VERSION := 7.35.0
$(PKG)_CHECKSUM := ba7b8866308e3dc1264aac42342a2094cac3cace
$(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 \
--with-libidn \
2011-11-16 22:19:43 +00:00
--enable-sspi \
2012-10-10 23:31:31 +01:00
--enable-ipv6 \
--with-libssh2
2011-11-16 00:19:38 +00:00
$(MAKE) -C '$(1)' -j '$(JOBS)' install
2010-11-29 00:16:25 +00:00
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-curl.exe' \
`'$(TARGET)-pkg-config' libcurl --cflags --libs`
2008-11-08 19:54:35 +00:00
endef