Mercurial > mxe-octave
annotate src/gmp.mk @ 3815:deed2268e330
pstoedit: cleanup wmf/emf patch
* src/pstoedit-4-winlibemf.patch: clean up patch
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 28 Feb 2015 14:44:57 -0500 |
parents | d47462a144ad |
children | 1fdd3ed2e0af |
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 := | |
3589
780be3cf5995
gcc-*: pcre=8.35, cloog=0.18.1, gmp=6.0.0, isl=0.12.2
John Donoghue
parents:
3502
diff
changeset
|
6 $(PKG)_VERSION := 6.0.0 |
3781
d47462a144ad
gmp.mk: change version to 6.0.0a (bug #44146)
John Donoghue <john.donoghue@ieee.org>
parents:
3589
diff
changeset
|
7 $(PKG)_CHECKSUM := 360802e3541a3da08ab4b55268c80f799939fddc |
843 | 8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
3781
d47462a144ad
gmp.mk: change version to 6.0.0a (bug #44146)
John Donoghue <john.donoghue@ieee.org>
parents:
3589
diff
changeset
|
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION)a.tar.bz2 |
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 |