|
|
|
@ -1,57 +1,64 @@ |
|
|
|
Index: configure
|
|
|
|
|
|
|
|
--- configure.orig 2016-07-23 18:52:00.000000000 +0200
|
|
|
|
|
|
|
|
+++ configure 2017-04-09 23:05:35.919024000 +0200
|
|
|
|
|
|
|
|
@@ -15932,8 +15932,7 @@
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pspp_cv_build_exeext" >&5
|
|
|
|
|
|
|
|
$as_echo "$pspp_cv_build_exeext" >&6; }
|
|
|
|
|
|
|
|
EXEEXT_FOR_BUILD=""
|
|
|
|
|
|
|
|
- test x"${pspp_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${pspp_cv_build_exeex
|
|
|
|
|
|
|
|
-t}
|
|
|
|
|
|
|
|
+ test x"${pspp_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${pspp_cv_build_exeext}
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Index: src/output/cairo.c
|
|
|
|
Index: src/output/cairo.c
|
|
|
|
--- src/output/cairo.c.orig 2016-02-21 06:38:52.000000000 +0100
|
|
|
|
--- src/output/cairo.c.orig 2023-02-16 23:20:13.000000000 +0100
|
|
|
|
+++ src/output/cairo.c 2017-04-09 23:56:35.963403000 +0200
|
|
|
|
+++ src/output/cairo.c 2024-01-01 13:07:50.805384000 +0100
|
|
|
|
@@ -48,7 +48,9 @@
|
|
|
|
@@ -31,7 +31,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include <cairo/cairo-pdf.h>
|
|
|
|
#include <cairo/cairo-pdf.h>
|
|
|
|
#include <cairo/cairo-ps.h>
|
|
|
|
#include <cairo/cairo-ps.h>
|
|
|
|
+#if 0
|
|
|
|
+#if 0
|
|
|
|
#include <cairo/cairo-svg.h>
|
|
|
|
#include <cairo/cairo-svg.h>
|
|
|
|
+#endif
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
|
|
|
#include <cairo/cairo.h>
|
|
|
|
#include <cairo/cairo.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include <inttypes.h>
|
|
|
|
#include <pango/pango-font.h>
|
|
|
|
@@ -314,12 +316,14 @@
|
|
|
|
@@ -425,8 +427,10 @@
|
|
|
|
return xr_create (fh, device_type, o, XR_PS);
|
|
|
|
surface = cairo_pdf_surface_create (file_name, width_pt, length_pt);
|
|
|
|
}
|
|
|
|
else if (file_type == XR_PS)
|
|
|
|
|
|
|
|
surface = cairo_ps_surface_create (file_name, width_pt, length_pt);
|
|
|
|
|
|
|
|
+#if 0
|
|
|
|
+#if 0
|
|
|
|
else if (file_type == XR_SVG)
|
|
|
|
static struct output_driver *
|
|
|
|
surface = cairo_svg_surface_create (file_name, width_pt, length_pt);
|
|
|
|
xr_svg_create (struct file_handle *fh, enum settings_output_devices device_type,
|
|
|
|
|
|
|
|
struct driver_options *o)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return xr_create (fh, device_type, o, XR_SVG);
|
|
|
|
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
+#endif
|
|
|
|
else
|
|
|
|
|
|
|
|
NOT_REACHED ();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -493,6 +497,7 @@
|
|
|
|
static struct output_driver *
|
|
|
|
return od ;
|
|
|
|
xr_png_create (struct file_handle *fh, enum settings_output_devices device_type,
|
|
|
|
|
|
|
|
@@ -440,6 +444,7 @@
|
|
|
|
|
|
|
|
cairo_surface_show_page (xr->dest_surface);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+#if 0
|
|
|
|
|
|
|
|
case XR_SVG:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
cairo_surface_t *svg = cairo_svg_surface_create (
|
|
|
|
|
|
|
|
@@ -449,6 +454,7 @@
|
|
|
|
|
|
|
|
cairo_surface_destroy (svg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case XR_PNG:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
@@ -479,6 +485,7 @@
|
|
|
|
|
|
|
|
cairo_surface_show_page (xr->dest_surface);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
+#if 0
|
|
|
|
+#if 0
|
|
|
|
static struct output_driver *
|
|
|
|
case XR_SVG:
|
|
|
|
xr_svg_create (struct file_handle *fh, enum settings_output_devices device_type,
|
|
|
|
{
|
|
|
|
struct string_map *o)
|
|
|
|
cairo_surface_t *svg = cairo_svg_surface_create (
|
|
|
|
@@ -501,6 +506,7 @@
|
|
|
|
@@ -488,6 +495,7 @@
|
|
|
|
fh_unref (fh);
|
|
|
|
cairo_surface_destroy (svg);
|
|
|
|
return od ;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
+#endif
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
|
|
|
static void
|
|
|
|
case XR_PNG:
|
|
|
|
xr_destroy (struct output_driver *driver)
|
|
|
|
xr_report_error (cairo_surface_write_to_png (xr->drawing_surface,
|
|
|
|
@@ -1242,8 +1248,10 @@
|
|
|
|
@@ -617,8 +625,10 @@
|
|
|
|
{ "pdf", "pspp.pdf", xr_pdf_create };
|
|
|
|
{ "pdf", "pspp.pdf", xr_pdf_create };
|
|
|
|
struct output_driver_factory ps_driver_factory =
|
|
|
|
struct output_driver_factory ps_driver_factory =
|
|
|
|
{ "ps", "pspp.ps", xr_ps_create };
|
|
|
|
{ "ps", "pspp.ps", xr_ps_create };
|
|
|
|
@ -59,31 +66,29 @@ Index: src/output/cairo.c |
|
|
|
struct output_driver_factory svg_driver_factory =
|
|
|
|
struct output_driver_factory svg_driver_factory =
|
|
|
|
{ "svg", "pspp.svg", xr_svg_create };
|
|
|
|
{ "svg", "pspp.svg", xr_svg_create };
|
|
|
|
+#endif
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
struct output_driver_factory png_driver_factory =
|
|
|
|
|
|
|
|
{ "png", "pspp.png", xr_png_create };
|
|
|
|
|
|
|
|
|
|
|
|
static const struct output_driver_class cairo_driver_class =
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Index: src/output/driver.c
|
|
|
|
Index: src/output/driver.c
|
|
|
|
--- src/output/driver.c.orig 2016-02-20 06:36:08.000000000 +0100
|
|
|
|
--- src/output/driver.c.orig 2024-01-01 13:06:08.591671000 +0100
|
|
|
|
+++ src/output/driver.c 2017-04-09 23:56:53.367947000 +0200
|
|
|
|
+++ src/output/driver.c 2024-01-01 13:08:18.229186000 +0100
|
|
|
|
@@ -293,8 +293,10 @@
|
|
|
|
@@ -508,7 +508,9 @@
|
|
|
|
#ifdef HAVE_CAIRO
|
|
|
|
extern const struct output_driver_factory png_driver_factory;
|
|
|
|
extern const struct output_driver_factory pdf_driver_factory;
|
|
|
|
|
|
|
|
extern const struct output_driver_factory ps_driver_factory;
|
|
|
|
extern const struct output_driver_factory ps_driver_factory;
|
|
|
|
|
|
|
|
extern const struct output_driver_factory spv_driver_factory;
|
|
|
|
+#if 0
|
|
|
|
+#if 0
|
|
|
|
extern const struct output_driver_factory svg_driver_factory;
|
|
|
|
extern const struct output_driver_factory svg_driver_factory;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#endif
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
extern const struct output_driver_factory tex_driver_factory;
|
|
|
|
|
|
|
|
extern const struct output_driver_factory txt_driver_factory;
|
|
|
|
|
|
|
|
|
|
|
|
static const struct output_driver_factory *factories[] =
|
|
|
|
@@ -522,7 +524,9 @@
|
|
|
|
{
|
|
|
|
&spv_driver_factory,
|
|
|
|
@@ -308,8 +310,10 @@
|
|
|
|
|
|
|
|
#ifdef HAVE_CAIRO
|
|
|
|
|
|
|
|
&pdf_driver_factory,
|
|
|
|
&pdf_driver_factory,
|
|
|
|
&ps_driver_factory,
|
|
|
|
&ps_driver_factory,
|
|
|
|
+#if 0
|
|
|
|
+#if 0
|
|
|
|
&svg_driver_factory,
|
|
|
|
&svg_driver_factory,
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#endif
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
&png_driver_factory,
|
|
|
|
|
|
|
|
&tex_driver_factory,
|
|
|
|
NULL
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|