Mercurial > mxe-octave
annotate src/gmp.mk @ 1810:3cecbd3a603b
update packages gmp fltk imagemagick
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Mon, 09 May 2011 10:21:54 +0200 |
parents | 19fefe2bffcd |
children | ff2b56abe67e |
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 := | |
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 | 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 |