summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2011-12-15 08:33:44 +0000
committermarino <marino@pkgsrc.org>2011-12-15 08:33:44 +0000
commitb9f73768173ed4b4bb6acece3d951961f71472d0 (patch)
treec654d368dc61a09099a19160e0d1a16acc73448c /graphics
parente369b58fd813d98d8ded13a5613a450360ddb9b2 (diff)
downloadpkgsrc-b9f73768173ed4b4bb6acece3d951961f71472d0.tar.gz
graphics/vigra: Fix ambiguous math functions for DragonFly
Diffstat (limited to 'graphics')
-rw-r--r--graphics/vigra/Makefile5
-rw-r--r--graphics/vigra/distinfo3
-rw-r--r--graphics/vigra/patches/patch-include-vigra-mathutil.hxx17
3 files changed, 23 insertions, 2 deletions
diff --git a/graphics/vigra/Makefile b/graphics/vigra/Makefile
index c7f32fb6dbb..eb61ac4ed8e 100644
--- a/graphics/vigra/Makefile
+++ b/graphics/vigra/Makefile
@@ -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 @@ CHECK_INTERPRETER_SKIP= bin/vigra-config
.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 --git a/graphics/vigra/distinfo b/graphics/vigra/distinfo
index 89ba28cc49d..ca0f29f3e5e 100644
--- a/graphics/vigra/distinfo
+++ b/graphics/vigra/distinfo
@@ -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 --git a/graphics/vigra/patches/patch-include-vigra-mathutil.hxx b/graphics/vigra/patches/patch-include-vigra-mathutil.hxx
new file mode 100644
index 00000000000..142690b6e22
--- /dev/null
+++ b/graphics/vigra/patches/patch-include-vigra-mathutil.hxx
@@ -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)