annotate src/gmp.mk @ 4188:1fdd3ed2e0af

gcc: update to 4.9.4, mpfr update to 3.1.4, gmp update to 6.1.1 * src/build-gcc.mk: update version, checksum * src/gmp.mk: update version, checksum * src/mpfr.mk: update version, checksum * src/native-gcc.mk: update version, checksum
author John D
date Mon, 22 Aug 2016 12:25:14 -0400
parents d47462a144ad
children b7d6a53fa46c
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: 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
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := gmp
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
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
6 $(PKG)_VERSION := 6.1.1
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
7 $(PKG)_CHECKSUM := 757d672e66d8e0afe60ca04735ab11c00d9346e4
843
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 grep -v '^4\.' | \
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 head -1
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 endef
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 endef