mxe/src/curl.mk

38 lines
1.3 KiB
Makefile
Raw Normal View History

2010-01-16 22:02:02 +00:00
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
2008-11-08 19:54:35 +00:00
# cURL
PKG := curl
$(PKG)_IGNORE :=
2011-11-15 23:59:15 +00:00
$(PKG)_VERSION := 7.23.0
$(PKG)_CHECKSUM := 026cbf70672174f96ac719d96025a505e00e3f6b
$(PKG)_SUBDIR := curl-$($(PKG)_VERSION)
$(PKG)_FILE := curl-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://curl.haxx.se/libcurl/
$(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
2010-11-28 22:08:01 +00:00
wget -q -O- 'http://curl.haxx.se/download/?C=M;O=D' | \
$(SED) -n 's,.*curl-\([0-9][^"]*\)\.tar.*,\1,p' | \
2008-11-08 19:54:35 +00:00
head -1
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
2008-11-08 19:54:35 +00:00
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--with-gnutls \
--with-libidn \
LIBS="-lgcrypt -liconv `$(PREFIX)/$(TARGET)/bin/gpg-error-config --libs` -lssh2"
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