Mercurial > mxe-octave
annotate src/mpfr.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 | 48dde24b85b1 |
children | 100e618349f7 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2289
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. |
2027
f1f62183852e
new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff
changeset
|
3 |
f1f62183852e
new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff
changeset
|
4 PKG := mpfr |
f1f62183852e
new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
2651 | 6 $(PKG)_CHECKSUM := 7527c322b91fe8e6055ead551e1b46b9f1712ccd |
2028
457e41afeed7
style improvements for projects cgal eigen mpfr
Mark Brand <mabrand@mabrand.nl>
parents:
2027
diff
changeset
|
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
2651 | 8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz |
2028
457e41afeed7
style improvements for projects cgal eigen mpfr
Mark Brand <mabrand@mabrand.nl>
parents:
2027
diff
changeset
|
9 $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/$(PKG)/$($(PKG)_FILE) |
2035
0213fe9deb5c
consolidate metadata for mpfr packages
Tony Theodore <tonyt@logyst.com>
parents:
2028
diff
changeset
|
10 $(PKG)_URL_2 := http://www.mpfr.org/mpfr-$($(PKG)_VERSION)/$($(PKG)_FILE) |
2027
f1f62183852e
new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff
changeset
|
11 $(PKG)_DEPS := gcc gmp |
f1f62183852e
new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff
changeset
|
12 |
f1f62183852e
new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
14 $(WGET) -q -O- 'http://www.mpfr.org/mpfr-current/#download' | \ |
2027
f1f62183852e
new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff
changeset
|
15 grep 'mpfr-' | \ |
f1f62183852e
new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff
changeset
|
16 $(SED) -n 's,.*mpfr-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
f1f62183852e
new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff
changeset
|
17 head -1 |
f1f62183852e
new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff
changeset
|
18 endef |
f1f62183852e
new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff
changeset
|
19 |
f1f62183852e
new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff
changeset
|
20 define $(PKG)_BUILD |
f1f62183852e
new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff
changeset
|
21 cd '$(1)' && ./configure \ |
f1f62183852e
new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff
changeset
|
22 --host='$(TARGET)' \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2651
diff
changeset
|
23 $(ENABLE_SHARED_OR_STATIC) \ |
2027
f1f62183852e
new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff
changeset
|
24 --prefix='$(PREFIX)/$(TARGET)' \ |
f1f62183852e
new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff
changeset
|
25 --enable-threads=win32 \ |
2289
125d60dc0659
Fix annoying TABs and missing newlines at EOF
Volker Grabsch <vog@notjusthosting.com>
parents:
2035
diff
changeset
|
26 --with-gmp-include='$(PREFIX)/$(TARGET)/include/' |
125d60dc0659
Fix annoying TABs and missing newlines at EOF
Volker Grabsch <vog@notjusthosting.com>
parents:
2035
diff
changeset
|
27 --with-gmp-lib='$(PREFIX)/$(TARGET)/lib/' |
2027
f1f62183852e
new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff
changeset
|
28 $(MAKE) -C '$(1)' -j '$(JOBS)' |
f1f62183852e
new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff
changeset
|
29 $(MAKE) -C '$(1)' -j '$(JOBS)' install |
f1f62183852e
new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff
changeset
|
30 endef |