Mercurial > mxe-octave
annotate src/gnutls.mk @ 2128:e54452862e8b
package gnutls: clean up
-Replace echo and sed hacks
-gai_strerror test seems to work now without hack.
-Disable crywrap for Windows with configure logic.
-Disable doc and tests targets with patch.
-Improve handling of LIBS and .pc file
-zlib is already in GNUTLS_REQUIRES_PRIVATE
-Use LIBS to introduce -lws32_2 into Libs.private
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Thu, 24 Nov 2011 11:47:42 +0100 |
parents | 62df489226f7 |
children | 9549d61af2ae |
rev | line source |
---|---|
641
dab071eac9c0
simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents:
535
diff
changeset
|
1 # This file is part of mingw-cross-env. |
714
29f1ba4559ae
point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents:
641
diff
changeset
|
2 # See doc/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 |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
4 # GnuTLS |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
277
diff
changeset
|
5 PKG := gnutls |
2087
dbc7168d790c
update packages gnutls w32api
Mark Brand <mabrand@mabrand.nl>
parents:
2083
diff
changeset
|
6 $(PKG)_VERSION := 3.0.8 |
dbc7168d790c
update packages gnutls w32api
Mark Brand <mabrand@mabrand.nl>
parents:
2083
diff
changeset
|
7 $(PKG)_CHECKSUM := b62457ff7422034b6f2974633e78c81fca5a8213 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
277
diff
changeset
|
8 $(PKG)_SUBDIR := gnutls-$($(PKG)_VERSION) |
2057 | 9 $(PKG)_FILE := gnutls-$($(PKG)_VERSION).tar.xz |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
277
diff
changeset
|
10 $(PKG)_WEBSITE := http://www.gnu.org/software/gnutls/ |
1889
5790e87b8a3b
update packags: atk glibmm gnutls gst-plugins-base gst-plugins-good gstreamer gtk2 imagemagick x264
Mark Brand <mabrand@mabrand.nl>
parents:
1880
diff
changeset
|
11 $(PKG)_URL := ftp://ftp.gnutls.org/pub/gnutls/$($(PKG)_FILE) |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
277
diff
changeset
|
12 $(PKG)_URL_2 := ftp://ftp.gnupg.org/gcrypt/gnutls/$($(PKG)_FILE) |
2128 | 13 $(PKG)_DEPS := gcc nettle zlib |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 define $(PKG)_UPDATE |
273
8e1fd93483b2
improved version update mechanism (make update) of package gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
16 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
|
17 grep '<a class="list name"' | \ |
190d7ba8703e
improved update script of package gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
1454
diff
changeset
|
18 $(SED) -n 's,.*<a[^>]*>gnutls_\([0-9]*_[0-9]*[02468]_[^<]*\)<.*,\1,p' | \ |
190d7ba8703e
improved update script of package gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
1454
diff
changeset
|
19 $(SED) 's,_,.,g' | \ |
2083 | 20 grep -v '^2\.' | \ |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 head -1 |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 endef |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 define $(PKG)_BUILD |
2128 | 25 $(SED) -i 's, sed , $(SED) ,g' '$(1)/gl/tests/Makefile.am' |
26 cd '$(1)' && autoconf | |
27 cd '$(1)' && automake | |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 cd '$(1)' && ./configure \ |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 --host='$(TARGET)' \ |
1687 | 30 --enable-static \ |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
31 --disable-shared \ |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 --prefix='$(PREFIX)/$(TARGET)' \ |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
33 --disable-nls \ |
1768
d3d08843c62b
improved ./configure arguments for package gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
1743
diff
changeset
|
34 --disable-guile \ |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
35 --with-included-libtasn1 \ |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
36 --with-included-libcfg \ |
1957
56a51a5b74fd
fixed a small typo introduced by changeset e5969b622179
Volker Grabsch <vog@notjusthosting.com>
parents:
1956
diff
changeset
|
37 --without-p11-kit \ |
2122
87d124fd37cc
package gnutls: various improvements
Mark Brand <mabrand@mabrand.nl>
parents:
2087
diff
changeset
|
38 --disable-silent-rules \ |
87d124fd37cc
package gnutls: various improvements
Mark Brand <mabrand@mabrand.nl>
parents:
2087
diff
changeset
|
39 CPPFLAGS='-DWINVER=0x0501' \ |
2128 | 40 LIBS='-lws2_32' \ |
1983
76f9074f9844
package gnutls: bugfix for configure's AR detection on OSX
Tony Theodore <tonyt@logyst.com>
parents:
1977
diff
changeset
|
41 ac_cv_prog_AR='$(TARGET)-ar' |
2124
62df489226f7
package gnutls: install it (oops)
Mark Brand <mabrand@mabrand.nl>
parents:
2122
diff
changeset
|
42 $(MAKE) -C '$(1)' -j '$(JOBS)' install |
1977
3a54f0ccdd00
package gnutls: add test program
Tony Theodore <tonyt@logyst.com>
parents:
1975
diff
changeset
|
43 |
3a54f0ccdd00
package gnutls: add test program
Tony Theodore <tonyt@logyst.com>
parents:
1975
diff
changeset
|
44 '$(TARGET)-gcc' \ |
3a54f0ccdd00
package gnutls: add test program
Tony Theodore <tonyt@logyst.com>
parents:
1975
diff
changeset
|
45 -W -Wall -Werror -ansi -pedantic \ |
3a54f0ccdd00
package gnutls: add test program
Tony Theodore <tonyt@logyst.com>
parents:
1975
diff
changeset
|
46 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-gnutls.exe' \ |
3a54f0ccdd00
package gnutls: add test program
Tony Theodore <tonyt@logyst.com>
parents:
1975
diff
changeset
|
47 `'$(TARGET)-pkg-config' gnutls --cflags --libs` |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
48 endef |