annotate src/curl.mk @ 4248:64063cd35eb2

curl: enable winssl if compiling for windows * src/curl.mk: add --with-winssl to configure options if compiling for windows
author John D
date Tue, 15 Nov 2016 20:18:19 -0500
parents 8a01ad4817a1
children c5723e39a80e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See 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
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 274
diff changeset
4 PKG := curl
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 432
diff changeset
5 $(PKG)_IGNORE :=
4167
892b4258cb8b curl: update to 7.49.1
John Donoghue
parents: 4134
diff changeset
6 $(PKG)_VERSION := 7.49.1
892b4258cb8b curl: update to 7.49.1
John Donoghue
parents: 4134
diff changeset
7 $(PKG)_CHECKSUM := 04b04d6bfb868de6a9e8dba647fe83ed216e9243
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 274
diff changeset
8 $(PKG)_SUBDIR := curl-$($(PKG)_VERSION)
2799
7d4c8f2179f6 update package curl
Mark Brand <mabrand@mabrand.nl>
parents: 2683
diff changeset
9 $(PKG)_FILE := curl-$($(PKG)_VERSION).tar.lzma
306
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)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
11 $(PKG)_DEPS := gnutls libidn libssh2
147
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
4248
64063cd35eb2 curl: enable winssl if compiling for windows
John D
parents: 4207
diff changeset
13 $(PKG)_CONFIGURE_OPTS :=
64063cd35eb2 curl: enable winssl if compiling for windows
John D
parents: 4207
diff changeset
14 ifeq ($(MXE_WINDOWS_BUILD),yes)
64063cd35eb2 curl: enable winssl if compiling for windows
John D
parents: 4207
diff changeset
15 $(PKG)_CONFIGURE_OPTS := "--with-winssl"
64063cd35eb2 curl: enable winssl if compiling for windows
John D
parents: 4207
diff changeset
16 endif
64063cd35eb2 curl: enable winssl if compiling for windows
John D
parents: 4207
diff changeset
17
147
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
19 $(WGET) -q -O- 'http://curl.haxx.se/download/?C=M;O=D' | \
1453
050d1e842565 improved update script of package curl
Volker Grabsch <vog@notjusthosting.com>
parents: 1351
diff changeset
20 $(SED) -n 's,.*curl-\([0-9][^"]*\)\.tar.*,\1,p' | \
147
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 head -1
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 endef
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 define $(PKG)_BUILD
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 cd '$(1)' && ./configure \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2905
diff changeset
26 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
27 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2905
5a985098f4c9 fix shared lib build for curl
John W. Eaton <jwe@octave.org>
parents: 2881
diff changeset
28 $(ENABLE_SHARED_OR_STATIC) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
29 --prefix='$(HOST_PREFIX)' \
4248
64063cd35eb2 curl: enable winssl if compiling for windows
John D
parents: 4207
diff changeset
30 $($(PKG)_CONFIGURE_OPTS) \
4207
8a01ad4817a1 curl: disable openssl check
John D
parents: 4167
diff changeset
31 --without-ssl \
1454
e0507874b083 fix build scripts of packages: curl gnutls xerces
Volker Grabsch <vog@notjusthosting.com>
parents: 1453
diff changeset
32 --with-gnutls \
e0507874b083 fix build scripts of packages: curl gnutls xerces
Volker Grabsch <vog@notjusthosting.com>
parents: 1453
diff changeset
33 --with-libidn \
2102
57ec66c86927 package curl: enable sspi
Mark Brand <mabrand@mabrand.nl>
parents: 2100
diff changeset
34 --enable-sspi \
2800
2334fd921073 package curl: enable ipv6
Mark Brand <mabrand@mabrand.nl>
parents: 2799
diff changeset
35 --enable-ipv6 \
3086
9b848bfe6f10 [MSVC] enable curl compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
36 --with-libssh2 && $(CONFIGURE_POST_HOOK)
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3268
diff changeset
37 $(MAKE) -C '$(1)' -j '$(JOBS)' DESTDIR='$(3)' install
1455
94cdbe762889 test program for package curl
Volker Grabsch <vog@notjusthosting.com>
parents: 1454
diff changeset
38
147
f787c299f41c translated package: curl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 endef