annotate src/curl.mk @ 274:e27ad3fe3583

update version of packages curl and gnutls
author Volker Grabsch <vog@notjusthosting.com>
date Thu, 05 Mar 2009 20:40:34 +0100
parents 5bf9071e67b6
children 85ffa9259036
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
147
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # cURL
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3 PKG := curl
274
e27ad3fe3583 update version of packages curl and gnutls
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
4 $(PKG)_VERSION := 7.19.4
147
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_SUBDIR := curl-$($(PKG)_VERSION)
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_FILE := curl-$($(PKG)_VERSION).tar.bz2
265
5bf9071e67b6 put all package's project websites into Make variables $($(PKG)_WEBSITE)
Volker Grabsch <vog@notjusthosting.com>
parents: 230
diff changeset
7 $(PKG)_WEBSITE := http://curl.haxx.se/libcurl/
147
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_URL := http://curl.haxx.se/download/$($(PKG)_FILE)
230
f8290b0be803 new package: libidn (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents: 207
diff changeset
9 $(PKG)_DEPS := gcc gnutls libidn
147
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 define $(PKG)_UPDATE
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 wget -q -O- 'http://curl.haxx.se/changes.html' | \
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 $(SED) -n 's,.*Fixed in \([0-9][^ ]*\) - .*,\1,p' | \
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 head -1
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 endef
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 define $(PKG)_BUILD
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 $(SED) 's,-I@includedir@,-I@includedir@ -DCURL_STATICLIB,' -i '$(1)/curl-config.in'
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 $(SED) 's,GNUTLS_ENABLED = 1,GNUTLS_ENABLED=1,' -i '$(1)/configure'
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 # wine confuses the cross-compiling detection, so set it explicitly
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure'
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 cd '$(1)' && ./configure \
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 --host='$(TARGET)' \
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 --disable-shared \
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 --prefix='$(PREFIX)/$(TARGET)' \
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --with-gnutls='$(PREFIX)/$(TARGET)' \
230
f8290b0be803 new package: libidn (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents: 207
diff changeset
27 --with-libidn='$(PREFIX)/$(TARGET)' \
f8290b0be803 new package: libidn (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents: 207
diff changeset
28 LIBS="-lgcrypt -liconv `$(PREFIX)/$(TARGET)/bin/gpg-error-config --libs`"
147
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 endef