summaryrefslogtreecommitdiffstats
path: root/src/mpfr.mk
diff options
context:
space:
mode:
authorBrad Pitcher <bradpitcher@gmail.com>2011-10-21 22:24:34 (GMT)
committerBrad Pitcher <bradpitcher@gmail.com>2011-10-21 22:24:34 (GMT)
commit4093ebb6ccbb639e0606fe3d239092a467888abb (patch)
tree5ea588e6589183d2c369e4b68248d9fe430a3e39 /src/mpfr.mk
parent2a782010c2c4d22f549637c7563134a73698ef0a (diff)
downloadmxe-4093ebb6ccbb639e0606fe3d239092a467888abb.zip
mxe-4093ebb6ccbb639e0606fe3d239092a467888abb.tar.gz
mxe-4093ebb6ccbb639e0606fe3d239092a467888abb.tar.bz2
new packages cgal eigen mpfr
Diffstat (limited to 'src/mpfr.mk')
-rw-r--r--src/mpfr.mk33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/mpfr.mk b/src/mpfr.mk
new file mode 100644
index 0000000..46e3a66
--- /dev/null
+++ b/src/mpfr.mk
@@ -0,0 +1,33 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+# mpfr
+PKG := mpfr
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 3.0.1
+$(PKG)_CHECKSUM := caa0609934c0d2ffa29bd11bfa9c05fbade130eb
+$(PKG)_SUBDIR := mpfr-$($(PKG)_VERSION)
+$(PKG)_FILE := mpfr-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://www.mpfr.org/
+$(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/mpfr/$($(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