diff options
author | joerg <joerg@pkgsrc.org> | 2006-11-30 21:56:49 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-11-30 21:56:49 +0000 |
commit | 59aa7f3511712078d6614b7e03add340d3f4f297 (patch) | |
tree | 09f197d952799ef5195cbe7baa21b71eacf5ac41 /graphics | |
parent | 8df265b4311798703959f0580bd95888e0711d83 (diff) | |
download | pkgsrc-59aa7f3511712078d6614b7e03add340d3f4f297.tar.gz |
trunc(3) doesn't exist on DragonFly, replace it with ceil/floor based on
sign of argument.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/digikam/distinfo | 3 | ||||
-rw-r--r-- | graphics/digikam/patches/patch-ab | 21 |
2 files changed, 23 insertions, 1 deletions
diff --git a/graphics/digikam/distinfo b/graphics/digikam/distinfo index 547c8cedc81..a5b9a42f3b5 100644 --- a/graphics/digikam/distinfo +++ b/graphics/digikam/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.12 2006/11/29 12:02:10 xtraeme Exp $ +$NetBSD: distinfo,v 1.13 2006/11/30 21:56:49 joerg Exp $ SHA1 (digikam-0.9.0-rc1.tar.bz2) = c037fe8e6a4c5d341fa66c2e02100fdb23a2240e RMD160 (digikam-0.9.0-rc1.tar.bz2) = 14a48862613f491b7760f85f6baa1b3bc882a61e Size (digikam-0.9.0-rc1.tar.bz2) = 5575674 bytes SHA1 (patch-aa) = a14bf50a037be27acbe4f1ae7d7c8de747529644 +SHA1 (patch-ab) = 604890a0187b58d113997667d99b6ffefc94dc18 SHA1 (patch-ac) = 9efde366b391d3510735646664956f48d33bca69 diff --git a/graphics/digikam/patches/patch-ab b/graphics/digikam/patches/patch-ab new file mode 100644 index 00000000000..8a2e01fc374 --- /dev/null +++ b/graphics/digikam/patches/patch-ab @@ -0,0 +1,21 @@ +$NetBSD: patch-ab,v 1.4 2006/11/30 21:56:49 joerg Exp $ + +--- digikam/libs/dmetadata/dmetadata.cpp.orig 2006-11-30 18:20:17.000000000 +0000 ++++ digikam/libs/dmetadata/dmetadata.cpp +@@ -2039,6 +2039,16 @@ bool DMetadata::removeGPSInfo() + return false; + } + ++#ifdef __DragonFly__ ++static double trunc(double val) ++{ ++ if (val > 0) ++ return floor(val); ++ else ++ return ceil(val); ++} ++#endif ++ + void DMetadata::convertToRational(double number, long int* numerator, + long int* denominator, int rounding) + { |