annotate src/gmp.mk @ 1657:19fefe2bffcd

package gmp: wine confuses the native build so set CC_FOR_BUILD
author Tony Theodore <tonyt@logyst.com>
date Wed, 16 Mar 2011 23:47:46 +1100
parents 9e587ca588dc
children 3cecbd3a603b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
843
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # This file is part of mingw-cross-env.
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2 # See doc/index.html for further information.
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 # GMP
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 PKG := gmp
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_VERSION := 5.0.1
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_CHECKSUM := 6340edc7ceb95f9015a758c7c0d196eb0f441d49
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 $(PKG)_WEBSITE := http://www.gmplib.org/
1499
9e587ca588dc remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents: 1354
diff changeset
12 $(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
13 $(PKG)_URL_2 := ftp://ftp.cs.tu-berlin.de/pub/gnu/$(PKG)/$($(PKG)_FILE)
843
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 $(PKG)_DEPS := gcc
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 define $(PKG)_UPDATE
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 wget -q -O- 'http://www.gmplib.org/' | \
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 grep '<a href="' | \
1354
5646072a0081 improved version recognition of packages: boost gmp plotutils vmime
Volker Grabsch <vog@notjusthosting.com>
parents: 1289
diff changeset
19 $(SED) -n 's,.*gmp-\([0-9][^>]*\)\.tar.*,\1,p' | \
843
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 grep -v '^4\.' | \
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 head -1
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 endef
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 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
25 cd '$(1)' && CC_FOR_BUILD=gcc ./configure \
843
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --host='$(TARGET)' \
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --prefix='$(PREFIX)/$(TARGET)' \
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --disable-shared \
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --without-readline
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 $(MAKE) -C '$(1)' -j '$(JOBS)'
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 $(MAKE) -C '$(1)' -j 1 install
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 endef