annotate src/gmp.mk @ 1851:ff2b56abe67e

enable gmpxx in package gmp
author Brad Pitcher <bradpitcher@gmail.com>
date Fri, 27 May 2011 22:57:29 +0200
parents 3cecbd3a603b
children 2590d48e2d1d
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 :=
1810
3cecbd3a603b update packages gmp fltk imagemagick
Mark Brand <mabrand@mabrand.nl>
parents: 1657
diff changeset
7 $(PKG)_VERSION := 5.0.2
3cecbd3a603b update packages gmp fltk imagemagick
Mark Brand <mabrand@mabrand.nl>
parents: 1657
diff changeset
8 $(PKG)_CHECKSUM := 2968220e1988eabb61f921d11e5d2db5431e0a35
843
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 \
1851
ff2b56abe67e enable gmpxx in package gmp
Brad Pitcher <bradpitcher@gmail.com>
parents: 1810
diff changeset
29 --enable-cxx \
843
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --without-readline
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 $(MAKE) -C '$(1)' -j '$(JOBS)'
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 $(MAKE) -C '$(1)' -j 1 install
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 endef