Mercurial > mxe-octave
annotate src/nettle.mk @ 5893:53a6c7df43f8
Mesa 3D: Update to version 21.1.8.
* src/mesa.mk: Update version and checksum.
* src/mesa-2-uninitialized.patch: Remove file.
* dist-files.mk: Remove file from list.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 16 Sep 2021 22:37:45 +0200 |
parents | 2042dd661793 |
children | 4bb2a069234f |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2312
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. |
2056 | 3 |
4 PKG := nettle | |
5 $(PKG)_IGNORE := | |
5788
2042dd661793
* src/nettle.mk: update to v3.7.3
John Donoghue <john.donoghue@ieee.org>
parents:
5711
diff
changeset
|
6 $(PKG)_VERSION := 3.7.3 |
2042dd661793
* src/nettle.mk: update to v3.7.3
John Donoghue <john.donoghue@ieee.org>
parents:
5711
diff
changeset
|
7 $(PKG)_CHECKSUM := 9adfadd4ae4104c8aceb38bf16064d65d7edbcce |
2056 | 8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz | |
10 $(PKG)_URL := http://www.lysator.liu.se/~nisse/archive/$($(PKG)_FILE) | |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
11 $(PKG)_DEPS := gmp |
2056 | 12 |
13 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
14 $(WGET) -q -O- 'http://www.lysator.liu.se/~nisse/archive/' | \ |
2086
009e1aaa8949
packages libffi nettle: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents:
2056
diff
changeset
|
15 $(SED) -n 's,.*nettle-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
2312
c33580e28818
package nettle: fix update macro
Tony Theodore <tonyt@logyst.com>
parents:
2086
diff
changeset
|
16 grep -v 'pre' | \ |
4838 | 17 grep -v 'rc' | \ |
4989
0cf6aa8f90de
update libidn2 to v2.1.1a, gnutls to v3.6.6, nettle v3.4.1
John Donoghue
parents:
4838
diff
changeset
|
18 $(SORT) | |
2086
009e1aaa8949
packages libffi nettle: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents:
2056
diff
changeset
|
19 tail -1 |
2056 | 20 endef |
21 | |
3077
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
22 ifeq ($(MXE_SYSTEM),msvc) |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
23 define $(PKG)_BUILD |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
24 cd '$(1)' && ./configure \ |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
25 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
26 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
27 CCAS=gcc \ |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
28 --disable-shared \ |
5392
46ed1bd834eb
* src/nettle.mk: update to v3.6
John Donoghue <john.donoghue@ieee.org>
parents:
5108
diff
changeset
|
29 --disable-documentation \ |
3077
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
30 --prefix='$(HOST_PREFIX)' |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
31 |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
32 $(MAKE) -C '$(1)' -j '$(JOBS)' getopt.o getopt1.o |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
33 $(MAKE) -C '$(1)' -j '$(JOBS)' all-here |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
34 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_F77)' '$(1)/libnettle.a' \ |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
35 --install '$(INSTALL)' --libdir '$(1)' --bindir '$(1)' -lgmp |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
36 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_F77)' '$(1)/libhogweed.a' \ |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
37 --install '$(INSTALL)' --libdir '$(1)' --bindir '$(1)' -lnettle -lgmp |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
38 $(MAKE) -C '$(1)' -j '$(JOBS)' |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
39 |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3261
diff
changeset
|
40 $(MAKE) -C '$(1)' -j 1 install-info install-headers install-pkgconfig DESTDIR='$(3)' |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3261
diff
changeset
|
41 $(MAKE) -C '$(1)/tools' -j 1 install DESTDIR='$(3)' |
3077
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
42 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_F77)' '$(1)/libnettle.a' \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3261
diff
changeset
|
43 --install '$(INSTALL)' --libdir '$(3)$(HOST_LIBDIR)' --bindir '$(3)$(HOST_BINDIR)' -lgmp |
3077
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
44 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_F77)' '$(1)/libhogweed.a' \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3261
diff
changeset
|
45 --install '$(INSTALL)' --libdir '$(3)$(HOST_LIBDIR)' --bindir '$(3)$(HOST_BINDIR)' -lnettle -lgmp |
3077
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
46 endef |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
47 else |
2056 | 48 define $(PKG)_BUILD |
49 cd '$(1)' && ./configure \ | |
2997 | 50 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
51 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2910
ec254dafca46
restore original shared lib build rules for nettle package
John W. Eaton <jwe@octave.org>
parents:
2888
diff
changeset
|
52 $(ENABLE_SHARED_OR_STATIC) \ |
5392
46ed1bd834eb
* src/nettle.mk: update to v3.6
John Donoghue <john.donoghue@ieee.org>
parents:
5108
diff
changeset
|
53 --disable-documentation \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
54 --prefix='$(HOST_PREFIX)' |
3416
8ed872f9dbc7
nettle.mk: Avoid install errors in subdirs.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
55 $(MAKE) -C '$(1)' -j '$(JOBS)' SUBDIRS= |
8ed872f9dbc7
nettle.mk: Avoid install errors in subdirs.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
56 $(MAKE) -C '$(1)' -j 1 SUBDIRS= install DESTDIR='$(3)' |
2056 | 57 endef |
3077
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
58 endif |