diff options
author | joerg <joerg@pkgsrc.org> | 2007-02-07 23:58:11 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-02-07 23:58:11 +0000 |
commit | 156e40be90889522c146595494891ddf728cc122 (patch) | |
tree | 92ae440d4b5b7d8255c84682f4232701b7e97d1b /graphics/kipi-plugins | |
parent | c7861d4cad4a31de1036fb18725d7da161b5c67b (diff) | |
download | pkgsrc-156e40be90889522c146595494891ddf728cc122.tar.gz |
Fix build on DragonFly and older NetBSD where trunc(3) doesn't exist.
Diffstat (limited to 'graphics/kipi-plugins')
-rw-r--r-- | graphics/kipi-plugins/distinfo | 3 | ||||
-rw-r--r-- | graphics/kipi-plugins/patches/patch-aa | 23 |
2 files changed, 25 insertions, 1 deletions
diff --git a/graphics/kipi-plugins/distinfo b/graphics/kipi-plugins/distinfo index 78de05c4935..96a8d686c94 100644 --- a/graphics/kipi-plugins/distinfo +++ b/graphics/kipi-plugins/distinfo @@ -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 --git a/graphics/kipi-plugins/patches/patch-aa b/graphics/kipi-plugins/patches/patch-aa new file mode 100644 index 00000000000..0c56d3e4923 --- /dev/null +++ b/graphics/kipi-plugins/patches/patch-aa @@ -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 + { + |