Mercurial > mxe-octave
annotate src/gmp.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 | 879b94d8a548 |
children | 1406ec6eeeab |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2243
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. |
843 | 3 |
4 PKG := gmp | |
5 $(PKG)_IGNORE := | |
5616
879b94d8a548
* src/gcc-gmp.mk, src/gmp.mk: update to v6.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
5324
diff
changeset
|
6 $(PKG)_VERSION := 6.2.1 |
879b94d8a548
* src/gcc-gmp.mk, src/gmp.mk: update to v6.2.1
John Donoghue <john.donoghue@ieee.org>
parents:
5324
diff
changeset
|
7 $(PKG)_CHECKSUM := 2dcf34d4a432dbe6cce1475a835d20fe44f75822 |
843 | 8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
4188
1fdd3ed2e0af
gcc: update to 4.9.4, mpfr update to 3.1.4, gmp update to 6.1.1
John D
parents:
3781
diff
changeset
|
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 |
3781
d47462a144ad
gmp.mk: change version to 6.0.0a (bug #44146)
John Donoghue <john.donoghue@ieee.org>
parents:
3589
diff
changeset
|
10 $(PKG)_URL := https://gmplib.org/download/gmp/$($(PKG)_FILE) |
1289
5bf698b5f8fb
add alternative download URL for package gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
843
diff
changeset
|
11 $(PKG)_URL_2 := ftp://ftp.cs.tu-berlin.de/pub/gnu/$(PKG)/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
12 $(PKG)_DEPS := |
843 | 13 |
3076
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
14 ifeq ($(MXE_SYSTEM),msvc) |
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
15 $(PKG)_CONFIGURE_OPTIONS := CC_FOR_BUILD='$(MXE_CC)' CCAS='gcc -c' ac_cv_func_memset='yes' |
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
16 COMMA := , |
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
17 else |
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
18 $(PKG)_CONFIGURE_OPTIONS := CC_FOR_BUILD=gcc |
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
19 endif |
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
20 |
843 | 21 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2510
diff
changeset
|
22 $(WGET) -q -O- 'http://www.gmplib.org/' | \ |
843 | 23 grep '<a href="' | \ |
1354
5646072a0081
improved version recognition of packages: boost gmp plotutils vmime
Volker Grabsch <vog@notjusthosting.com>
parents:
1289
diff
changeset
|
24 $(SED) -n 's,.*gmp-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
843 | 25 grep -v '^4\.' | \ |
26 head -1 | |
27 endef | |
28 | |
29 define $(PKG)_BUILD | |
3076
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
30 $(if $(filter msvc,$(MXE_SYSTEM)), \ |
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
31 $(SED) -i -e '/^#ifdef _MSC_VER/$(COMMA)/^#endif/ {/^ *#define __GMP_EXTERN_INLINE .*/d}' '$(1)/gmp-h.in') |
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
32 cd '$(1)' && ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
33 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
3076
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
34 $($(PKG)_CONFIGURE_OPTIONS) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
35 --prefix='$(HOST_PREFIX)' \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2525
diff
changeset
|
36 $(ENABLE_SHARED_OR_STATIC) \ |
1851
ff2b56abe67e
enable gmpxx in package gmp
Brad Pitcher <bradpitcher@gmail.com>
parents:
1810
diff
changeset
|
37 --enable-cxx \ |
3076
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
38 --without-readline && $(CONFIGURE_POST_HOOK) |
843 | 39 $(MAKE) -C '$(1)' -j '$(JOBS)' |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3076
diff
changeset
|
40 $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)' |
843 | 41 endef |