Mercurial > mxe-octave
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 |
rev | line source |
---|---|
843 | 1 # This file is part of mingw-cross-env. |
2 # See doc/index.html for further information. | |
3 | |
4 # GMP | |
5 PKG := gmp | |
6 $(PKG)_IGNORE := | |
7 $(PKG)_VERSION := 5.0.1 | |
8 $(PKG)_CHECKSUM := 6340edc7ceb95f9015a758c7c0d196eb0f441d49 | |
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 \ | |
29 --without-readline | |
30 $(MAKE) -C '$(1)' -j '$(JOBS)' | |
31 $(MAKE) -C '$(1)' -j 1 install | |
32 endef |