diff options
author | joerg <joerg@pkgsrc.org> | 2006-07-21 13:16:53 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-07-21 13:16:53 +0000 |
commit | 2b5d4da4e589ccac4c8aebbf6d7f0ffe7b267654 (patch) | |
tree | 96ab43d528176ed73bb0499281aa65b07b2f035c /graphics | |
parent | c6229216fa958a15593edf3832eaad6cf98cbaa8 (diff) | |
download | pkgsrc-2b5d4da4e589ccac4c8aebbf6d7f0ffe7b267654.tar.gz |
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 (limited to 'graphics')
-rw-r--r-- | graphics/inkscape/distinfo | 4 | ||||
-rw-r--r-- | graphics/inkscape/patches/patch-ac | 12 | ||||
-rw-r--r-- | graphics/inkscape/patches/patch-ad | 18 |
3 files changed, 33 insertions, 1 deletions
diff --git a/graphics/inkscape/distinfo b/graphics/inkscape/distinfo index d616fa7ff13..23c68fa1db8 100644 --- a/graphics/inkscape/distinfo +++ b/graphics/inkscape/distinfo @@ -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 --git a/graphics/inkscape/patches/patch-ac b/graphics/inkscape/patches/patch-ac new file mode 100644 index 00000000000..2eae10609b4 --- /dev/null +++ b/graphics/inkscape/patches/patch-ac @@ -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 --git a/graphics/inkscape/patches/patch-ad b/graphics/inkscape/patches/patch-ad new file mode 100644 index 00000000000..ff596143056 --- /dev/null +++ b/graphics/inkscape/patches/patch-ad @@ -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() + { |