annotate src/libgcrypt.mk @ 3033:6de7af4502e9

backout 316b79f1a41b; native configure scripts shoudl not be installed with prefix
author John W. Eaton <jwe@octave.org>
date Sun, 09 Jun 2013 11:20:40 -0400
parents 951da75fd09c
children 5ef49fb3299d
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 :=
2140
0504c33af9fd Revert "update package libgcrypt" (oops)
Mark Brand <mabrand@mabrand.nl>
parents: 2139
diff changeset
6 $(PKG)_CHECKSUM := 3e776d44375dc1a710560b98ae8437d5da6e32cf
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)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
10 $(PKG)_DEPS := gcc 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) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 3006
diff changeset
24 --prefix='$(HOST_PREFIX)'
139
c37e2998b4a2 translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3027
diff changeset
26 $(LN_SF) '$(HOST_BINDIR)/libgcrypt-config' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)libgcrypt-config'
139
c37e2998b4a2 translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 endef