annotate src/curl.mk @ 1095:e878941387e3

upgrade packages curl freetype gcc glew gnutls gst* libarchive libevent libgcrypt pcre sqlite w32api New requirement XZ Utils for unpacking w32api lzma archive.
author Mark Brand <mabrand@mabrand.nl>
date Sun, 29 Aug 2010 11:40:18 +0200
parents 37daf336dd20
children c29598fd9e9c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
641
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 552
diff changeset
1 # This file is part of mingw-cross-env.
714
29f1ba4559ae point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents: 641
diff changeset
2 # See doc/index.html for further information.
414
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 377
diff changeset
3
147
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # cURL
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 274
diff changeset
5 PKG := curl
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 432
diff changeset
6 $(PKG)_IGNORE :=
1095
e878941387e3 upgrade packages curl freetype gcc glew gnutls gst* libarchive libevent libgcrypt pcre sqlite w32api
Mark Brand <mabrand@mabrand.nl>
parents: 1054
diff changeset
7 $(PKG)_VERSION := 7.21.1
e878941387e3 upgrade packages curl freetype gcc glew gnutls gst* libarchive libevent libgcrypt pcre sqlite w32api
Mark Brand <mabrand@mabrand.nl>
parents: 1054
diff changeset
8 $(PKG)_CHECKSUM := d6ad8d7caf6e15f318e7b9f69dee8f67c807b1a0
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 274
diff changeset
9 $(PKG)_SUBDIR := curl-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 274
diff changeset
10 $(PKG)_FILE := curl-$($(PKG)_VERSION).tar.bz2
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 274
diff changeset
11 $(PKG)_WEBSITE := http://curl.haxx.se/libcurl/
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 274
diff changeset
12 $(PKG)_URL := http://curl.haxx.se/download/$($(PKG)_FILE)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 274
diff changeset
13 $(PKG)_DEPS := gcc gnutls libidn
147
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 wget -q -O- 'http://curl.haxx.se/changes.html' | \
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 $(SED) -n 's,.*Fixed in \([0-9][^ ]*\) - .*,\1,p' | \
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 head -1
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 endef
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 define $(PKG)_BUILD
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 # wine confuses the cross-compiling detection, so set it explicitly
759
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 741
diff changeset
23 $(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
147
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 cd '$(1)' && ./configure \
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 --host='$(TARGET)' \
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --disable-shared \
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --prefix='$(PREFIX)/$(TARGET)' \
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --with-gnutls='$(PREFIX)/$(TARGET)' \
230
f8290b0be803 new package: libidn (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents: 207
diff changeset
29 --with-libidn='$(PREFIX)/$(TARGET)' \
f8290b0be803 new package: libidn (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents: 207
diff changeset
30 LIBS="-lgcrypt -liconv `$(PREFIX)/$(TARGET)/bin/gpg-error-config --libs`"
147
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 endef