summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-01-08 03:01:29 +0000
committerrillig <rillig@pkgsrc.org>2007-01-08 03:01:29 +0000
commitfdbbf623a40c411ec380a8d67b371f1b97a392c6 (patch)
tree35ae7662c08aff8d78e253ff6543231d3d1e2ccc /graphics
parentf333e48fe0e61e85d3a8243a4a13a1683a7591e6 (diff)
downloadpkgsrc-fdbbf623a40c411ec380a8d67b371f1b97a392c6.tar.gz
NetBSD 3.0 doesn't have trunc().
Diffstat (limited to 'graphics')
-rw-r--r--graphics/digikam/distinfo4
-rw-r--r--graphics/digikam/patches/patch-ab13
2 files changed, 10 insertions, 7 deletions
diff --git a/graphics/digikam/distinfo b/graphics/digikam/distinfo
index 5e3697bd072..abd2324b6b0 100644
--- a/graphics/digikam/distinfo
+++ b/graphics/digikam/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.15 2007/01/06 10:04:32 drochner Exp $
+$NetBSD: distinfo,v 1.16 2007/01/08 03:01:29 rillig Exp $
SHA1 (digikam-0.9.0.tar.bz2) = 5ccf282ddd3b1df7730536f9e9b360dd0ed2c139
RMD160 (digikam-0.9.0.tar.bz2) = f99e95ac99b5c21d248391ebe2dca1018bd51bd0
Size (digikam-0.9.0.tar.bz2) = 5692707 bytes
-SHA1 (patch-ab) = 756212c76ef51efd870f7917f7976f42ffc54942
+SHA1 (patch-ab) = 6761765ab9ee287afe21ecc027f227aafac5088c
SHA1 (patch-ac) = 0b43ae33d303778f564131d7d869f178503b74f8
diff --git a/graphics/digikam/patches/patch-ab b/graphics/digikam/patches/patch-ab
index 145b730a6fc..f396059584c 100644
--- a/graphics/digikam/patches/patch-ab
+++ b/graphics/digikam/patches/patch-ab
@@ -1,19 +1,22 @@
-$NetBSD: patch-ab,v 1.5 2007/01/06 10:04:32 drochner Exp $
+$NetBSD: patch-ab,v 1.6 2007/01/08 03:01:29 rillig Exp $
--- digikam/libs/dmetadata/dmetadata.cpp.orig 2006-12-17 11:13:08.000000000 +0100
-+++ digikam/libs/dmetadata/dmetadata.cpp
-@@ -2061,6 +2061,16 @@ bool DMetadata::removeGPSInfo()
++++ digikam/libs/dmetadata/dmetadata.cpp 2007-01-08 03:58:59.000000000 +0100
+@@ -2061,6 +2061,19 @@ bool DMetadata::removeGPSInfo()
return false;
}
-+#ifdef __DragonFly__
-+static double trunc(double val)
++#if !defined(trunc)
++# if defined(__DragonFly__) || defined(__NetBSD__)
++# define trunc(x) my_trunc((x))
++static double my_trunc(double val)
+{
+ if (val > 0)
+ return floor(val);
+ else
+ return ceil(val);
+}
++# endif
+#endif
+
void DMetadata::convertToRational(double number, long int* numerator,