pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/digikam NetBSD 3.0 doesn't have trunc().



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bacf84bd2c2e
branches:  trunk
changeset: 523442:bacf84bd2c2e
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Jan 08 03:01:29 2007 +0000

description:
NetBSD 3.0 doesn't have trunc().

diffstat:

 graphics/digikam/distinfo         |   4 ++--
 graphics/digikam/patches/patch-ab |  13 ++++++++-----
 2 files changed, 10 insertions(+), 7 deletions(-)

diffs (44 lines):

diff -r 117ef6deb864 -r bacf84bd2c2e graphics/digikam/distinfo
--- a/graphics/digikam/distinfo Mon Jan 08 02:39:42 2007 +0000
+++ b/graphics/digikam/distinfo Mon Jan 08 03:01:29 2007 +0000
@@ -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 -r 117ef6deb864 -r bacf84bd2c2e graphics/digikam/patches/patch-ab
--- a/graphics/digikam/patches/patch-ab Mon Jan 08 02:39:42 2007 +0000
+++ b/graphics/digikam/patches/patch-ab Mon Jan 08 03:01:29 2007 +0000
@@ -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, 



Home | Main Index | Thread Index | Old Index