aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/graphopt
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2004-08-10 19:45:48 +0800
committervs <vs@FreeBSD.org>2004-08-10 19:45:48 +0800
commit64e7d49558131e408ead163bbc2cc8387a0303c8 (patch)
treef4a9f21fcb816b195d20c661eb0d33d9f9d60131 /graphics/graphopt
parentd7687772032828432eead31081a37821c450c323 (diff)
downloadfreebsd-ports-gnome-64e7d49558131e408ead163bbc2cc8387a0303c8.tar.gz
freebsd-ports-gnome-64e7d49558131e408ead163bbc2cc8387a0303c8.tar.zst
freebsd-ports-gnome-64e7d49558131e408ead163bbc2cc8387a0303c8.zip
Fix generation of PostScript-files
(bump PORTREVISION) PR: ports/70199 Submitted by: Marco Molteni
Diffstat (limited to 'graphics/graphopt')
-rw-r--r--graphics/graphopt/Makefile2
-rw-r--r--graphics/graphopt/files/patch-src:classes:psExporter.cc17
2 files changed, 18 insertions, 1 deletions
diff --git a/graphics/graphopt/Makefile b/graphics/graphopt/Makefile
index bc5e6045ddea..700b4de94237 100644
--- a/graphics/graphopt/Makefile
+++ b/graphics/graphopt/Makefile
@@ -8,7 +8,7 @@
PORTNAME= graphopt
PORTVERSION= 0.4.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/graphics/graphopt/files/patch-src:classes:psExporter.cc b/graphics/graphopt/files/patch-src:classes:psExporter.cc
new file mode 100644
index 000000000000..3db6b86bae59
--- /dev/null
+++ b/graphics/graphopt/files/patch-src:classes:psExporter.cc
@@ -0,0 +1,17 @@
+--- src/classes/psExporter.cc.orig Mon Aug 9 09:31:11 2004
++++ src/classes/psExporter.cc Mon Aug 9 09:31:38 2004
+@@ -23,13 +23,13 @@ void psExporter::do_export() {
+ fclose(outfile);
+ }
+
+
+ void psExporter::write_headers(FILE *outfile) {
+ char *line = new char[200];
+- sprintf(line, "\%!PS-Adobe-1.0\n%%%%BoundingBox: 0 0 %d %d\n%%%%DocumentFonts: Helvetica\n%%%%Pages: 1\n",
++ sprintf(line, "%%!PS-Adobe-1.0\n%%%%BoundingBox: 0 0 %d %d\n%%%%DocumentFonts: Helvetica\n%%%%Pages: 1\n",
+ translatexcoord((double) biggest_x) + 2 * margin,
+ translateycoord((double) biggest_y) + 2 * margin);
+ fwrite(line, strlen(line), 1, outfile);
+ delete line;
+ }
+