pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/vigra graphics/vigra: Fix ambiguous math func...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b8919cc81d58
branches:  trunk
changeset: 596879:b8919cc81d58
user:      marino <marino%pkgsrc.org@localhost>
date:      Thu Dec 15 08:33:44 2011 +0000

description:
graphics/vigra: Fix ambiguous math functions for DragonFly

diffstat:

 graphics/vigra/Makefile                                 |   5 ++++-
 graphics/vigra/distinfo                                 |   3 ++-
 graphics/vigra/patches/patch-include-vigra-mathutil.hxx |  17 +++++++++++++++++
 3 files changed, 23 insertions(+), 2 deletions(-)

diffs (51 lines):

diff -r 72a39c01343c -r b8919cc81d58 graphics/vigra/Makefile
--- a/graphics/vigra/Makefile   Thu Dec 15 08:32:16 2011 +0000
+++ b/graphics/vigra/Makefile   Thu Dec 15 08:33:44 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2011/10/16 17:47:49 adam Exp $
+# $NetBSD: Makefile,v 1.14 2011/12/15 08:33:44 marino Exp $
 
 DISTNAME=      vigra-1.8.0-src
 PKGNAME=       ${DISTNAME:S/-src//}
@@ -35,6 +35,9 @@
 
 .include "options.mk"
 
+post-patch:
+       ${RM} ${WRKSRC}/include/vigra/*.orig
+
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../graphics/openexr/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
diff -r 72a39c01343c -r b8919cc81d58 graphics/vigra/distinfo
--- a/graphics/vigra/distinfo   Thu Dec 15 08:32:16 2011 +0000
+++ b/graphics/vigra/distinfo   Thu Dec 15 08:33:44 2011 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.6 2011/10/16 17:47:49 adam Exp $
+$NetBSD: distinfo,v 1.7 2011/12/15 08:33:44 marino Exp $
 
 SHA1 (vigra-1.8.0-src.tar.gz) = 09f1d506c2748ebeb7d9f1c77ce387f9e7b837d2
 RMD160 (vigra-1.8.0-src.tar.gz) = 99d781da6e0ca94ce3404e1bcb3adeb9e43a2017
 Size (vigra-1.8.0-src.tar.gz) = 29814914 bytes
+SHA1 (patch-include-vigra-mathutil.hxx) = 80e8645fef1a53ba4d29b23174567e24728e8829
diff -r 72a39c01343c -r b8919cc81d58 graphics/vigra/patches/patch-include-vigra-mathutil.hxx
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/vigra/patches/patch-include-vigra-mathutil.hxx   Thu Dec 15 08:33:44 2011 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-include-vigra-mathutil.hxx,v 1.1 2011/12/15 08:33:44 marino Exp $
+
+--- include/vigra/mathutil.hxx.orig    2011-12-15 07:07:07.573857000 +0000
++++ include/vigra/mathutil.hxx
+@@ -553,7 +553,12 @@ VIGRA_DEFINE_NORM(int)
+ VIGRA_DEFINE_NORM(unsigned int)
+ VIGRA_DEFINE_NORM(long)
+ VIGRA_DEFINE_NORM(unsigned long)
++#if defined(__DragonFly__)
++inline NormTraits<long long>::SquaredNormType squaredNorm(long long t) { return sq((long int) t); } \
++inline NormTraits<long long>::NormType norm(long long t) { return abs((long int) t); }
++#else
+ VIGRA_DEFINE_NORM(long long)
++#endif
+ VIGRA_DEFINE_NORM(unsigned long long)
+ VIGRA_DEFINE_NORM(float)
+ VIGRA_DEFINE_NORM(double)



Home | Main Index | Thread Index | Old Index