diff options
author | joerg <joerg> | 2007-03-22 13:51:00 +0000 |
---|---|---|
committer | joerg <joerg> | 2007-03-22 13:51:00 +0000 |
commit | 7bd993d554b7350e84bc99a3d7f8f82c9ba5954b (patch) | |
tree | 07f2ce2aa584bdc0d816c66c552c6cf4e51babd3 | |
parent | 2b23499a9dc2c4caa0f9963c129eb3621615db30 (diff) | |
download | pkgsrc-7bd993d554b7350e84bc99a3d7f8f82c9ba5954b.tar.gz |
Play the trunc(3) game here as well.
-rw-r--r-- | graphics/libkexiv2/distinfo | 3 | ||||
-rw-r--r-- | graphics/libkexiv2/patches/patch-aa | 25 |
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 + { + |