summaryrefslogtreecommitdiff
path: root/math/mpfr
diff options
context:
space:
mode:
authormartin <martin@pkgsrc.org>2017-08-30 10:35:54 +0000
committermartin <martin@pkgsrc.org>2017-08-30 10:35:54 +0000
commit5c944bc0c8dfed942aebe4a9fbb00002b10ae23a (patch)
treeecf688f873a762e3c3adce399ede5c6cc05e0c25 /math/mpfr
parent17970dd29be159b90c379b3d4c39ea09e40af7b1 (diff)
downloadpkgsrc-5c944bc0c8dfed942aebe4a9fbb00002b10ae23a.tar.gz
Hack the pkg to at least build + install on NetBSD/alpha - may need
revisiting after closer examination of the underlying issues.
Diffstat (limited to 'math/mpfr')
-rw-r--r--math/mpfr/Makefile7
-rw-r--r--math/mpfr/distinfo4
-rw-r--r--math/mpfr/patches/patch-acinclude.m416
-rw-r--r--math/mpfr/patches/patch-configure16
4 files changed, 41 insertions, 2 deletions
diff --git a/math/mpfr/Makefile b/math/mpfr/Makefile
index 940df5923a5..e461dba2112 100644
--- a/math/mpfr/Makefile
+++ b/math/mpfr/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2016/10/03 12:35:18 wiz Exp $
+# $NetBSD: Makefile,v 1.32 2017/08/30 10:35:54 martin Exp $
DISTNAME= mpfr-3.1.5
CATEGORIES= math
@@ -17,3 +17,8 @@ INFO_FILES= yes
.include "../../devel/gmp/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+
+.if (${MACHINE_ARCH} == alpha)
+CONFIGURE_ENV+=CFLAGS="${CFLAGS:N-mieee}"
+.endif
+
diff --git a/math/mpfr/distinfo b/math/mpfr/distinfo
index 357fa055c1a..06dedb13bda 100644
--- a/math/mpfr/distinfo
+++ b/math/mpfr/distinfo
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.23 2016/10/03 12:35:18 wiz Exp $
+$NetBSD: distinfo,v 1.24 2017/08/30 10:35:54 martin Exp $
SHA1 (mpfr-3.1.5.tar.bz2) = 874e84bb5959fd5a19c032cfb5d673dded4b5cff
RMD160 (mpfr-3.1.5.tar.bz2) = 18a12b1735c8d0a66115cd4c5e3c804dbe465eea
SHA512 (mpfr-3.1.5.tar.bz2) = ebf94f49e1f850db6304eec8bf3cbf592b9fb06b743e0a99a660edae3c086aa47cdd089ea958fd4631ff02a444ec034b5e45d7e9701704d74c2e2d49021e49a7
Size (mpfr-3.1.5.tar.bz2) = 1279489 bytes
+SHA1 (patch-acinclude.m4) = 62cdd6710683d2a1ab202d0122cf023bb84ade04
+SHA1 (patch-configure) = 77375ad75693f4f9665bc23687782631318481ec
diff --git a/math/mpfr/patches/patch-acinclude.m4 b/math/mpfr/patches/patch-acinclude.m4
new file mode 100644
index 00000000000..f1dbd0c7707
--- /dev/null
+++ b/math/mpfr/patches/patch-acinclude.m4
@@ -0,0 +1,16 @@
+$NetBSD: patch-acinclude.m4,v 1.1 2017/08/30 10:35:54 martin Exp $
+
+Remove alpha specific -miee* options currently not working on NetBSD (needs
+further investigation)
+
+--- acinclude.m4.orig 2016-09-27 09:58:14.000000000 +0200
++++ acinclude.m4 2017-08-30 12:23:59.333559123 +0200
+@@ -102,7 +102,7 @@
+ saved_CFLAGS="$CFLAGS"
+ AC_CACHE_CHECK([for IEEE-754 switches], mpfr_cv_ieee_switches, [
+ if test -n "$GCC"; then
+- mpfr_cv_ieee_switches="-mfp-rounding-mode=d -mieee-with-inexact"
++ mpfr_cv_ieee_switches=""
+ else
+ mpfr_cv_ieee_switches="-fprm d -ieee_with_inexact"
+ fi
diff --git a/math/mpfr/patches/patch-configure b/math/mpfr/patches/patch-configure
new file mode 100644
index 00000000000..4d26832a9a7
--- /dev/null
+++ b/math/mpfr/patches/patch-configure
@@ -0,0 +1,16 @@
+$NetBSD: patch-configure,v 1.1 2017/08/30 10:35:54 martin Exp $
+
+Remove alpha specific -miee* options currently not working on NetBSD (needs
+further investigation)
+
+--- configure.orig 2016-09-27 09:58:43.000000000 +0200
++++ configure 2017-08-30 12:24:27.235843640 +0200
+@@ -6337,7 +6337,7 @@
+ else
+
+ if test -n "$GCC"; then
+- mpfr_cv_ieee_switches="-mfp-rounding-mode=d -mieee-with-inexact"
++ mpfr_cv_ieee_switches=""
+ else
+ mpfr_cv_ieee_switches="-fprm d -ieee_with_inexact"
+ fi