Mercurial > mxe-octave
annotate src/curl.mk @ 2349:f48c5b085a38
Move $(PKG)_VERSION and $(PKG)_WEBSITE from src/*.mk into doc/index.html
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Thu, 29 Mar 2012 11:07:07 +0200 |
parents | f653602a0500 |
children | 99516e73b368 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2297
diff
changeset
|
1 # This file is part of MXE. |
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 := |
2297 | 7 $(PKG)_CHECKSUM := f6016a24051d98806ca3ddf754592701cb66e00c |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
274
diff
changeset
|
8 $(PKG)_SUBDIR := curl-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
274
diff
changeset
|
9 $(PKG)_FILE := curl-$($(PKG)_VERSION).tar.bz2 |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
274
diff
changeset
|
10 $(PKG)_URL := http://curl.haxx.se/download/$($(PKG)_FILE) |
2026
4fc507178eb4
package curl: add missing dependency on libssh2
Tony Theodore <tonyt@logyst.com>
parents:
1985
diff
changeset
|
11 $(PKG)_DEPS := gcc gnutls libidn libssh2 |
147
f787c299f41c
translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 |
f787c299f41c
translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
1453
050d1e842565
improved update script of package curl
Volker Grabsch <vog@notjusthosting.com>
parents:
1351
diff
changeset
|
14 wget -q -O- 'http://curl.haxx.se/download/?C=M;O=D' | \ |
050d1e842565
improved update script of package curl
Volker Grabsch <vog@notjusthosting.com>
parents:
1351
diff
changeset
|
15 $(SED) -n 's,.*curl-\([0-9][^"]*\)\.tar.*,\1,p' | \ |
147
f787c299f41c
translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 head -1 |
f787c299f41c
translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 endef |
f787c299f41c
translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 |
f787c299f41c
translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 define $(PKG)_BUILD |
2116
f8450d232f85
package curl: improve dependency handling
Mark Brand <mabrand@mabrand.nl>
parents:
2105
diff
changeset
|
20 cd '$(1)' && ./buildconf |
147
f787c299f41c
translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 cd '$(1)' && ./configure \ |
f787c299f41c
translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 --host='$(TARGET)' \ |
2153
e4c83fa61a5b
replaced $(BUILD) with a more direct and less brittle construct
Volker Grabsch <vog@notjusthosting.com>
parents:
2148
diff
changeset
|
23 --build="`config.guess`" \ |
147
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)' \ |
1454
e0507874b083
fix build scripts of packages: curl gnutls xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
1453
diff
changeset
|
26 --with-gnutls \ |
e0507874b083
fix build scripts of packages: curl gnutls xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
1453
diff
changeset
|
27 --with-libidn \ |
2102 | 28 --enable-sspi \ |
2135
d0303c4e76be
package curl: use pkg-config instead of LIBS for libssh2 and libidn
Mark Brand <mabrand@mabrand.nl>
parents:
2133
diff
changeset
|
29 --with-libssh2 |
2100
1883a336e086
package curl: really keep curl.exe
Mark Brand <mabrand@mabrand.nl>
parents:
2099
diff
changeset
|
30 $(MAKE) -C '$(1)' -j '$(JOBS)' install |
1455
94cdbe762889
test program for package curl
Volker Grabsch <vog@notjusthosting.com>
parents:
1454
diff
changeset
|
31 |
94cdbe762889
test program for package curl
Volker Grabsch <vog@notjusthosting.com>
parents:
1454
diff
changeset
|
32 '$(TARGET)-gcc' \ |
94cdbe762889
test program for package curl
Volker Grabsch <vog@notjusthosting.com>
parents:
1454
diff
changeset
|
33 -W -Wall -Werror -ansi -pedantic \ |
94cdbe762889
test program for package curl
Volker Grabsch <vog@notjusthosting.com>
parents:
1454
diff
changeset
|
34 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-curl.exe' \ |
94cdbe762889
test program for package curl
Volker Grabsch <vog@notjusthosting.com>
parents:
1454
diff
changeset
|
35 `'$(TARGET)-pkg-config' libcurl --cflags --libs` |
147
f787c299f41c
translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
36 endef |