summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-03-22 13:51:00 +0000
committerjoerg <joerg@pkgsrc.org>2007-03-22 13:51:00 +0000
commit2e0f23f08b3a317a8750a6f5c866eb1eefeda29c (patch)
tree07f2ce2aa584bdc0d816c66c552c6cf4e51babd3 /graphics
parentd971e882b2d4d83b7c70257534ea643e3607f7c5 (diff)
downloadpkgsrc-2e0f23f08b3a317a8750a6f5c866eb1eefeda29c.tar.gz
Play the trunc(3) game here as well.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/libkexiv2/distinfo3
-rw-r--r--graphics/libkexiv2/patches/patch-aa25
2 files changed, 27 insertions, 1 deletions
diff --git a/graphics/libkexiv2/distinfo b/graphics/libkexiv2/distinfo
index 67808fd3d28..0d6b3b97217 100644
--- a/graphics/libkexiv2/distinfo
+++ b/graphics/libkexiv2/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2007/03/13 10:00:30 drochner Exp $
+$NetBSD: distinfo,v 1.2 2007/03/22 13:51:00 joerg Exp $
SHA1 (libkexiv2-0.1.1.tar.bz2) = 7218bb8b81955fc4ef376f302bda9b94bd2b68bd
RMD160 (libkexiv2-0.1.1.tar.bz2) = c9ea6043a58a981628f1d2587148a718106b1803
Size (libkexiv2-0.1.1.tar.bz2) = 426924 bytes
+SHA1 (patch-aa) = d492562d74e58207fa9a6e7c8a12e4a144a5583d
diff --git a/graphics/libkexiv2/patches/patch-aa b/graphics/libkexiv2/patches/patch-aa
new file mode 100644
index 00000000000..e01932ad836
--- /dev/null
+++ b/graphics/libkexiv2/patches/patch-aa
@@ -0,0 +1,25 @@
+$NetBSD: patch-aa,v 1.1 2007/03/22 13:51:00 joerg Exp $
+
+--- libkexiv2/kexiv2.cpp.orig 2007-03-22 13:32:51.000000000 +0000
++++ libkexiv2/kexiv2.cpp
+@@ -61,6 +61,20 @@
+
+ #include "kexiv2.h"
+
++#if defined(__NetBSD__)
++#include <sys/param.h>
++#endif
++
++#if defined(__DragonFly__) || (defined(__NetBSD__) && __NetBSD_Version__ <= 399001700)
++static double trunc(double val)
++{
++ if (val > 0)
++ return floor(val);
++ else
++ return ceil(val);
++}
++#endif
++
+ namespace KExiv2Iface
+ {
+