summaryrefslogtreecommitdiff
path: root/print/ghostscript8/files/patch-base-sjpx.c
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2010-08-02 06:15:08 +0000
committerHiroki Sato <hrs@FreeBSD.org>2010-08-02 06:15:08 +0000
commit44bc3e23220d42767cd9d28679a12da3aeb7bb04 (patch)
treeae6229353724de60300bc3fba7aa27d7d9fe5ef6 /print/ghostscript8/files/patch-base-sjpx.c
parentUpgrade to 0.15. (diff)
- Fix compile errors when vgalib and lvga256 drivers are enabled.
- Use external libraries instead of bundled old ones[1]. - Fix WITHOUT_FOO handling[2]. Submitted by: mi[1], dinoex[2] PR: ports/126513 PR: ports/148960
Notes
Notes: svn path=/head/; revision=258619
Diffstat (limited to 'print/ghostscript8/files/patch-base-sjpx.c')
-rw-r--r--print/ghostscript8/files/patch-base-sjpx.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/print/ghostscript8/files/patch-base-sjpx.c b/print/ghostscript8/files/patch-base-sjpx.c
new file mode 100644
index 000000000000..761f1423b700
--- /dev/null
+++ b/print/ghostscript8/files/patch-base-sjpx.c
@@ -0,0 +1,36 @@
+Submitted By: Ken Moffat <ken at linuxfromscratch dot org>
+Date: 2009-02-11
+Initial Package Version: 8.63 (well, it's needed for 8.63, obviously ex 8.61)
+Upstream Status: unknown
+Origin: fedora
+Description: Allows gnu-ghostscript to compile against external libjasper.
+ To do that, you need to remove the jasper/ directory. The included version
+is 1.701 which is somewhat old. Forward-ported to 8.64 (the structure of
+the file source tree has changed) by km.
+
+diff -Naur ghostscript-8.64.orig/base/sjpx.c ghostscript-8.64/base/sjpx.c
+--- base/sjpx.c 2008-08-21 00:22:49.000000000 +0100
++++ base/sjpx.c 2009-02-10 21:59:41.000000000 +0000
+@@ -34,14 +34,6 @@
+ private_st_jpxd_state(); /* creates a gc object for our state,
+ defined in sjpx.h */
+
+-/* error reporting callback for the jpx library */
+-static void
+-s_jpx_jas_error_cb(jas_error_t err, char *msg)
+-{
+- dprintf2("jasper (code %d) %s", (int)err, msg);
+-}
+-
+-
+ /* initialize the steam.
+ this involves allocating the stream and image structures, and
+ initializing the decoder.
+@@ -59,7 +51,6 @@
+ }
+
+ status = jas_init();
+- jas_set_error_cb(s_jpx_jas_error_cb);
+ #ifdef JPX_DEBUG
+ /* raise the error reporting threshold from the default (0) */
+ jas_setdbglevel(1);