pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/kipi-plugins Fix build on DragonFly and older...
details: https://anonhg.NetBSD.org/pkgsrc/rev/536320b414e6
branches: trunk
changeset: 525163:536320b414e6
user: joerg <joerg%pkgsrc.org@localhost>
date: Wed Feb 07 23:58:11 2007 +0000
description:
Fix build on DragonFly and older NetBSD where trunc(3) doesn't exist.
diffstat:
graphics/kipi-plugins/distinfo | 3 ++-
graphics/kipi-plugins/patches/patch-aa | 23 +++++++++++++++++++++++
2 files changed, 25 insertions(+), 1 deletions(-)
diffs (40 lines):
diff -r 3019a9ed9c0d -r 536320b414e6 graphics/kipi-plugins/distinfo
--- a/graphics/kipi-plugins/distinfo Wed Feb 07 23:54:47 2007 +0000
+++ b/graphics/kipi-plugins/distinfo Wed Feb 07 23:58:11 2007 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.11 2007/01/27 21:44:48 markd Exp $
+$NetBSD: distinfo,v 1.12 2007/02/07 23:58:11 joerg Exp $
SHA1 (kipi-plugins-0.1.3.tar.bz2) = 9882d247e6e42e0206e295e85d141a184da138e6
RMD160 (kipi-plugins-0.1.3.tar.bz2) = 4a0ea25edf6af4adf4a4eba28e4a97a7859e3f35
Size (kipi-plugins-0.1.3.tar.bz2) = 7595003 bytes
+SHA1 (patch-aa) = 09f88013f10605668e7d439600cd3d16dc7a9680
SHA1 (patch-ae) = 7dd841c5142cd00b58f2552bf78523907d68f3fe
SHA1 (patch-af) = 3d8cbf5120ff09aa8d0d7ce663bd7359f9f5d563
diff -r 3019a9ed9c0d -r 536320b414e6 graphics/kipi-plugins/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/kipi-plugins/patches/patch-aa Wed Feb 07 23:58:11 2007 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-aa,v 1.5 2007/02/07 23:58:11 joerg Exp $
+
+--- kipi-plugins/common/exiv2iface/exiv2iface.cpp.orig 2007-02-07 23:19:19.000000000 +0000
++++ kipi-plugins/common/exiv2iface/exiv2iface.cpp
+@@ -61,6 +61,18 @@
+
+ #include "exiv2iface.h"
+
++#ifndef trunc
++# if defined(__DragonFly__) || defined(__NetBSD__)
++static double trunc(double val)
++{
++ if (val > 0)
++ return floor(val);
++ else
++ return ceil(val);
++}
++# endif
++#endif
++
+ namespace KIPIPlugins
+ {
+
Home |
Main Index |
Thread Index |
Old Index