Mercurial > mxe-octave
annotate src/libgcrypt.mk @ 4052:27715c9fcdd9
of-io: update to v2.2.11
* src/of-io.mk: update version, checksum
* build_packages.m: update io version
author | John D |
---|---|
date | Thu, 22 Oct 2015 23:14:57 -0400 |
parents | 1f3183556bcf |
children | 3d768e8ec06a |
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 := |
3679 | 6 $(PKG)_VERSION := 1.6.1 |
7 $(PKG)_CHECKSUM := f03d9b63ac3b17a6972fc11150d136925b702f02 | |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
8 $(PKG)_SUBDIR := libgcrypt-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
9 $(PKG)_FILE := libgcrypt-$($(PKG)_VERSION).tar.bz2 |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
10 $(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
|
11 $(PKG)_DEPS := libgpg_error |
139
c37e2998b4a2
translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 |
c37e2998b4a2
translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2442
diff
changeset
|
14 $(WGET) -q -O- 'ftp://ftp.gnupg.org/gcrypt/libgcrypt/' | \ |
139
c37e2998b4a2
translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 $(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
|
16 grep -v '^1\.4\.' | \ |
139
c37e2998b4a2
translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 tail -1 |
c37e2998b4a2
translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 endef |
c37e2998b4a2
translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 |
3262
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
20 ifeq ($(TARGET),x86_64-w64-mingw32) |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
21 $(PKG)_TARGET_CONFIGURE_OPTIONS := ac_cv_sys_symbol_underscore=no |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
22 else |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
23 $(PKG)_TARGET_CONFIGURE_OPTIONS := |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
24 endif |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
25 |
139
c37e2998b4a2
translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 define $(PKG)_BUILD |
3262
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
27 sed -i -e '/^ *;/d' -e '/^ *$$/d' '$(1)/src/libgcrypt.def' |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
28 cd '$(1)' && ./configure \ |
2997 | 29 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
30 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2908
b9db9b09d641
fix shared library build for libgcrypt
John W. Eaton <jwe@octave.org>
parents:
2879
diff
changeset
|
31 $(ENABLE_SHARED_OR_STATIC) \ |
3262
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
32 --prefix='$(HOST_PREFIX)' \ |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
33 --with-gpg-error-prefix='$(HOST_PREFIX)' \ |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
34 $($(PKG)_TARGET_CONFIGURE_OPTIONS) && $(CONFIGURE_POST_HOOK) |
3084
6f7c1f4e9b2b
[MSVC] enable libcrypt compilation and update to 1.5.2
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
35 $(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
|
36 $(SED) -i -e '/^LTCPPASCOMPILE/ {s/$$(LIBTOOL)/& --tag=CC/;}' '$(1)/mpi/Makefile') |
3370
920b1cd9c5ce
use -j 1 for libgcrypt make install rule
John W. Eaton <jwe@octave.org>
parents:
3306
diff
changeset
|
37 $(MAKE) -C '$(1)' -j '$(JOBS)' all bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= DESTDIR='$(3)' |
920b1cd9c5ce
use -j 1 for libgcrypt make install rule
John W. Eaton <jwe@octave.org>
parents:
3306
diff
changeset
|
38 $(MAKE) -C '$(1)' -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:
3084
diff
changeset
|
39 if [ $(MXE_NATIVE_BUILD) = no ]; then \ |
3306
2b4e9822f50b
Undo changeset 2ccb71581ee9, 70873001835f, 724c7c2201aa and create BUILD_TOOLS_PREFIX/bin
John Donoghue <john.donoghue@ieee.org>
parents:
3304
diff
changeset
|
40 $(INSTALL) -d '$(3)$(BUILD_TOOLS_PREFIX)/bin'; \ |
2b4e9822f50b
Undo changeset 2ccb71581ee9, 70873001835f, 724c7c2201aa and create BUILD_TOOLS_PREFIX/bin
John Donoghue <john.donoghue@ieee.org>
parents:
3304
diff
changeset
|
41 $(INSTALL) -m755 '$(3)$(HOST_BINDIR)/libgcrypt-config' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)libgcrypt-config'; \ |
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
|
42 fi |
139
c37e2998b4a2
translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
43 endef |