annotate src/libgpg_error.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 11f8ec654cd4
children 70873001835f
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: 2153
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: 306
diff changeset
3
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
4 PKG := libgpg_error
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
5 $(PKG)_IGNORE :=
3083
1f1e0dc9a135 [MSVC] enable libgpg_error compilation and update to 1.11
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
6 $(PKG)_CHECKSUM := be209b013652add5c7e2c473ea114f58203cc6cd
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
7 $(PKG)_SUBDIR := libgpg-error-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
8 $(PKG)_FILE := libgpg-error-$($(PKG)_VERSION).tar.bz2
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
9 $(PKG)_URL := ftp://ftp.gnupg.org/gcrypt/libgpg-error/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
10 $(PKG)_DEPS :=
138
78553e232e35 translated package: libgpg_error
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
78553e232e35 translated package: libgpg_error
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
13 $(WGET) -q -O- 'ftp://ftp.gnupg.org/gcrypt/libgpg-error/' | \
1495
2cc9a6209a69 upgrade package libgpg_error
Mark Brand <mabrand@mabrand.nl>
parents: 1458
diff changeset
14 $(SED) -n 's,.*libgpg-error-\([1-9]\.[1-9][0-9][^>]*\)\.tar.*,\1,p' | \
138
78553e232e35 translated package: libgpg_error
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 tail -1
78553e232e35 translated package: libgpg_error
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 endef
78553e232e35 translated package: libgpg_error
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17
78553e232e35 translated package: libgpg_error
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 define $(PKG)_BUILD
78553e232e35 translated package: libgpg_error
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 cd '$(1)' && ./configure \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2878
diff changeset
20 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
21 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2878
diff changeset
22 $(ENABLE_SHARED_OR_STATIC) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 3006
diff changeset
23 --prefix='$(HOST_PREFIX)' \
1153
286c23180408 bugfix for package libgpg_error
Tony Theodore <tonyt@logyst.com>
parents: 1146
diff changeset
24 --disable-nls \
3083
1f1e0dc9a135 [MSVC] enable libgpg_error compilation and update to 1.11
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
25 --disable-languages && $(CONFIGURE_POST_HOOK)
1503
0fc1e472efd1 package libgpg_error: only build and install in src directory
Tony Theodore <tonyt@logyst.com>
parents: 1502
diff changeset
26 $(MAKE) -C '$(1)/src' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3216
diff changeset
27 $(MAKE) -C '$(1)/src' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= DESTDIR='$(3)'
3216
11f8ec654cd4 Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents: 3083
diff changeset
28 if [ $(MXE_NATIVE_BUILD) = no ]; then \
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3216
diff changeset
29 $(INSTALL) -m755 '$(3)$(HOST_BINDIR)/gpg-error-config' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)gpg-error-config'; \
3216
11f8ec654cd4 Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents: 3083
diff changeset
30 fi
138
78553e232e35 translated package: libgpg_error
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 endef