annotate src/gnutls.mk @ 3293:cf6f40cededb

Support file list generation in packages. For the following modules: - arpack - blas - build-autoconf - build-automake - build-cmake - build-gperf - build-libtool - build-msvctools - build-pkg-config - build-texinfo - bzip2 - curl - dbus - expat - fftw - fltk - fontconfig - freetype - gettext - glpk - gmp - gnuplot - gnutls - graphicsmagick - hdf5 - jasper - jpeg - lapack - lcms - libgcrypt - libgpg_error - libiconv - libidn - libpng - libssh2 - libxml2 - ncurses - nettle - openssl - pcre - pstoedit - zlib - qhull - qrupdate - qscintilla - qt - readline - suitesparse - texinfo - tiff
author Michael Goffioul <michael.goffioul@gmail.com>
date Sat, 09 Nov 2013 23:28:04 -0500
parents 17b6f55e42c5
children a70e260220fc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
3267
cce4bedf4c3d new version of gnutls
John W. Eaton <jwe@octave.org>
parents: 3080
diff changeset
5 $(PKG)_CHECKSUM := 18f5fffd1a0384944cb76cbedc0720c4726470f4
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 277
diff changeset
6 $(PKG)_SUBDIR := gnutls-$($(PKG)_VERSION)
2057
8ad4a821fc50 upgrade package gnutls
Mark Brand <mabrand@mabrand.nl>
parents: 2025
diff changeset
7 $(PKG)_FILE := gnutls-$($(PKG)_VERSION).tar.xz
2768
172cd8ec1feb update package gnutls
Mark Brand <mabrand@mabrand.nl>
parents: 2641
diff changeset
8 $(PKG)_URL := http://ftp.gnu.org/gnu/gnutls/$($(PKG)_FILE)
3267
cce4bedf4c3d new version of gnutls
John W. Eaton <jwe@octave.org>
parents: 3080
diff changeset
9 $(PKG)_DEPS := gettext nettle pcre 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
172cd8ec1feb update package gnutls
Mark Brand <mabrand@mabrand.nl>
parents: 2641
diff changeset
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
032aac2a8e7f update package gnutls
Mark Brand <mabrand@mabrand.nl>
parents: 2082
diff changeset
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
e54452862e8b package gnutls: clean up
Mark Brand <mabrand@mabrand.nl>
parents: 2124
diff changeset
21 $(SED) -i 's, sed , $(SED) ,g' '$(1)/gl/tests/Makefile.am'
2246
572d4140383a update package gnutls
Mark Brand <mabrand@mabrand.nl>
parents: 2229
diff changeset
22 cd '$(1)' && aclocal -I m4 -I gl/m4 -I src/libopts/m4 --install
2128
e54452862e8b package gnutls: clean up
Mark Brand <mabrand@mabrand.nl>
parents: 2124
diff changeset
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
3267
cce4bedf4c3d new version of gnutls
John W. Eaton <jwe@octave.org>
parents: 3080
diff changeset
25 if [ "$(MXE_NATIVE_BUILD)" = no ]; then \
cce4bedf4c3d new version of gnutls
John W. Eaton <jwe@octave.org>
parents: 3080
diff changeset
26 $(SED) -i 's/libopts_cv_with_libregex=no/libopts_cv_with_libregex=yes/g;' '$(1)/configure'; \
cce4bedf4c3d new version of gnutls
John W. Eaton <jwe@octave.org>
parents: 3080
diff changeset
27 fi
2202
579a86151bbc update packages ffmpeg gnutls openssl
Mark Brand <mabrand@mabrand.nl>
parents: 2174
diff changeset
28 # 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
29 # 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
30 cd '$(1)' && ./configure \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2909
diff changeset
31 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
32 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2906
0dd648719028 fix shared lib build for gnutls
John W. Eaton <jwe@octave.org>
parents: 2877
diff changeset
33 $(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
34 --prefix='$(HOST_PREFIX)' \
140
cc9bce2a4451 translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 --disable-nls \
1768
d3d08843c62b improved ./configure arguments for package gnutls
Volker Grabsch <vog@notjusthosting.com>
parents: 1743
diff changeset
36 --disable-guile \
3267
cce4bedf4c3d new version of gnutls
John W. Eaton <jwe@octave.org>
parents: 3080
diff changeset
37 --disable-doc \
140
cc9bce2a4451 translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 --with-included-libtasn1 \
3267
cce4bedf4c3d new version of gnutls
John W. Eaton <jwe@octave.org>
parents: 3080
diff changeset
39 --with-libregex='$(HOST_PREFIX)' \
cce4bedf4c3d new version of gnutls
John W. Eaton <jwe@octave.org>
parents: 3080
diff changeset
40 --with-regex-header=pcreposix.h \
3271
17b6f55e42c5 Change gnutls configure options to use MXE_XXX tools
test
parents: 3267
diff changeset
41 --with-libregex-cflags="`$(MXE_PKG_CONFIG) libpcreposix --cflags`" \
17b6f55e42c5 Change gnutls configure options to use MXE_XXX tools
test
parents: 3267
diff changeset
42 --with-libregex-libs="`$(MXE_PKG_CONFIG) libpcreposix --libs`" \
140
cc9bce2a4451 translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
43 --with-included-libcfg \
1957
56a51a5b74fd fixed a small typo introduced by changeset e5969b622179
Volker Grabsch <vog@notjusthosting.com>
parents: 1956
diff changeset
44 --without-p11-kit \
3267
cce4bedf4c3d new version of gnutls
John W. Eaton <jwe@octave.org>
parents: 3080
diff changeset
45 --disable-silent-rules \
cce4bedf4c3d new version of gnutls
John W. Eaton <jwe@octave.org>
parents: 3080
diff changeset
46 CPPFLAGS='-DWINVER=0x0501 -DAI_ADDRCONFIG=0x0400 -DIPV6_V6ONLY=27' \
cce4bedf4c3d new version of gnutls
John W. Eaton <jwe@octave.org>
parents: 3080
diff changeset
47 LIBS='-lws2_32' \
3271
17b6f55e42c5 Change gnutls configure options to use MXE_XXX tools
test
parents: 3267
diff changeset
48 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
49
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3271
diff changeset
50 $(MAKE) -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)'
140
cc9bce2a4451 translated package: gnutls
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
51 endef