Mercurial > mxe-octave
annotate src/gnutls.mk @ 3703:81e0df6182ba
gnutls: update package source download links (Bug #37623)
* update PKG_URL from mxe_devel for source of download of gnutls.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Mon, 01 Sep 2014 11:58:38 -0400 |
parents | c2e1f9b89e6a |
children | 7ef576bdb6bc |
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 |
3602 | 5 $(PKG)_VERSION := 3.2.15 |
6 $(PKG)_CHECKSUM := 31f289b48b0bf054f5f8c16d3b878615d0ae06fc | |
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 |
3703
81e0df6182ba
gnutls: update package source download links (Bug #37623)
John Donoghue <john.donoghue@ieee.org>
parents:
3602
diff
changeset
|
9 $(PKG)_URL := ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2/$($(PKG)_FILE) |
81e0df6182ba
gnutls: update package source download links (Bug #37623)
John Donoghue <john.donoghue@ieee.org>
parents:
3602
diff
changeset
|
10 $(PKG)_URL_2 := http://mirrors.dotsrc.org/gnupg/gnutls/v3.2/$($(PKG)_FILE) |
3267 | 11 $(PKG)_DEPS := gettext nettle pcre zlib |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2443
diff
changeset
|
14 $(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
|
15 grep '<a class="list name"' | \ |
2768 | 16 $(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
|
17 $(SED) 's,_,.,g' | \ |
2083 | 18 grep -v '^2\.' | \ |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 head -1 |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 endef |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 |
3415
a70e260220fc
gnutls.mk: Limit Windows-specific configure options to Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
22 $(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
|
23 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
|
24 LIBS='-lws2_32' |
a70e260220fc
gnutls.mk: Limit Windows-specific configure options to Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
25 |
a70e260220fc
gnutls.mk: Limit Windows-specific configure options to Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
26 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
|
27 $(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
|
28 endif |
a70e260220fc
gnutls.mk: Limit Windows-specific configure options to Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
29 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
|
30 $(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
|
31 endif |
a70e260220fc
gnutls.mk: Limit Windows-specific configure options to Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
32 |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
33 define $(PKG)_BUILD |
2128 | 34 $(SED) -i 's, sed , $(SED) ,g' '$(1)/gl/tests/Makefile.am' |
2246 | 35 cd '$(1)' && aclocal -I m4 -I gl/m4 -I src/libopts/m4 --install |
2128 | 36 cd '$(1)' && autoconf |
2748
3dc2260fa84d
package gnutls: automake 1.12 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
2365
diff
changeset
|
37 cd '$(1)' && automake --add-missing |
3267 | 38 if [ "$(MXE_NATIVE_BUILD)" = no ]; then \ |
39 $(SED) -i 's/libopts_cv_with_libregex=no/libopts_cv_with_libregex=yes/g;' '$(1)/configure'; \ | |
40 fi | |
2202
579a86151bbc
update packages ffmpeg gnutls openssl
Mark Brand <mabrand@mabrand.nl>
parents:
2174
diff
changeset
|
41 # 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
|
42 # 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
|
43 cd '$(1)' && ./configure \ |
2997 | 44 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
45 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2906
0dd648719028
fix shared lib build for gnutls
John W. Eaton <jwe@octave.org>
parents:
2877
diff
changeset
|
46 $(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
|
47 --prefix='$(HOST_PREFIX)' \ |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
48 --disable-nls \ |
1768
d3d08843c62b
improved ./configure arguments for package gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
1743
diff
changeset
|
49 --disable-guile \ |
3267 | 50 --disable-doc \ |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
51 --with-included-libtasn1 \ |
3267 | 52 --with-libregex='$(HOST_PREFIX)' \ |
53 --with-regex-header=pcreposix.h \ | |
3271 | 54 --with-libregex-cflags="`$(MXE_PKG_CONFIG) libpcreposix --cflags`" \ |
55 --with-libregex-libs="`$(MXE_PKG_CONFIG) libpcreposix --libs`" \ | |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
56 --with-included-libcfg \ |
3602 | 57 --enable-local-libopts \ |
1957
56a51a5b74fd
fixed a small typo introduced by changeset e5969b622179
Volker Grabsch <vog@notjusthosting.com>
parents:
1956
diff
changeset
|
58 --without-p11-kit \ |
3267 | 59 --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
|
60 $($(PKG)_CONFIGURE_OPTIONS) \ |
3271 | 61 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
|
62 |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3271
diff
changeset
|
63 $(MAKE) -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)' |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
64 endef |