Mercurial > mxe-octave
annotate src/gnutls.mk @ 3080:c0222ce8760d
[MSVC] enable MSVC compilation
- cc-msvc/clgcc/clg++: make WinXP SP3 the default target
- set CCAS=gcc by default
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Sun, 23 Jun 2013 23:33:40 -0400 |
parents | 5ef49fb3299d |
children | cce4bedf4c3d |
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 |
2846 | 5 $(PKG)_CHECKSUM := d3531761f2754e81f72428d482c0689f0a5e064f |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
277
diff
changeset
|
6 $(PKG)_SUBDIR := gnutls-$($(PKG)_VERSION) |
2057 | 7 $(PKG)_FILE := gnutls-$($(PKG)_VERSION).tar.xz |
2768 | 8 $(PKG)_URL := http://ftp.gnu.org/gnu/gnutls/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
9 $(PKG)_DEPS := nettle zlib |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
10 |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2443
diff
changeset
|
12 $(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
|
13 grep '<a class="list name"' | \ |
2768 | 14 $(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
|
15 $(SED) 's,_,.,g' | \ |
2083 | 16 grep -v '^2\.' | \ |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 head -1 |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 endef |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 define $(PKG)_BUILD |
2128 | 21 $(SED) -i 's, sed , $(SED) ,g' '$(1)/gl/tests/Makefile.am' |
2246 | 22 cd '$(1)' && aclocal -I m4 -I gl/m4 -I src/libopts/m4 --install |
2128 | 23 cd '$(1)' && autoconf |
2748
3dc2260fa84d
package gnutls: automake 1.12 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
2365
diff
changeset
|
24 cd '$(1)' && automake --add-missing |
2202
579a86151bbc
update packages ffmpeg gnutls openssl
Mark Brand <mabrand@mabrand.nl>
parents:
2174
diff
changeset
|
25 # 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
|
26 # 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
|
27 cd '$(1)' && ./configure \ |
2997 | 28 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
29 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2906
0dd648719028
fix shared lib build for gnutls
John W. Eaton <jwe@octave.org>
parents:
2877
diff
changeset
|
30 $(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
|
31 --prefix='$(HOST_PREFIX)' \ |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 --disable-nls \ |
1768
d3d08843c62b
improved ./configure arguments for package gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
1743
diff
changeset
|
33 --disable-guile \ |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
34 --with-included-libtasn1 \ |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
35 --with-included-libcfg \ |
1957
56a51a5b74fd
fixed a small typo introduced by changeset e5969b622179
Volker Grabsch <vog@notjusthosting.com>
parents:
1956
diff
changeset
|
36 --without-p11-kit \ |
3080
c0222ce8760d
[MSVC] enable MSVC compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
37 --disable-silent-rules && $(CONFIGURE_POST_HOOK) |
1977
3a54f0ccdd00
package gnutls: add test program
Tony Theodore <tonyt@logyst.com>
parents:
1975
diff
changeset
|
38 |
2997 | 39 $(MAKE) -C '$(1)' -j '$(JOBS)' install |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
40 endef |