Mercurial > mxe-octave
annotate src/gmp.mk @ 2333:f653602a0500
Rebrand to new project name MXE
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Wed, 28 Mar 2012 15:46:58 +0200 |
parents | e669a82e2d64 |
children | f48c5b085a38 |
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. |
843 | 2 # See doc/index.html for further information. |
3 | |
4 # GMP | |
5 PKG := gmp | |
6 $(PKG)_IGNORE := | |
2243 | 7 $(PKG)_VERSION := 5.0.4 |
8 $(PKG)_CHECKSUM := ea4ea7c3f10436ef5ae7a75b3fad163a8b86edc0 | |
843 | 9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 | |
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 | 14 $(PKG)_DEPS := gcc |
15 | |
16 define $(PKG)_UPDATE | |
17 wget -q -O- 'http://www.gmplib.org/' | \ | |
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 | 20 grep -v '^4\.' | \ |
21 head -1 | |
22 endef | |
23 | |
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 | 26 --host='$(TARGET)' \ |
27 --prefix='$(PREFIX)/$(TARGET)' \ | |
28 --disable-shared \ | |
1851
ff2b56abe67e
enable gmpxx in package gmp
Brad Pitcher <bradpitcher@gmail.com>
parents:
1810
diff
changeset
|
29 --enable-cxx \ |
843 | 30 --without-readline |
31 $(MAKE) -C '$(1)' -j '$(JOBS)' | |
32 $(MAKE) -C '$(1)' -j 1 install | |
33 endef |