annotate src/libgcrypt.mk @ 3216:11f8ec654cd4

Avoid copying or linking files that are the same when doing native build Prefer $(INSTALL) over $(LN_SF).
author John W. Eaton <jwe@octave.org>
date Wed, 07 Aug 2013 00:41:50 -0400
parents 6f7c1f4e9b2b
children fa1867a474e4
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 := libgcrypt
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 :=
3084
6f7c1f4e9b2b [MSVC] enable libcrypt compilation and update to 1.5.2
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
6 $(PKG)_CHECKSUM := c9998383532ba3e8bcaf690f2f0d65e814b48d2f
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
7 $(PKG)_SUBDIR := libgcrypt-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
8 $(PKG)_FILE := libgcrypt-$($(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/libgcrypt/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3033
diff changeset
10 $(PKG)_DEPS := libgpg_error
139
c37e2998b4a2 translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
c37e2998b4a2 translated package: libgcrypt
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: 2442
diff changeset
13 $(WGET) -q -O- 'ftp://ftp.gnupg.org/gcrypt/libgcrypt/' | \
139
c37e2998b4a2 translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 $(SED) -n 's,.*libgcrypt-\([0-9][^>]*\)\.tar.*,\1,p' | \
2141
574353ed434c package libgcrypt: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents: 2140
diff changeset
15 grep -v '^1\.4\.' | \
139
c37e2998b4a2 translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 tail -1
c37e2998b4a2 translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
c37e2998b4a2 translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
c37e2998b4a2 translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
2908
b9db9b09d641 fix shared library build for libgcrypt
John W. Eaton <jwe@octave.org>
parents: 2879
diff changeset
20 cd '$(1)' && autoreconf && ./configure \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2908
diff changeset
21 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2908
b9db9b09d641 fix shared library build for libgcrypt
John W. Eaton <jwe@octave.org>
parents: 2879
diff changeset
23 $(ENABLE_SHARED_OR_STATIC) \
3084
6f7c1f4e9b2b [MSVC] enable libcrypt compilation and update to 1.5.2
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
24 --prefix='$(HOST_PREFIX)' && $(CONFIGURE_POST_HOOK)
6f7c1f4e9b2b [MSVC] enable libcrypt compilation and update to 1.5.2
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
25 $(if $(filter msvc,$(MXE_SYSTEM)), \
6f7c1f4e9b2b [MSVC] enable libcrypt compilation and update to 1.5.2
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
26 $(SED) -i -e '/^LTCPPASCOMPILE/ {s/$$(LIBTOOL)/& --tag=CC/;}' '$(1)/mpi/Makefile')
139
c37e2998b4a2 translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
3216
11f8ec654cd4 Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents: 3084
diff changeset
28 if [ $(MXE_NATIVE_BUILD) = no ]; then \
11f8ec654cd4 Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents: 3084
diff changeset
29 $(INSTALL) -m755 '$(HOST_BINDIR)/libgcrypt-config' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)libgcrypt-config'; \
11f8ec654cd4 Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents: 3084
diff changeset
30 fi
139
c37e2998b4a2 translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 endef