Mercurial > mxe-octave
annotate src/gmp.mk @ 3048:5ef49fb3299d
treat gcc and binutils as build tools
use a separate target for building the cmake toolchain file
don't unpack gcc or binutils if we are using the system compiler
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 14 Jun 2013 16:51:29 -0400 |
parents | bcc26ffe9a0f |
children | b39e8dc859f7 |
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 := | |
2510 | 6 $(PKG)_CHECKSUM := 12a662456033e21aed3e318aef4177f4000afe3b |
843 | 7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 | |
1499
9e587ca588dc
remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents:
1354
diff
changeset
|
9 $(PKG)_URL := ftp://ftp.gmplib.org/pub/$(PKG)-$($(PKG)_VERSION)/$($(PKG)_FILE) |
1289
5bf698b5f8fb
add alternative download URL for package gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
843
diff
changeset
|
10 $(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
|
11 $(PKG)_DEPS := |
843 | 12 |
13 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2510
diff
changeset
|
14 $(WGET) -q -O- 'http://www.gmplib.org/' | \ |
843 | 15 grep '<a href="' | \ |
1354
5646072a0081
improved version recognition of packages: boost gmp plotutils vmime
Volker Grabsch <vog@notjusthosting.com>
parents:
1289
diff
changeset
|
16 $(SED) -n 's,.*gmp-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
843 | 17 grep -v '^4\.' | \ |
18 head -1 | |
19 endef | |
20 | |
21 define $(PKG)_BUILD | |
1657
19fefe2bffcd
package gmp: wine confuses the native build so set CC_FOR_BUILD
Tony Theodore <tonyt@logyst.com>
parents:
1499
diff
changeset
|
22 cd '$(1)' && CC_FOR_BUILD=gcc ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
23 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
24 --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
|
25 $(ENABLE_SHARED_OR_STATIC) \ |
1851
ff2b56abe67e
enable gmpxx in package gmp
Brad Pitcher <bradpitcher@gmail.com>
parents:
1810
diff
changeset
|
26 --enable-cxx \ |
843 | 27 --without-readline |
28 $(MAKE) -C '$(1)' -j '$(JOBS)' | |
29 $(MAKE) -C '$(1)' -j 1 install | |
30 endef |