summaryrefslogtreecommitdiffstats
path: root/src/mpfr.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2012-01-02 10:29:26 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2012-01-02 10:29:26 (GMT)
commit01e5df4ef16e72138d1c6a0e9e94548870a78633 (patch)
treeed39b51fc3bfd8d1f2fd4c1d97ffca00d48b39a3 /src/mpfr.mk
parent3876164af3a70a5a2dc3b8fabeeab535490e012e (diff)
parent943924d4fb7bf1b9d86ee7d130260c0c4ef2f22a (diff)
downloadmxe-01e5df4ef16e72138d1c6a0e9e94548870a78633.zip
mxe-01e5df4ef16e72138d1c6a0e9e94548870a78633.tar.gz
mxe-01e5df4ef16e72138d1c6a0e9e94548870a78633.tar.bz2
merge
Diffstat (limited to 'src/mpfr.mk')
-rw-r--r--src/mpfr.mk34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/mpfr.mk b/src/mpfr.mk
new file mode 100644
index 0000000..58853db
--- /dev/null
+++ b/src/mpfr.mk
@@ -0,0 +1,34 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+# mpfr
+PKG := mpfr
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 3.1.0
+$(PKG)_CHECKSUM := 9ba6dfe62dad298f0570daf182db31660f7f016c
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://www.mpfr.org/
+$(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/$(PKG)/$($(PKG)_FILE)
+$(PKG)_URL_2 := http://www.mpfr.org/mpfr-$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc gmp
+
+define $(PKG)_UPDATE
+ wget -q -O- 'http://www.mpfr.org/mpfr-current/#download' | \
+ grep 'mpfr-' | \
+ $(SED) -n 's,.*mpfr-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --enable-static \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ --enable-threads=win32 \
+ --with-gmp-include='$(PREFIX)/$(TARGET)/include/'
+ --with-gmp-lib='$(PREFIX)/$(TARGET)/lib/'
+ $(MAKE) -C '$(1)' -j '$(JOBS)'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install
+endef