summaryrefslogtreecommitdiff
path: root/graphics/inkscape/patches
diff options
context:
space:
mode:
authorreed <reed>2004-10-15 03:11:49 +0000
committerreed <reed>2004-10-15 03:11:49 +0000
commit80603e125d1ef89545299b664441f84bea652d15 (patch)
tree9d91da43bd76f50864858ff9e3a8517c93a5a219 /graphics/inkscape/patches
parent362e2c8eae5a9105b9705e1b13dc2f7d31b4fad1 (diff)
downloadpkgsrc-80603e125d1ef89545299b664441f84bea652d15.tar.gz
Import of inkscape-0.39nb1
It is a Scalable Vector Graphics (SVG) editor. This is from pkgsrc-wip.
Diffstat (limited to 'graphics/inkscape/patches')
-rw-r--r--graphics/inkscape/patches/patch-aa71
-rw-r--r--graphics/inkscape/patches/patch-ac13
2 files changed, 84 insertions, 0 deletions
diff --git a/graphics/inkscape/patches/patch-aa b/graphics/inkscape/patches/patch-aa
new file mode 100644
index 00000000000..a17e30a5bb6
--- /dev/null
+++ b/graphics/inkscape/patches/patch-aa
@@ -0,0 +1,71 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/10/15 03:11:50 reed Exp $
+
+--- src/extension/internal/ps.cpp.orig 2004-06-20 22:49:24.000000000 -0700
++++ src/extension/internal/ps.cpp
+@@ -52,6 +52,7 @@
+ #include "document.h"
+ #include "inkscape.h"
+ #include "style.h"
++#include "inkscape_version.h"
+
+ #include "ps.h"
+ #include <extension/system.h>
+@@ -321,6 +322,7 @@ PrintPS::begin (Inkscape::Extension::Pri
+
+ NRRect d;
+ bool pageBoundingBox;
++ bool pageLandscape;
+ mod->get_param("pageBoundingBox", &pageBoundingBox);
+ // printf("Page Bounding Box: %s\n", pageBoundingBox ? "TRUE" : "FALSE");
+ if (pageBoundingBox)
+@@ -336,20 +338,38 @@ PrintPS::begin (Inkscape::Extension::Pri
+ }
+
+ if (res >= 0) {
+- os << "%%BoundingBox: " << (int) d.x0 << " "
+- << (int) d.y0 << " "
+- << (int) ceil (d.x1) << " "
+- << (int) ceil (d.y1) << "\n";
+- }
+- if (res >= 0) {
+- os << "%%HiResBoundingBox: " << d.x0 << " "
+- << d.y0 << " "
+- << d.x1 << " "
+- << d.y1 << "\n";
++
++ os << "%%Creator: Inkscape " << INKSCAPE_VERSION << "\n";
++
++ pageLandscape = (d.x1 > d.y1) ? true : false;
++
++ if (pageLandscape) {
++ os << "%%Orientation: Landscape\n";
++ os << "%%BoundingBox: " << (int) d.x0 << " "
++ << (int) d.y0 << " "
++ << (int) ceil (d.y1) << " "
++ << (int) ceil (d.x1) << "\n";
++ os << "%%HiResBoundingBox: " << d.x0 << " "
++ << d.y0 << " "
++ << d.y1 << " "
++ << d.x1 << "\n";
++ os << 90 << " rotate\n";
++ }
++ else
++ {
++ os << "%%BoundingBox: " << (int) d.x0 << " "
++ << (int) d.y0 << " "
++ << (int) ceil (d.x1) << " "
++ << (int) ceil (d.y1) << "\n";
++ os << "%%HiResBoundingBox: " << d.x0 << " "
++ << d.y0 << " "
++ << d.x1 << " "
++ << d.y1 << "\n";
++ os << "0.0 " << sp_document_height (doc) << " translate\n";
++ }
++ os << "0.8 -0.8 scale\n";
+ }
+
+- os << "0.0 " << sp_document_height (doc) << " translate\n";
+- os << "0.8 -0.8 scale\n";
+
+ return fprintf (_stream, "%s", os.str().c_str());
+ }
diff --git a/graphics/inkscape/patches/patch-ac b/graphics/inkscape/patches/patch-ac
new file mode 100644
index 00000000000..f49ec2c00dc
--- /dev/null
+++ b/graphics/inkscape/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2004/10/15 03:11:50 reed Exp $
+
+--- src/main.cpp.orig Tue Jul 13 00:52:19 2004
++++ src/main.cpp
+@@ -236,7 +236,7 @@ main(int argc, char const **argv)
+ }
+
+ #ifdef HAVE_FPSETMASK
+- fpresetsticky(FP_X_DZ|FP_X_INV);
++ fpsetsticky(FP_X_DZ|FP_X_INV);
+ fpsetmask(FP_X_DZ|FP_X_INV);
+ #endif
+ return result;