Mercurial > mxe-octave
annotate src/libgcrypt.mk @ 5579:2734b3818171
Avoid double-free with librsb (bug #58957).
* src/librsb.mk: Add work-around to avoid double-free (provided by Michele
Martone).
* src/mingw-of-sparsersb-1-no-render.patch: Remove patch.
* dist-files.mk: Remove file from list.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Mon, 02 Nov 2020 08:55:18 +0100 |
parents | 8b1f25a7e991 |
children | 5654b4a20987 |
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 := |
5486
8b1f25a7e991
* src/libgcrypt.mk: update to v1.8.6
John Donoghue <john.donoghue@ieee.org>
parents:
5454
diff
changeset
|
6 $(PKG)_VERSION := 1.8.6 |
8b1f25a7e991
* src/libgcrypt.mk: update to v1.8.6
John Donoghue <john.donoghue@ieee.org>
parents:
5454
diff
changeset
|
7 $(PKG)_CHECKSUM := 406b02873833427898d16bcc8483bc5c91c73d4a |
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) |
5454
cd41c2d17ef3
Update dependancies on packages
John Donoghue <john.donoghue@ieee.org>
parents:
5449
diff
changeset
|
11 $(PKG)_DEPS := libgpg_error zlib |
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) |
4607 | 21 $(PKG)_TARGET_CONFIGURE_OPTIONS := ac_cv_sys_symbol_underscore=no --disable-padlock-support |
3262
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 cd '$(1)' && ./configure \ |
2997 | 28 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
29 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2908
b9db9b09d641
fix shared library build for libgcrypt
John W. Eaton <jwe@octave.org>
parents:
2879
diff
changeset
|
30 $(ENABLE_SHARED_OR_STATIC) \ |
3262
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
31 --prefix='$(HOST_PREFIX)' \ |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
32 --with-gpg-error-prefix='$(HOST_PREFIX)' \ |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
33 $($(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
|
34 $(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
|
35 $(SED) -i -e '/^LTCPPASCOMPILE/ {s/$$(LIBTOOL)/& --tag=CC/;}' '$(1)/mpi/Makefile') |
5419
9b64cc7cb488
* src/libgcrypt.mk: dont install docs/bins
John Donoghue <john.donoghue@ieee.org>
parents:
5157
diff
changeset
|
36 $(MAKE) -C '$(1)' -j '$(JOBS)' |
9b64cc7cb488
* src/libgcrypt.mk: dont install docs/bins
John Donoghue <john.donoghue@ieee.org>
parents:
5157
diff
changeset
|
37 $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_PROGS) $(MXE_DISABLE_DOCS) 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
|
38 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
|
39 $(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
|
40 $(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
|
41 fi |
5449
c12e2cbdd9c9
* src/libgcrypt.mk: install pkg config file
John Donoghue <john.donoghue@ieee.org>
parents:
5419
diff
changeset
|
42 # create pkg-config file |
c12e2cbdd9c9
* src/libgcrypt.mk: install pkg config file
John Donoghue <john.donoghue@ieee.org>
parents:
5419
diff
changeset
|
43 $(INSTALL) -d '$(3)$(HOST_LIBDIR)/pkgconfig' |
c12e2cbdd9c9
* src/libgcrypt.mk: install pkg config file
John Donoghue <john.donoghue@ieee.org>
parents:
5419
diff
changeset
|
44 (echo 'Name: $(PKG)'; \ |
c12e2cbdd9c9
* src/libgcrypt.mk: install pkg config file
John Donoghue <john.donoghue@ieee.org>
parents:
5419
diff
changeset
|
45 echo 'Version: $($(PKG)_VERSION)'; \ |
c12e2cbdd9c9
* src/libgcrypt.mk: install pkg config file
John Donoghue <john.donoghue@ieee.org>
parents:
5419
diff
changeset
|
46 echo 'Description: $(PKG)'; \ |
c12e2cbdd9c9
* src/libgcrypt.mk: install pkg config file
John Donoghue <john.donoghue@ieee.org>
parents:
5419
diff
changeset
|
47 echo 'Libs: ' "`$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)libgcrypt-config --libs`"; \ |
c12e2cbdd9c9
* src/libgcrypt.mk: install pkg config file
John Donoghue <john.donoghue@ieee.org>
parents:
5419
diff
changeset
|
48 echo 'Cflags: ' "`$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)libgcrypt-config --cflags`";) \ |
c12e2cbdd9c9
* src/libgcrypt.mk: install pkg config file
John Donoghue <john.donoghue@ieee.org>
parents:
5419
diff
changeset
|
49 > '$(3)$(HOST_LIBDIR)/pkgconfig/$(PKG).pc' |
139
c37e2998b4a2
translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
50 endef |