diff src/mpfr.mk @ 2027:f1f62183852e

new packages cgal eigen mpfr
author Brad Pitcher <bradpitcher@gmail.com>
date Sat, 22 Oct 2011 00:24:34 +0200
parents
children 457e41afeed7
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/mpfr.mk	Sat Oct 22 00:24:34 2011 +0200
@@ -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