From cb4a8525f0e4eec2274c14fd772a43e44df45525 Mon Sep 17 00:00:00 2001 From: xtraeme Date: Thu, 17 Feb 2005 13:34:16 +0000 Subject: Update to 0.3.0, this closes PR pkg/29331. Lots of bugfixes, improvements, etc... please see the NEWS file. --- graphics/cairo/Makefile | 4 +- graphics/cairo/PLIST | 16 +++- graphics/cairo/distinfo | 7 +- graphics/cairo/patches/patch-aa | 169 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 188 insertions(+), 8 deletions(-) create mode 100644 graphics/cairo/patches/patch-aa (limited to 'graphics') diff --git a/graphics/cairo/Makefile b/graphics/cairo/Makefile index 837411d8dd5..fb585d89820 100644 --- a/graphics/cairo/Makefile +++ b/graphics/cairo/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.13 2004/11/15 03:59:49 rh Exp $ +# $NetBSD: Makefile,v 1.14 2005/02/17 13:34:16 xtraeme Exp $ -DISTNAME= cairo-0.2.0 +DISTNAME= cairo-0.3.0 CATEGORIES= graphics MASTER_SITES= http://cairographics.org/snapshots/ diff --git a/graphics/cairo/PLIST b/graphics/cairo/PLIST index a56d792855f..e8f34af2634 100644 --- a/graphics/cairo/PLIST +++ b/graphics/cairo/PLIST @@ -1,5 +1,15 @@ -@comment $NetBSD: PLIST,v 1.2 2004/09/22 08:09:32 jlam Exp $ -include/cairo-features.h -include/cairo.h +@comment $NetBSD: PLIST,v 1.3 2005/02/17 13:34:16 xtraeme Exp $ +include/cairo/cairo-atsui.h +include/cairo/cairo-features.h +include/cairo/cairo-ft.h +include/cairo/cairo-glitz.h +include/cairo/cairo-pdf.h +include/cairo/cairo-png.h +include/cairo/cairo-ps.h +include/cairo/cairo-quartz.h +include/cairo/cairo-xcb.h +include/cairo/cairo-xlib.h +include/cairo/cairo.h lib/libcairo.la lib/pkgconfig/cairo.pc +@dirrm include/cairo diff --git a/graphics/cairo/distinfo b/graphics/cairo/distinfo index 1baae470a77..fda5d0ccbf1 100644 --- a/graphics/cairo/distinfo +++ b/graphics/cairo/distinfo @@ -1,4 +1,5 @@ -$NetBSD: distinfo,v 1.6 2004/11/15 03:59:49 rh Exp $ +$NetBSD: distinfo,v 1.7 2005/02/17 13:34:16 xtraeme Exp $ -SHA1 (cairo-0.2.0.tar.gz) = 451ad7bd1f3dfe1aa46de721450d9f34dc9af1ee -Size (cairo-0.2.0.tar.gz) = 462216 bytes +SHA1 (cairo-0.3.0.tar.gz) = 0ad4efaffb36dabc15e20671026c7eb98186a16e +Size (cairo-0.3.0.tar.gz) = 514446 bytes +SHA1 (patch-aa) = d339f9fe8cceba0966959679e965853c2c0784d2 diff --git a/graphics/cairo/patches/patch-aa b/graphics/cairo/patches/patch-aa new file mode 100644 index 00000000000..36054908469 --- /dev/null +++ b/graphics/cairo/patches/patch-aa @@ -0,0 +1,169 @@ +$NetBSD: patch-aa,v 1.3 2005/02/17 13:34:16 xtraeme Exp $ + +--- src/cairo_glitz_surface.c.orig Thu Jan 20 11:29:19 2005 ++++ src/cairo_glitz_surface.c Wed Feb 16 19:20:26 2005 +@@ -333,7 +333,7 @@ + if (format == NULL) + return NULL; + +- surface = glitz_surface_create (drawable, format, 1, 1); ++ surface = glitz_surface_create (drawable, format, 1, 1, 0, NULL); + if (surface == NULL) + return NULL; + +@@ -355,7 +355,6 @@ + glitz_drawable_format_t templ; + glitz_format_t *format; + glitz_drawable_t *pbuffer; +- glitz_pbuffer_attributes_t attributes; + unsigned long mask; + int i; + +@@ -397,21 +396,13 @@ + if (!dformat) + return CAIRO_INT_STATUS_UNSUPPORTED; + +- attributes.width = glitz_surface_get_width (surface); +- attributes.height = glitz_surface_get_height (surface); +- mask = GLITZ_PBUFFER_WIDTH_MASK | GLITZ_PBUFFER_HEIGHT_MASK; +- +- pbuffer = glitz_create_pbuffer_drawable (drawable, dformat, +- &attributes, mask); ++ pbuffer = ++ glitz_create_pbuffer_drawable (drawable, dformat, ++ glitz_surface_get_width (surface), ++ glitz_surface_get_height (surface)); + if (!pbuffer) + return CAIRO_INT_STATUS_UNSUPPORTED; + +- if (glitz_drawable_get_width (pbuffer) < attributes.width || +- glitz_drawable_get_height (pbuffer) < attributes.height) { +- glitz_drawable_destroy (pbuffer); +- return CAIRO_INT_STATUS_UNSUPPORTED; +- } +- + glitz_surface_attach (surface, pbuffer, + GLITZ_DRAWABLE_BUFFER_FRONT_COLOR, + 0, 0); +@@ -457,7 +448,7 @@ + if (gformat == NULL) + return NULL; + +- surface = glitz_surface_create (drawable, gformat, width, height); ++ surface = glitz_surface_create (drawable, gformat, width, height, 0, NULL); + if (surface == NULL) + return NULL; + +@@ -510,7 +501,8 @@ + int width, + int height, + glitz_buffer_t *geometry, +- glitz_geometry_format_t *format) ++ glitz_geometry_format_t *format, ++ int count) + { + if (_glitz_ensure_target (dst)) + return CAIRO_INT_STATUS_UNSUPPORTED; +@@ -518,9 +510,10 @@ + if (glitz_surface_get_status (dst)) + return CAIRO_STATUS_NO_TARGET_SURFACE; + +- glitz_set_geometry (dst, +- 0, 0, +- format, geometry); ++ if (geometry) { ++ glitz_set_geometry (dst, GLITZ_GEOMETRY_TYPE_VERTEX, format, geometry); ++ glitz_set_array (dst, 0, 2, count, 0, 0); ++ } + + glitz_composite (op, + src, +@@ -531,7 +524,7 @@ + dst_x, dst_y, + width, height); + +- glitz_set_geometry (dst, 0, 0, NULL, NULL); ++ glitz_set_geometry (dst, GLITZ_GEOMETRY_TYPE_NONE, NULL, NULL); + + if (glitz_surface_get_status (dst) == GLITZ_STATUS_NOT_SUPPORTED) + return CAIRO_INT_STATUS_UNSUPPORTED; +@@ -589,7 +582,7 @@ + mask_x, mask_y, + dst_x, dst_y, + width, height, +- NULL, NULL); ++ NULL, NULL, 0); + + if (src_clone) + cairo_surface_destroy (&src_clone->base); +@@ -624,16 +617,16 @@ + glitz_buffer_t *buffer; + glitz_geometry_format_t gf; + cairo_int_status_t status; +- int width, height; ++ int width, height, count; + void *data; + +- gf.mode = GLITZ_GEOMETRY_MODE_DIRECT; +- gf.edge_hint = GLITZ_GEOMETRY_EDGE_HINT_SHARP; +- gf.primitive = GLITZ_GEOMETRY_PRIMITIVE_QUADS; +- gf.type = GLITZ_DATA_TYPE_FLOAT; +- gf.first = 0; +- gf.count = n_rects * 4; ++ gf.vertex.primitive = GLITZ_PRIMITIVE_QUADS; ++ gf.vertex.type = GLITZ_DATA_TYPE_FLOAT; ++ gf.vertex.bytes_per_vertex = 2 * sizeof (glitz_float_t); ++ gf.vertex.attributes = 0; + ++ count = n_rects * 4; ++ + data = malloc (n_rects * 8 * sizeof (glitz_float_t)); + if (!data) + return CAIRO_STATUS_NO_MEMORY; +@@ -678,7 +671,7 @@ + 0, 0, + 0, 0, + width, height, +- buffer, &gf); ++ buffer, &gf, count); + + glitz_surface_destroy (solid); + glitz_buffer_destroy (buffer); +@@ -715,7 +708,7 @@ + glitz_buffer_t *buffer; + glitz_geometry_format_t gf; + cairo_int_status_t status; +- int x_dst, y_dst, x_rel, y_rel, width, height; ++ int x_dst, y_dst, x_rel, y_rel, width, height, count; + void *data; + + if (op == CAIRO_OPERATOR_SATURATE) +@@ -724,12 +717,12 @@ + if (generic_src->backend != dst->base.backend) + return CAIRO_INT_STATUS_UNSUPPORTED; + +- gf.mode = GLITZ_GEOMETRY_MODE_DIRECT; +- gf.edge_hint = GLITZ_GEOMETRY_EDGE_HINT_GOOD_SMOOTH; +- gf.primitive = GLITZ_GEOMETRY_PRIMITIVE_QUADS; +- gf.type = GLITZ_DATA_TYPE_FLOAT; +- gf.first = 0; +- gf.count = n_traps * 4; ++ gf.vertex.primitive = GLITZ_PRIMITIVE_QUADS; ++ gf.vertex.type = GLITZ_DATA_TYPE_FLOAT; ++ gf.vertex.bytes_per_vertex = 2 * sizeof (glitz_float_t); ++ gf.vertex.attributes = 0; ++ ++ count = n_traps * 4; + + data = malloc (n_traps * 8 * sizeof (glitz_float_t)); + if (!data) +@@ -795,7 +788,7 @@ + 0, 0, + x_dst, y_dst, + width, height, +- buffer, &gf); ++ buffer, &gf, count); + + if (mask) + glitz_surface_destroy (mask); + -- cgit v1.2.3