Mercurial > mxe-octave
annotate src/gnutls.mk @ 4339:07671a76e291
qhull: enable qhull when compiling for 64bit (Bug #50069)
* src/default-octave.mk, src/octave.mk, src/stable-octave.mk:
make qhull always a dependancy, remove --without-qhull
author | John D |
---|---|
date | Thu, 19 Jan 2017 07:43:05 -0500 |
parents | 0a747a64a790 |
children | d5a5b8e659de |
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 |
4315 | 5 $(PKG)_VERSION := 3.4.17 |
6 $(PKG)_CHECKSUM := 52dab0301022199a34888fa6ed97d92e602ccd60 | |
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 |
4315 | 9 $(PKG)_URL := ftp://ftp.gnutls.org/gcrypt/gnutls/v3.4/$($(PKG)_FILE) |
10 $(PKG)_URL_2 := http://mirrors.dotsrc.org/gnupg/gnutls/v3.4/$($(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' |
3824 | 35 cd '$(1)' && autoreconf -fi -I m4 -I gl/m4 -I src/libopts/m4 |
3267 | 36 if [ "$(MXE_NATIVE_BUILD)" = no ]; then \ |
37 $(SED) -i 's/libopts_cv_with_libregex=no/libopts_cv_with_libregex=yes/g;' '$(1)/configure'; \ | |
38 fi | |
2202
579a86151bbc
update packages ffmpeg gnutls openssl
Mark Brand <mabrand@mabrand.nl>
parents:
2174
diff
changeset
|
39 # 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
|
40 # 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
|
41 cd '$(1)' && ./configure \ |
2997 | 42 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
43 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2906
0dd648719028
fix shared lib build for gnutls
John W. Eaton <jwe@octave.org>
parents:
2877
diff
changeset
|
44 $(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
|
45 --prefix='$(HOST_PREFIX)' \ |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
46 --disable-nls \ |
1768
d3d08843c62b
improved ./configure arguments for package gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
1743
diff
changeset
|
47 --disable-guile \ |
3267 | 48 --disable-doc \ |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
49 --with-included-libtasn1 \ |
3267 | 50 --with-libregex='$(HOST_PREFIX)' \ |
51 --with-regex-header=pcreposix.h \ | |
3271 | 52 --with-libregex-cflags="`$(MXE_PKG_CONFIG) libpcreposix --cflags`" \ |
53 --with-libregex-libs="`$(MXE_PKG_CONFIG) libpcreposix --libs`" \ | |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
54 --with-included-libcfg \ |
3602 | 55 --enable-local-libopts \ |
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 |
3947 | 61 $(MAKE) -C '$(1)' -j '$(JOBS)' |
62 $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)' | |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
63 endef |