Mercurial > mxe-octave
annotate src/gmp.mk @ 2855:47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 15 Nov 2012 16:11:45 -0500 |
parents | 4d0f3a9da57e |
children | 100e618349f7 |
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. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
843 | 3 |
4 PKG := gmp | |
5 $(PKG)_IGNORE := | |
2510 | 6 $(PKG)_CHECKSUM := 12a662456033e21aed3e318aef4177f4000afe3b |
843 | 7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 | |
1499
9e587ca588dc
remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents:
1354
diff
changeset
|
9 $(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
|
10 $(PKG)_URL_2 := ftp://ftp.cs.tu-berlin.de/pub/gnu/$(PKG)/$($(PKG)_FILE) |
843 | 11 $(PKG)_DEPS := gcc |
12 | |
13 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2510
diff
changeset
|
14 $(WGET) -q -O- 'http://www.gmplib.org/' | \ |
843 | 15 grep '<a href="' | \ |
1354
5646072a0081
improved version recognition of packages: boost gmp plotutils vmime
Volker Grabsch <vog@notjusthosting.com>
parents:
1289
diff
changeset
|
16 $(SED) -n 's,.*gmp-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
843 | 17 grep -v '^4\.' | \ |
18 head -1 | |
19 endef | |
20 | |
21 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
|
22 cd '$(1)' && CC_FOR_BUILD=gcc ./configure \ |
843 | 23 --host='$(TARGET)' \ |
2510 | 24 --build="`config.guess`" \ |
843 | 25 --prefix='$(PREFIX)/$(TARGET)' \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2525
diff
changeset
|
26 $(ENABLE_SHARED_OR_STATIC) \ |
1851
ff2b56abe67e
enable gmpxx in package gmp
Brad Pitcher <bradpitcher@gmail.com>
parents:
1810
diff
changeset
|
27 --enable-cxx \ |
843 | 28 --without-readline |
29 $(MAKE) -C '$(1)' -j '$(JOBS)' | |
30 $(MAKE) -C '$(1)' -j 1 install | |
31 endef |