Mercurial > mxe-octave
annotate src/gnutls.mk @ 1454:e0507874b083
fix build scripts of packages: curl gnutls xerces
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Mon, 29 Nov 2010 01:15:43 +0100 |
parents | 3f79849d1f32 |
children | 190d7ba8703e |
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 |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
432
diff
changeset
|
6 $(PKG)_IGNORE := |
1450 | 7 $(PKG)_VERSION := 2.10.3 |
8 $(PKG)_CHECKSUM := b17b23d462ecf829f3b9aff3248d25d4979ebe4f | |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
277
diff
changeset
|
9 $(PKG)_SUBDIR := gnutls-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
277
diff
changeset
|
10 $(PKG)_FILE := gnutls-$($(PKG)_VERSION).tar.bz2 |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
277
diff
changeset
|
11 $(PKG)_WEBSITE := http://www.gnu.org/software/gnutls/ |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
277
diff
changeset
|
12 $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/gnutls/$($(PKG)_FILE) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
277
diff
changeset
|
13 $(PKG)_URL_2 := ftp://ftp.gnupg.org/gcrypt/gnutls/$($(PKG)_FILE) |
1454
e0507874b083
fix build scripts of packages: curl gnutls xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
1450
diff
changeset
|
14 $(PKG)_DEPS := gcc zlib libgcrypt |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 define $(PKG)_UPDATE |
273
8e1fd93483b2
improved version update mechanism (make update) of package gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
17 wget -q -O- 'http://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=tags' | \ |
8e1fd93483b2
improved version update mechanism (make update) of package gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
18 grep '<a class="list subject"' | \ |
840
77ecd36317c2
corrected version recognition regexes of many packages
Volker Grabsch <vog@notjusthosting.com>
parents:
759
diff
changeset
|
19 $(SED) -n 's,.*<a[^>]*>\([0-9]*\.[0-9]*[02468]\.[^<]*\)<.*,\1,p' | \ |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 head -1 |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 endef |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 define $(PKG)_BUILD |
203
5e5c9f9cabcb
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
154
diff
changeset
|
24 echo '/* DEACTIVATED */' > '$(1)/gl/gai_strerror.c' |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
25 $(SED) -i 's, sed , $(SED) ,g' '$(1)/gl/tests/Makefile.in' |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 cd '$(1)' && ./configure \ |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 --host='$(TARGET)' \ |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 --disable-shared \ |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 --prefix='$(PREFIX)/$(TARGET)' \ |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 --with-libgcrypt-prefix='$(PREFIX)/$(TARGET)' \ |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
31 --disable-nls \ |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 --with-included-opencdk \ |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
33 --with-included-libtasn1 \ |
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
34 --with-included-libcfg \ |
1454
e0507874b083
fix build scripts of packages: curl gnutls xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
1450
diff
changeset
|
35 --with-included-lzo \ |
e0507874b083
fix build scripts of packages: curl gnutls xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
1450
diff
changeset
|
36 LIBS='-lz' |
154
b66287a4eb7d
disable parallel builds for package gnutls, because it causes trouble
Volker Grabsch <vog@notjusthosting.com>
parents:
140
diff
changeset
|
37 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= defexec_DATA= |
140
cc9bce2a4451
translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
38 endef |