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
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 :=
2510
8a41b8f8e79f update package gmp
Mark Brand <mabrand@mabrand.nl>
parents: 2365
diff changeset
6 $(PKG)_CHECKSUM := 12a662456033e21aed3e318aef4177f4000afe3b
843
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 grep -v '^4\.' | \
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 head -1
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 endef
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --without-readline
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 $(MAKE) -C '$(1)' -j '$(JOBS)'
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 $(MAKE) -C '$(1)' -j 1 install
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 endef