pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/inkscape Fix build on DragonFly:
details: https://anonhg.NetBSD.org/pkgsrc/rev/deb957f303f7
branches: trunk
changeset: 516455:deb957f303f7
user: joerg <joerg%pkgsrc.org@localhost>
date: Fri Jul 21 13:16:53 2006 +0000
description:
Fix build on DragonFly:
- include unistd.h to get read(2) prototype
- implement log2 locally using log and M_LN2
If other platforms lack log2 as well, just add them to the list.
diffstat:
graphics/inkscape/distinfo | 4 +++-
graphics/inkscape/patches/patch-ac | 12 ++++++++++++
graphics/inkscape/patches/patch-ad | 18 ++++++++++++++++++
3 files changed, 33 insertions(+), 1 deletions(-)
diffs (52 lines):
diff -r 2a7903d594e8 -r deb957f303f7 graphics/inkscape/distinfo
--- a/graphics/inkscape/distinfo Fri Jul 21 13:15:22 2006 +0000
+++ b/graphics/inkscape/distinfo Fri Jul 21 13:16:53 2006 +0000
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.12 2006/07/04 15:46:34 drochner Exp $
+$NetBSD: distinfo,v 1.13 2006/07/21 13:16:53 joerg Exp $
SHA1 (inkscape-0.44.tar.bz2) = 018538c926b53f4813b5831ac8d1df0416b69e5c
RMD160 (inkscape-0.44.tar.bz2) = 1edc657fe42ab7041c43998ab9ec9c4d8721b601
Size (inkscape-0.44.tar.bz2) = 6506018 bytes
SHA1 (patch-aa) = 769d88d8aca1f462cdeff40e44fa3577fdf4b681
SHA1 (patch-ab) = f4c38a3fa6de384435e5ed51e90d52541bb4826c
+SHA1 (patch-ac) = 17e0c058f54e862ad0d2f392b2856e4f3f48fc7b
+SHA1 (patch-ad) = f9b00b5e13eae6fb0bffa2437775ae0bc1d6f243
diff -r 2a7903d594e8 -r deb957f303f7 graphics/inkscape/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/inkscape/patches/patch-ac Fri Jul 21 13:16:53 2006 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ac,v 1.3 2006/07/21 13:16:53 joerg Exp $
+
+--- src/inkjar/jar.cpp.orig 2006-07-21 12:48:38.000000000 +0000
++++ src/inkjar/jar.cpp
+@@ -42,6 +42,7 @@
+ #include <fcntl.h>
+ //#endif
+
++#include <unistd.h>
+
+ #include <glib.h>
+
diff -r 2a7903d594e8 -r deb957f303f7 graphics/inkscape/patches/patch-ad
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/inkscape/patches/patch-ad Fri Jul 21 13:16:53 2006 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-ad,v 1.1 2006/07/21 13:16:53 joerg Exp $
+
+--- src/trace/potrace/inkscape-potrace.cpp.orig 2006-07-21 13:01:29.000000000 +0000
++++ src/trace/potrace/inkscape-potrace.cpp
+@@ -29,7 +29,12 @@
+ #include "curve.h"
+ #include "bitmap.h"
+
+-
++#if defined(__DragonFly__)
++static double log2(double val)
++{
++ return log(val) / M_LN2;
++}
++#endif
+
+ static void updateGui()
+ {
Home |
Main Index |
Thread Index |
Old Index