Update to 1.8.10:
Release 1.8.10 (2010-02-19 Carl Worth <cworth@cworth.org>)
==========================================================
The cairo community is pleased to announce the 1.8.10 release of the
cairo graphics library. This is the fifth update to cairo's stable 1.8
series. This release consists of about a dozen hand-picked fixes
compared to 1.8.8 (which was released about 8 months ago).
We recommend that everyone using cairo upgrade to 1.8.10.
-Carl
General Bug fixes
=================
* Fix path construction for the case of cairo_curve_to immediately
after cairo_new_sub_path followed at some point by
cairo_close_path. (Previously, the final point for the close_path
was computed incorrectly.)
* Fix for cairo_push_group or cairo_pop_group with a non-empty current
path. (Previously the path may have been erroneously translated when
either of these functions was called.)
* Fix to correctly report an error if
cairo_surface_set_fallback_resolution is called with a value of 0
(in either axis). Previously, an assertion would occur later rather
than an error being properly reported when the original, invalid
value was passed.
Bug 23067: Using clear drawing operator crashes printing
http://bugs.freedesktop.org/show_bug.cgi?id=23067
* Fix to handle a cairo_arc of radius 0 as equivalent to a
cairo_line_to to the center coordinate, (previously cairo would do
nothing for a cairo_arc call with a radius of 0).
Backend-specific bug fixes
==========================
cairo-xlib
----------
* Fix to correctly copy from a Window source. Previously, cairo was
failing to include the contents of any sub-windows when copying from
a Window source.
Bug 12996: Xlib source surface fast-paths do not use
IncludeInferiors, while slow paths do
https://bugs.freedesktop.org/show_bug.cgi?id=12996
cairo-ft
--------
* Fix conversion of freetype index to UCS4 value, (which would
previously miss the first character and cause the space glyph to map
to 0x00A0 instead of 0x0020).
cairo-pdf
---------
* Fix Type 1 subsetting to avoid generating corrupt data.
Launchpad Ubuntu/cups bug 419143: Printing from evince (and
perhaps other GTK apps) to PostScript printers is broken
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/419143
* Fix Type 1 subsetting to correctly identify binary eexec data.
* Fix Type 1 subsetting to include fixed-content portion in the
embedded font, (since some fonts may contain additional PostScript
code after the cleartomark).
* Fix Type 1 subsetting to append "cleartomark" operator for binary
fonts that don't include it.
Build fixes
===========
* Fix to compile on OpenBSD, (which has a libpng.pc file but none of
libpng10.pc, libpng12.pc, or libpng13.pc which cairo was looking for
previously).
2010-02-21 14:02:46 +01:00
|
|
|
# $NetBSD: Makefile,v 1.80 2010/02/21 13:02:46 wiz Exp $
|
2004-02-03 13:16:42 +01:00
|
|
|
|
Update to 1.8.10:
Release 1.8.10 (2010-02-19 Carl Worth <cworth@cworth.org>)
==========================================================
The cairo community is pleased to announce the 1.8.10 release of the
cairo graphics library. This is the fifth update to cairo's stable 1.8
series. This release consists of about a dozen hand-picked fixes
compared to 1.8.8 (which was released about 8 months ago).
We recommend that everyone using cairo upgrade to 1.8.10.
-Carl
General Bug fixes
=================
* Fix path construction for the case of cairo_curve_to immediately
after cairo_new_sub_path followed at some point by
cairo_close_path. (Previously, the final point for the close_path
was computed incorrectly.)
* Fix for cairo_push_group or cairo_pop_group with a non-empty current
path. (Previously the path may have been erroneously translated when
either of these functions was called.)
* Fix to correctly report an error if
cairo_surface_set_fallback_resolution is called with a value of 0
(in either axis). Previously, an assertion would occur later rather
than an error being properly reported when the original, invalid
value was passed.
Bug 23067: Using clear drawing operator crashes printing
http://bugs.freedesktop.org/show_bug.cgi?id=23067
* Fix to handle a cairo_arc of radius 0 as equivalent to a
cairo_line_to to the center coordinate, (previously cairo would do
nothing for a cairo_arc call with a radius of 0).
Backend-specific bug fixes
==========================
cairo-xlib
----------
* Fix to correctly copy from a Window source. Previously, cairo was
failing to include the contents of any sub-windows when copying from
a Window source.
Bug 12996: Xlib source surface fast-paths do not use
IncludeInferiors, while slow paths do
https://bugs.freedesktop.org/show_bug.cgi?id=12996
cairo-ft
--------
* Fix conversion of freetype index to UCS4 value, (which would
previously miss the first character and cause the space glyph to map
to 0x00A0 instead of 0x0020).
cairo-pdf
---------
* Fix Type 1 subsetting to avoid generating corrupt data.
Launchpad Ubuntu/cups bug 419143: Printing from evince (and
perhaps other GTK apps) to PostScript printers is broken
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/419143
* Fix Type 1 subsetting to correctly identify binary eexec data.
* Fix Type 1 subsetting to include fixed-content portion in the
embedded font, (since some fonts may contain additional PostScript
code after the cleartomark).
* Fix Type 1 subsetting to append "cleartomark" operator for binary
fonts that don't include it.
Build fixes
===========
* Fix to compile on OpenBSD, (which has a libpng.pc file but none of
libpng10.pc, libpng12.pc, or libpng13.pc which cairo was looking for
previously).
2010-02-21 14:02:46 +01:00
|
|
|
DISTNAME= cairo-1.8.10
|
2004-02-03 13:16:42 +01:00
|
|
|
CATEGORIES= graphics
|
2005-09-30 15:51:24 +02:00
|
|
|
MASTER_SITES= http://cairographics.org/releases/
|
2004-02-03 13:16:42 +01:00
|
|
|
|
|
|
|
MAINTAINER= recht@NetBSD.org
|
2004-04-27 14:48:44 +02:00
|
|
|
HOMEPAGE= http://cairographics.org/
|
2004-02-03 13:16:42 +01:00
|
|
|
COMMENT= Vector graphics library with cross-device output support
|
2009-07-10 18:26:40 +02:00
|
|
|
LICENSE= gnu-lgpl-v2.1 AND mpl-1.1
|
2004-02-03 13:16:42 +01:00
|
|
|
|
2006-11-05 18:17:04 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2006-12-02 23:32:59 +01:00
|
|
|
USE_LANGUAGES+= c99
|
2004-02-03 13:16:42 +01:00
|
|
|
USE_LIBTOOL= yes
|
2004-04-27 14:48:44 +02:00
|
|
|
USE_PKGLOCALEDIR= yes
|
2005-09-30 15:51:24 +02:00
|
|
|
USE_TOOLS+= pkg-config
|
2009-01-07 17:39:10 +01:00
|
|
|
PKGCONFIG_OVERRIDE+= src/cairo.pc.in src/cairo-features.pc.in
|
2005-09-30 15:51:24 +02:00
|
|
|
GNU_CONFIGURE= yes
|
update to cairo-0.4.0
http://cairographics.org/manual/cairo-Microsoft-Windows-Backend.html
Disabled backend: quartz
------------------------
Unfortunately, the quartz backend code is currently out of date with
respect to some recent backend interface changes. So, the quartz
backend is disabled in this snapshot.
If the quartz backend is brought up-to-date before the next snapshot,
we would be glad to make a 0.4.1 snapshot that re-enables it, (we do
not expect many more big backend interface changes).
API Changes
-----------
The font system has been revamped, (as Owen Taylor's work with
integrating pango and cairo gave us the first serious usage of the
non-toy font API).
One fundamental, user-visible change is that the cairo_font_t object
now represents a font that is scaled to a particular device
resolution. Further changes are described below.
cairo.h
-------
Removed cairo_font_set_transform and cairo_font_current_transform.
Added cairo_font_extents and cairo_font_glyph_extents. See
documentation for details:
http://cairographics.org/manual/cairo-cairo-t.html#cairo-font-extents
cairo-ft.h
----------
The cairo_ft_font API changed considerably. Please see the
documentation for details:
http://cairographics.org/manual/cairo-FreeType-Fonts.html
Performance
-----------
Make the fast-path clipping (pixel-aligned rectangles) faster.
Add optimization for applying a constant alpha to a pattern.
Optimize gradients that are horizontal or vertical in device space.
Xlib: When RENDER is not available, use image surfaces for
intermediate surfaces rather than xlib surfaces.
Backend-specific changes
------------------------
Glitz
-----
Major update to glitz backend. The output quality should now be just
as good as the image and xlib backends.
Track changes to glitz 0.4.0.
PDF
---
Various improvements to produce more conformant output.
Internals
---------
David Reveman contributed a large re-work of the cairo_pattern_t
implementation, providing cleaner code and more optimization
opportunities.
Backend interface changes
-------------------------
Rework backend interface to accept patterns, not surfaces for source
and mask.
Remove set_matrix, set_filter, and set_repeat functions.
More sophisticated backend interface for image fallbacks,
({acquire,release}_{source,dest}_image() and clone_similar).
Bug fixes
---------
Only install header files for backends that have been compiled.
Fixed some rounding errors leading to incorrectly placed glyphs.
Many other minor fixes.
2005-03-27 14:29:17 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-xcb
|
2005-09-30 15:51:24 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-glitz
|
|
|
|
CONFIGURE_ARGS+= --enable-pdf
|
|
|
|
CONFIGURE_ARGS+= --enable-ps
|
2004-02-03 13:16:42 +01:00
|
|
|
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= carbon
|
2006-07-23 03:01:28 +02:00
|
|
|
.if exists(/System/Library/Frameworks/Carbon.framework)
|
2005-10-02 10:09:43 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-quartz
|
2008-05-14 17:26:14 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-quartz-font
|
|
|
|
CONFIGURE_ARGS+= --enable-quartz-image
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.carbon= yes
|
2005-10-02 10:09:43 +02:00
|
|
|
.endif
|
|
|
|
|
2006-07-23 06:07:34 +02:00
|
|
|
.include "options.mk"
|
|
|
|
|
2008-04-28 17:09:16 +02:00
|
|
|
# For snprintf() and ctime_r()
|
|
|
|
CPPFLAGS.SunOS+= -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS
|
2006-11-09 14:26:36 +01:00
|
|
|
|
2006-04-14 09:08:07 +02:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
2006-07-24 22:01:12 +02:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
update to cairo-0.4.0
http://cairographics.org/manual/cairo-Microsoft-Windows-Backend.html
Disabled backend: quartz
------------------------
Unfortunately, the quartz backend code is currently out of date with
respect to some recent backend interface changes. So, the quartz
backend is disabled in this snapshot.
If the quartz backend is brought up-to-date before the next snapshot,
we would be glad to make a 0.4.1 snapshot that re-enables it, (we do
not expect many more big backend interface changes).
API Changes
-----------
The font system has been revamped, (as Owen Taylor's work with
integrating pango and cairo gave us the first serious usage of the
non-toy font API).
One fundamental, user-visible change is that the cairo_font_t object
now represents a font that is scaled to a particular device
resolution. Further changes are described below.
cairo.h
-------
Removed cairo_font_set_transform and cairo_font_current_transform.
Added cairo_font_extents and cairo_font_glyph_extents. See
documentation for details:
http://cairographics.org/manual/cairo-cairo-t.html#cairo-font-extents
cairo-ft.h
----------
The cairo_ft_font API changed considerably. Please see the
documentation for details:
http://cairographics.org/manual/cairo-FreeType-Fonts.html
Performance
-----------
Make the fast-path clipping (pixel-aligned rectangles) faster.
Add optimization for applying a constant alpha to a pattern.
Optimize gradients that are horizontal or vertical in device space.
Xlib: When RENDER is not available, use image surfaces for
intermediate surfaces rather than xlib surfaces.
Backend-specific changes
------------------------
Glitz
-----
Major update to glitz backend. The output quality should now be just
as good as the image and xlib backends.
Track changes to glitz 0.4.0.
PDF
---
Various improvements to produce more conformant output.
Internals
---------
David Reveman contributed a large re-work of the cairo_pattern_t
implementation, providing cleaner code and more optimization
opportunities.
Backend interface changes
-------------------------
Rework backend interface to accept patterns, not surfaces for source
and mask.
Remove set_matrix, set_filter, and set_repeat functions.
More sophisticated backend interface for image fallbacks,
({acquire,release}_{source,dest}_image() and clone_similar).
Bug fixes
---------
Only install header files for backends that have been compiled.
Fixed some rounding errors leading to incorrectly placed glyphs.
Many other minor fixes.
2005-03-27 14:29:17 +02:00
|
|
|
.include "../../fonts/fontconfig/buildlink3.mk"
|
2008-11-16 18:32:01 +01:00
|
|
|
BUILDLINK_API_DEPENDS.freetype2+= freetype2>=2.1.9
|
2004-02-29 01:06:14 +01:00
|
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
2008-11-16 18:32:01 +01:00
|
|
|
BUILDLINK_API_DEPENDS.glitz+= glitz>=0.5.1
|
2004-04-27 14:48:44 +02:00
|
|
|
.include "../../graphics/glitz/buildlink3.mk"
|
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
2008-11-16 18:32:01 +01:00
|
|
|
# include?
|
|
|
|
#.include "../../print/libspectre/buildlink3.mk"
|
|
|
|
BUILDLINK_API_DEPENDS.pixman+= pixman>=0.12.0
|
2008-04-21 13:29:33 +02:00
|
|
|
.include "../../x11/pixman/buildlink3.mk"
|
2008-11-16 18:32:01 +01:00
|
|
|
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2004-02-03 13:16:42 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|