annotate src/mpfr.mk @ 2349:f48c5b085a38

Move $(PKG)_VERSION and $(PKG)_WEBSITE from src/*.mk into doc/index.html
author Volker Grabsch <vog@notjusthosting.com>
date Thu, 29 Mar 2012 11:07:07 +0200
parents f653602a0500
children 99516e73b368
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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.
2027
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
2 # See doc/index.html for further information.
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 # mpfr
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
5 PKG := mpfr
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
2035
0213fe9deb5c consolidate metadata for mpfr packages
Tony Theodore <tonyt@logyst.com>
parents: 2028
diff changeset
7 $(PKG)_CHECKSUM := 9ba6dfe62dad298f0570daf182db31660f7f016c
2028
457e41afeed7 style improvements for projects cgal eigen mpfr
Mark Brand <mabrand@mabrand.nl>
parents: 2027
diff changeset
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
2035
0213fe9deb5c consolidate metadata for mpfr packages
Tony Theodore <tonyt@logyst.com>
parents: 2028
diff changeset
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
2028
457e41afeed7 style improvements for projects cgal eigen mpfr
Mark Brand <mabrand@mabrand.nl>
parents: 2027
diff changeset
10 $(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
11 $(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
12 $(PKG)_DEPS := gcc gmp
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
13
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
14 define $(PKG)_UPDATE
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
15 wget -q -O- 'http://www.mpfr.org/mpfr-current/#download' | \
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
16 grep 'mpfr-' | \
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
17 $(SED) -n 's,.*mpfr-\([0-9][^>]*\)\.tar.*,\1,p' | \
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
18 head -1
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
19 endef
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
20
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
21 define $(PKG)_BUILD
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
22 cd '$(1)' && ./configure \
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
23 --host='$(TARGET)' \
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
24 --enable-static \
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
25 --disable-shared \
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
26 --prefix='$(PREFIX)/$(TARGET)' \
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
27 --enable-threads=win32 \
2289
125d60dc0659 Fix annoying TABs and missing newlines at EOF
Volker Grabsch <vog@notjusthosting.com>
parents: 2035
diff changeset
28 --with-gmp-include='$(PREFIX)/$(TARGET)/include/'
125d60dc0659 Fix annoying TABs and missing newlines at EOF
Volker Grabsch <vog@notjusthosting.com>
parents: 2035
diff changeset
29 --with-gmp-lib='$(PREFIX)/$(TARGET)/lib/'
2027
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
30 $(MAKE) -C '$(1)' -j '$(JOBS)'
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
31 $(MAKE) -C '$(1)' -j '$(JOBS)' install
f1f62183852e new packages cgal eigen mpfr
Brad Pitcher <bradpitcher@gmail.com>
parents:
diff changeset
32 endef