Mercurial > mxe-octave
annotate src/gnutls.mk @ 3595:fc2b5e19d737
gnutls: update to 3.2.14
* src/gnutls.mk: update to version 3.2.14
* src/gnutls-1-fixes.patch: update to latest mxe_devel patch.
* src/gnutls-2-ldadd.patch: remove patch file.
* dist-files.mk: remove gnutls-2-ldadd.patch.
author | John Donoghue |
---|---|
date | Mon, 12 May 2014 15:59:57 -0400 |
parents | 13be64f9f16d |
children | c2e1f9b89e6a |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2285
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:
393
diff
changeset
|
3 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
277
diff
changeset
|
4 PKG := gnutls |
3595 | 5 $(PKG)_VERSION := 3.2.14 |
6 $(PKG)_CHECKSUM := a660dfb59bd6f907eeb5c73c540cdddeb51bf8ae | |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
277
diff
changeset
|
7 $(PKG)_SUBDIR := gnutls-$($(PKG)_VERSION) |
2057 | 8 $(PKG)_FILE := gnutls-$($(PKG)_VERSION).tar.xz |
2768 | 9 $(PKG)_URL := http://ftp.gnu.org/gnu/gnutls/$($(PKG)_FILE) |
3267 | 10 $(PKG)_DEPS := gettext nettle pcre zlib |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2443
diff
changeset
|
13 $(WGET) -q -O- 'http://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=tags' | \ |
1464
190d7ba8703e
improved update script of package gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
1454
diff
changeset
|
14 grep '<a class="list name"' | \ |
2768 | 15 $(SED) -n 's,.*<a[^>]*>gnutls_\([0-9]*_[0-9]*[012468]_[^<]*\)<.*,\1,p' | \ |
1464
190d7ba8703e
improved update script of package gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
1454
diff
changeset
|
16 $(SED) 's,_,.,g' | \ |
2083 | 17 grep -v '^2\.' | \ |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 head -1 |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 endef |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 |
3415
a70e260220fc
gnutls.mk: Limit Windows-specific configure options to Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
21 $(PKG)_WINDOWS_CONFIGURE_OPTIONS := \ |
a70e260220fc
gnutls.mk: Limit Windows-specific configure options to Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
22 CPPFLAGS='-DWINVER=0x0501 -DAI_ADDRCONFIG=0x0400 -DIPV6_V6ONLY=27' \ |
a70e260220fc
gnutls.mk: Limit Windows-specific configure options to Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
23 LIBS='-lws2_32' |
a70e260220fc
gnutls.mk: Limit Windows-specific configure options to Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
24 |
a70e260220fc
gnutls.mk: Limit Windows-specific configure options to Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
25 ifeq ($(MXE_SYSTEM),mingw) |
a70e260220fc
gnutls.mk: Limit Windows-specific configure options to Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
26 $(PKG)_CONFIGURE_OPTIONS := $($(PKG)_WINDOWS_CONFIGURE_OPTIONS) |
a70e260220fc
gnutls.mk: Limit Windows-specific configure options to Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
27 endif |
a70e260220fc
gnutls.mk: Limit Windows-specific configure options to Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
28 ifeq ($(MXE_SYSTEM),msvc) |
a70e260220fc
gnutls.mk: Limit Windows-specific configure options to Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
29 $(PKG)_CONFIGURE_OPTIONS := $($(PKG)_WINDOWS_CONFIGURE_OPTIONS) |
a70e260220fc
gnutls.mk: Limit Windows-specific configure options to Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
30 endif |
a70e260220fc
gnutls.mk: Limit Windows-specific configure options to Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
31 |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 define $(PKG)_BUILD |
2128 | 33 $(SED) -i 's, sed , $(SED) ,g' '$(1)/gl/tests/Makefile.am' |
2246 | 34 cd '$(1)' && aclocal -I m4 -I gl/m4 -I src/libopts/m4 --install |
2128 | 35 cd '$(1)' && autoconf |
2748
3dc2260fa84d
package gnutls: automake 1.12 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
2365
diff
changeset
|
36 cd '$(1)' && automake --add-missing |
3267 | 37 if [ "$(MXE_NATIVE_BUILD)" = no ]; then \ |
38 $(SED) -i 's/libopts_cv_with_libregex=no/libopts_cv_with_libregex=yes/g;' '$(1)/configure'; \ | |
39 fi | |
2202
579a86151bbc
update packages ffmpeg gnutls openssl
Mark Brand <mabrand@mabrand.nl>
parents:
2174
diff
changeset
|
40 # AI_ADDRCONFIG referenced by src/serv.c but not provided by mingw. |
579a86151bbc
update packages ffmpeg gnutls openssl
Mark Brand <mabrand@mabrand.nl>
parents:
2174
diff
changeset
|
41 # Value taken from http://msdn.microsoft.com/en-us/library/windows/desktop/ms737530%28v=vs.85%29.aspx |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
42 cd '$(1)' && ./configure \ |
2997 | 43 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
44 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2906
0dd648719028
fix shared lib build for gnutls
John W. Eaton <jwe@octave.org>
parents:
2877
diff
changeset
|
45 $(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
|
46 --prefix='$(HOST_PREFIX)' \ |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
47 --disable-nls \ |
1768
d3d08843c62b
improved ./configure arguments for package gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
1743
diff
changeset
|
48 --disable-guile \ |
3267 | 49 --disable-doc \ |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
50 --with-included-libtasn1 \ |
3267 | 51 --with-libregex='$(HOST_PREFIX)' \ |
52 --with-regex-header=pcreposix.h \ | |
3271 | 53 --with-libregex-cflags="`$(MXE_PKG_CONFIG) libpcreposix --cflags`" \ |
54 --with-libregex-libs="`$(MXE_PKG_CONFIG) libpcreposix --libs`" \ | |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
55 --with-included-libcfg \ |
1957
56a51a5b74fd
fixed a small typo introduced by changeset e5969b622179
Volker Grabsch <vog@notjusthosting.com>
parents:
1956
diff
changeset
|
56 --without-p11-kit \ |
3267 | 57 --disable-silent-rules \ |
3415
a70e260220fc
gnutls.mk: Limit Windows-specific configure options to Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
58 $($(PKG)_CONFIGURE_OPTIONS) \ |
3271 | 59 ac_cv_prog_AR='$(MXE_AR)' && $(CONFIGURE_POST_HOOK) |
1977
3a54f0ccdd00
package gnutls: add test program
Tony Theodore <tonyt@logyst.com>
parents:
1975
diff
changeset
|
60 |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3271
diff
changeset
|
61 $(MAKE) -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)' |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
62 endef |