Commit graph

114 commits

Author SHA1 Message Date
wiz
7d0c8ddaf6 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 13:02:46 +00:00
tnn
e3685c2374 no longer needs MAKE_JOBS_SAFE=no 2010-02-06 14:52:33 +00:00
wiz
91871f449e Second try at jpeg-8 recursive PKGREVISION bump. 2010-01-18 09:58:37 +00:00
wiz
579796a3e5 Recursive PKGREVISION bump for jpeg update to 8. 2010-01-17 12:02:03 +00:00
sno
6f7368d4db bump revision because of graphics/jpeg update 2009-08-26 19:56:37 +00:00
tron
9443dd0538 Set license to gnu-lgpl-v2.1 and mpl-1.1. 2009-07-10 16:26:40 +00:00
drochner
ddd00d88a6 update to 1.8.8
changes:
small number of bug fixes (in particular a
few corrections to the documentation and a few fixes in the FreeType font
backend)
2009-07-09 17:27:56 +00:00
joerg
3a3c07bc30 Remove @dirrm entries from PLISTs 2009-06-14 17:59:04 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
ahoka
e389f803b3 Update description from http://www.cairographics.org/ 2009-01-14 14:32:53 +00:00
wiz
68477d9d4c Update to 1.8.6:
Release 1.8.6 (2008-12-13 Chris Wilson <chris@chris-wilson.co.uk>)
=========================================================
The cairo community is pleased to announce the 1.8.6 release of the
cairo graphics library. This is the third update to cairo's stable
1.8 series and contains a small number of bug fixes (in particular a
few fixes for failures of cairo 1.8.4 on Quartz and PDF, and build fixes for
a couple of backends). This is being released just under a month after
cairo 1.8.4.

We recommend that everyone using cairo upgrade to 1.8.6.

-Chris

Build fixes
-----------
Fix build of DirectFB backend with debugging enabled:

   Bug in _cairo_directfb_surface_release_source_image function
   http://bugs.freedesktop.org/show_bug.cgi?id=18322

Fix build on OS/2.

Bug fixes
---------
Workaround a mis-compilation of cairo_matrix_invert() that generated invalid
matrices and triggered assertion failures later. The issue was reported by
Peter Hercek.

Invalid computation of the modulus:

   https://bugzilla.mozilla.org/show_bug.cgi?id=466258

Invalid referencing of patterns in the Quartz backend:

   Failed assertion `CAIRO_REFERENCE_COUNT_HAS_REFERENCE
   (&pattern->ref_count)' when using cairo quartz backend
   http://bugs.freedesktop.org/show_bug.cgi?id=18632

Invalid references to glyphs after early culling, causing segmentation faults
in the PDF backend:

   http://lists.cairographics.org/archives/cairo/2008-December/015976.html

Check for XRender in the XCB backend, or else we may attempt an invalid memory
access:

    XCB backend fails with missing render.
    https://bugs.freedesktop.org/show_bug.cgi?id=18588
2009-01-07 16:39:10 +00:00
drochner
b6680c5fad fix an uninitialized variable, from upstream CVS, bump PKGREVISION
This should fix the "transmission" crash reported by Jared D. McNeill
on pkgsrc-changes.
2008-11-26 15:55:32 +00:00
wiz
4237c7e198 Depend on correct freetype2 version. Add comment about the possibility
to include libspectre (not enabled). Should we?
2008-11-16 17:32:01 +00:00
wiz
ba82622a2d Update to 1.8.4:
Release 1.8.4 (2008-11-14 Carl Worth <cworth@cworth.org>)
=========================================================
The cairo community is pleased to announce the 1.8.4 release of the
cairo graphics library. This is the second update to cairo's stable
1.8 series and contains a small number of bug fixes, (in particular a
few fixes for build failures of cairo 1.8.2 on various systems). This
is being released just over two weeks after cairo 1.8.2.

We recommend that everyone using cairo upgrade to 1.8.4.

-Carl

Build fixes
-----------
Fix build with older XRender that doesn't define RepeatNone:

   Build of xlib backend fails against old XRender (RepeatNone undeclared)
   https://bugs.freedesktop.org/show_bug.cgi?id=18385

Fix build with bash version <= 3.0:

   doltlibtool broken on linux with bash 3.00.0
   https://bugs.freedesktop.org/show_bug.cgi?id=18363

Bug fixes
---------
Avoid triggering a bug in X.org server 6.9 resulting in a hung machine
requiring a reboot:

    https://bugs.freedesktop.org/show_bug.cgi?id=15628#c2

Fix display of user fonts as exercised by proposed support for type3
fonts in poppler (unsigned promotion fixes):

    Use cairo user-font for Type 3 fonts
    http://lists.freedesktop.org/archives/poppler/2008-October/004181.html

Avoid miscomputing size of fallback images required when rendering
with CLEAR, IN, or SOURCE operator to vector surfaces, (PS, PDF, SVG,
etc.).

Be more tolerant of broken fonts when subsetting type1 fonts:

   Error handling in cairo_type1_font_subset_get_glyph_names_and_widths
   http://lists.cairographics.org/archives/cairo/2008-October/015569.html

Fix cairo_fill_extents, cairo_stroke_extents, cairo_path_extents, to
correctly allow NULL parameters as documented.

Fix potential crash on emitting a type3 glyph after having drawn text
paths from the same font, (for example with cairo_text_path).
2008-11-16 17:20:14 +00:00
tron
1525850513 Re-add "include/cairo/cairo-quartz-image.h" to package list under Mac OS X.
Bump package revision.
2008-10-31 09:46:32 +00:00
wiz
e3ad79e4d7 Update to 1.8.2:
Release 1.8.2 (2008-10-29 Carl Worth <cworth@cworth.org>)
=========================================================
The cairo community is pleased to announce the 1.8.2 release of the
cairo graphics library. This is the first update to cairo's stable 1.8
series and contains a large number of bug fixes. It is being released
just over one month since cairo 1.8.0.

This release consists primarily of bug fixes, but there is one notable
new feature, (the ability to build cairo without an external font
backend), and there are a few optimizations as well. See below for
details on these changes and the most important bug fixes.

While many people have contributed to this release, Chris Wilson
deserves particular mention. He has contributed well over twice as
many changes to cairo since 1.8.0 than everyone else combined. We
greatly appreciate the tremendous efforts of Chris and all cairo
contributors.

We recommend everyone upgrade to cairo 1.8.2 and hope that everyone
will have lots of fun with cairo!

-Carl

New feature
-----------
It is now possible to build cairo without any font backend, (such as
freetype, win32 or quartz). This is most useful when the application
provides custom font rendering through the user-font API. But in the
case where no external font backend is available, and no user-font is
provided, cairo will render with a failsafe font, (a stroked font
covering visible ASCII character). (Behdad Esfahbod)

Optimizations
-------------
Dramatically speed up compilation with dolt (removes much of the
libtool overhead) (Behdad Esfahbod with thanks to Josh Triplett).

Several minor optimizations to tessellator (special-cased comparisons,
faster insert for skiplist, etc.) (Chris Wilson).

Optimize away fractional translation component when doing
EXTEND_NEAREST filtering, (for better performance).

General bug fixes
-----------------
Allow cloning sub-regions of similar surfaces to fix this bug
(Chris Wilson):

	Crafted gif file will crash firefox
	[XError: 'BadAlloc (insufficient resources for operation)']
	https://bugzilla.mozilla.org/show_bug.cgi?id=424333

Fix some matrix confusion to fix this regression (Chris Wilson):

	Translucent star exports in a wrong way to PDF
	https://bugs.launchpad.net/inkscape/+bug/234546

Fix some long-standing bugs with respect to properly computing the
extents of transformed, filtered surfaces (Owen Taylor, Carl Worth,
and Chris Wilson):

	Bad clipping with EXTEND_NONE
	http://bugs.freedesktop.org/show_bug.cgi?id=15349

	Improve filtering handling in cairo-pattern.c
	http://bugs.freedesktop.org/show_bug.cgi?id=15367

	Many thanks to Chris Wilson for digging out and cleaning up
	these fixes.

Fix compilation on Solaris 10 (Chris Wilson):

	Cairo requires -DREENTRANT (along with	-D_POSIX_THREAD_SEMANTICS)
	to compile on Solaris 10 with pthreads
	https://bugs.freedesktop.org/show_bug.cgi?id=18010

Fix very old bug causing dashes to be rendered at the wrong length in
fallback images (Adrian Johnson)

	Dashed strokes too long in fallback images
	https://bugs.freedesktop.org/show_bug.cgi?id=9189

Fix broken dashing when a dashed path starts outside the clip region
(Chris Wilson).

Avoid range overflow when computing large patterns (Benjamin Otte and
Chris Wilson).

Avoid crashing due to an invalid font with an incorrect entry in its
CMAP table (Adrian Johnson).

Fix bugs in computing maximum size of text requests that can be sent
with the Render extension, (avoiding potential crashes when rendering
large amounts of text) (Behdad Esfahbod and Chris Wilson).

Fix rendering of operators unbounded by the mask (Chris Wilson).

Fix compilation on systems without compiler support for a native
64-bit type (Chris Wilson).

Fix several cases of missing error-status propagation. (Chris Wilson,
doing the work he seems to never tire of).

Fix several locking issues found with the lockdep valgrind skin (Chris
Wilson).

Backend-specific bug fixes
--------------------------
xlib: Avoid crash due to attempting XRender calls on pixmaps with
formats not supported by the Render extension (Chris Wilson):

	XRender crashes due to NULL pointer from Cairo on SGI O2
	https://bugs.freedesktop.org/show_bug.cgi?id=1173

xlib: Add support for XImages with depth of 4, 20, 24, or 28 bits
(Chris Wilson):

	cairo doesn't support 24 bits per pixel mode on X11
	https://bugs.freedesktop.org/show_bug.cgi?id=9102

xlib: Avoid mistakenly considering two surfaces as similar just
because their depths match (while their Render formats do not) (Karl
Tomlinson).

ps: Fix slight mis-scaling of bitmapped fonts (Adrian Johnson)

svg: Correctly emit comp-op for paint, mask, and show_glyphs
operations (Emmanuel Pacaud).

svg: Use finer-grained fallbacks for SVG 1.2 (as PS and PDF backends
have been doing since 1.6.0) (Chris Wilson).
2008-10-30 21:44:54 +00:00
tron
4d5bc729bb Set API depends here as well. This fixes the build on system with a
builtin "pixman" older than 0.12.0 (e.g. NetBSD-current or Mac OS X).
2008-10-17 13:00:44 +00:00
tron
f8d6236967 Remove "include/cairo/cairo-quartz-image.h" which now longer exists
(even under Mac OS X).
2008-10-17 11:21:03 +00:00
drochner
e23f517170 add two patches from wiz: fix build with "ssp", "make test" fix 2008-10-16 12:22:10 +00:00
drochner
a640febe7b update to 1.8.0
from the announcement:
The dominant theme of this release is improvements to cairo's ability
to handle text. The highlights include a new "user fonts" feature as
well as a new cairo_show_text_glyphs API which allows glyphs to be
embedded in PDF output along with their original text, (for searching,
selection, and copy-and-paste). Another major feature is a revamp of
cairo's build system making it much easier to build cairo on various
platforms.
2008-10-16 10:55:08 +00:00
tnn
b73378d3a7 additionally, BUILDLINK_ABI_DEPENDS should be added to. 2008-10-06 16:23:09 +00:00
tnn
ee900d9239 fix botched bump of ABI depends from a couple of months ago ... 2008-10-06 16:18:53 +00:00
joerg
7c15ccf613 Fix png backend with libpng 1.2.30. Older libpng versions flushed the
output at the end of the write and this was restored with 1.2.30, but
cairo didn't override the flush function, resulting in fflush on a
non-stream. This in turn resulted in crashes of graphviz when compiling
doxygen. Bump revision.
2008-08-25 15:36:18 +00:00
joerg
793c4009b9 Needs serialised build. 2008-06-23 16:15:07 +00:00
obache
83736207a8 Fix to instal cairo-quartz-font.pc.
(and while here, enable quartz-image)

Then atsui support for pango again.

Bump pkgrevision.
2008-05-14 15:26:14 +00:00
yyamano
ad4cb358fc Make this build on OS X 10.4.x/ppc. 2008-05-05 06:53:00 +00:00
tnn
620be85959 Needs -D_POSIX_PTHREAD_SEMANTICS on Solaris 10. (PR pkg/38509) 2008-04-28 15:09:16 +00:00
tron
23320f4f1f "atsui" support in "cairo" has been deprecated. Remove "atsui" specific
bits (available under Mac OS X only) and correct the package list.
Bump package revision.
2008-04-22 10:23:09 +00:00
tnn
aece2f338c Update to cairo-1.6.4.
Major changes between the 1.4 and 1.6 branch:
- Now uses external "pixman" library instead of a bundled one.
- Improvements to PDF, SVG and PostScript output
- New support for arbitrary X server visuals
  (the 8-bit display support patch (patch-ae in pkgsrc) is integrated)
- rendering backend improvements
- various new API additions, while maintaining ABI compatibility
- New Quartz backend
- bug fixes
2008-04-21 11:29:33 +00:00
jlam
841dfa0e7a Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
2008-04-12 22:42:57 +00:00
drochner
6f648db2bf update to 1.4.14
changes:
-minor bugfixes
-make PostScript output more conformant wrt Type 3 fonts
2008-03-12 20:48:11 +00:00
drochner
4fb327a489 sync the patch dealing with 8-bit displays with the last version
from https://bugs.freedesktop.org/show_bug.cgi?id=4945
ride on recent update
2007-11-30 20:49:24 +00:00
wiz
fed14c18cb Update to 1.4.12:
Release 1.4.12 (2007-11-26 Carl Worth <cworth@cworth.org>)
==========================================================
This is the sixth update in cairo's stable 1.4 series. It comes five
months after the 1.4.10 release. This fix includes various bug fixes
originally developed during the 1.5.x development and backported to
1.4.

Some of the most significant bug fixes prevent crashes:

  * Avoid overflow when allocating large buffers (Vladimir Vukicevic)

  * Fix crash with cairo_pattern_set_user_data (Carl Worth)

  * Fix broken locking in cairo-ft error path (Chris Wilson)

  * Avoid crash when cleaning up after Render extension (Carl Worth)

  * Avoid crash for zero-sized bitmap glyph (Chris Wilson)

  * Avoid crash with type-1 fonts and ft and atsui enabled (Brian Ewins)

  * Fix many error-handling cases in the Quartz/ATSUI code (Brian Ewins)

  * Eliminate cairo_stroke crash with scaling near zero (Carl Worth)

Other fixes address rendering problems:

  * Fix PDF linear gradients without stops at 0.0 and 1.0 (Adrian Johnson)

  * Fix PDF CFF subsetting to work with Apple Preview (Adrian Johnson)

  * Report proper errors on out-of-memory on win32 (Vladimir Vukicevic)

  * Fix EXTEND_NONE gradients for cairo-quartz (Brian Ewins)

  * Fix odd-number-of-dashes dashing for cairo-quartz (Brian Ewins)

  * Fix erroneous results from cairo_stroke_extents (Carl Worth)

  * Force non-AA text when bitmap strikes are available (Keith Packard)

  * Fix cairo-atsui font metrics (Richard Hult)

And some avoid raising cairo errors for innocent problems:

  * Avoid drawing shutdown for glyph-not-found in font (Behdad Esfahbod)

  * Don't raise an error for creating an empty path (Chris Wilson)

At least one optimization managed to sneak in:

  * Free glyph surfaces after uploading to X server cache (Behdad Esfahbod)

And there are a few very minor fixes, (such as build fixes).
2007-11-29 22:13:58 +00:00
drochner
c7e4e6fdfb update to 1.4.10
changes:
The most significant
change in this release is a fix to avoid an X error in certain cases,
(that were causing OpenOffice.org to crash in Fedora). There is also a
semantic change to include child window contents when using an xlib
surface as a source, an optimization when drawing many rectangles, and
several minor fixes.
2007-07-06 18:19:43 +00:00
drochner
30e3ed849b update to 1.4.8
This is the fourth update in cairo's stable 1.4 series. It comes just
over five weeks after the 1.4.6 release. This release includes a
thread-safe surface-cache for solid patterns which significantly
improves text rendering with the xlib backend. Also, dozens of error
paths in cairo have been fixed thanks to extensive fault-injection
testing by Chris Wilson.
2007-06-15 17:47:59 +00:00
wiz
cf92177d0e Update to 1.4.6:
Release 1.4.6 (2007-05-01 Carl Worth <cworth@cworth.org>)
=========================================================
This is the third update in cairo's stable 1.4 series. It comes a
little less than three weeks since the 1.4.4 release. This release
fixes the broken mutex initialization that made cairo 1.4.4 unusable
on win32, OS/2, and BeOS systems. This release also adds significant
improvements to cairo's PDF backend, (native gradients!), and a couple
of performance optimizations, (one of which is very significant for
users of the xlib backend).

Release 1.4.4 (2007-04-13 Carl Worth <cworth@cworth.org>)
=========================================================
This is the second update release in cairo's stable 1.4 series. It
comes just less than a month after 1.4.2. The changes since 1.4.2
consist primarily of bug fixes, but also include at least one
optimization. See below for details.

There have been lots of individuals doing lots of great work on cairo,
but two efforts during the 1.4.4 series deserve particular mention:

Internal cleanup of error handling, (Chris Wilson)
--------------------------------------------------
Chris contributed a tremendous series of patches (74 patches!) to
improve cairo's handling of out-of-memory and other errors. He began
by adding gcc's warn_unused_attribute to as many functions as
possible, and then launched into the ambitious efforts of adding
correct code to quiet the dozens of resulting warnings.

Chris also wrote a custom valgrind skin to systematically inject
malloc failures into cairo, and did all the work necessary to verify
that cairo's performance test suite runs to completion without
crashing.

The end result is a much more robust implementation. Previously, many
error conditions would have gone unnoticed and would have led to
assertion failures, segmentation faults, or other harder-to-diagnose
problems. Now, more than ever, cairo should cleanly let the user know
of problems through cairo_status and other similar status
functions. Well done, Chris!

More malloc reduction, (Mathias Hasselmann)
-------------------------------------------
After 1.4.0, Behdad launched an effort to chase down excessive calls
to malloc within the implementation of cairo. He fixed a lot of
malloc-happy objects for 1.4.2, but one of the worst offenders,
(pixman regions), was left around. Mathias contributed an excellent
series of 15 patches to finish off this effort.

The end result is a cairo that calls malloc much less often than it
did before. Compared to 1.4.2, 55% of the calls to malloc have been
eliminate, (and 60% have been eliminated compared to 1.4.0). Well
done, Mathias!
2007-06-08 07:20:52 +00:00
rillig
7f125459d8 Removed some code duplication from the buildlink3 files by using the new
pkg-build-options.mk procedure.
2007-05-30 08:54:28 +00:00
drochner
94187ed7c0 before testing for definitions from config.h, #include it
fixes build failure on Linux reported by Ondrej Tuma
2007-04-05 13:12:07 +00:00
dmcmahill
866fdbf14d Repair a broken build on solaris and possibly others. 2007-03-29 12:00:44 +00:00
drochner
5578950b49 update to 1.4.2
This switches to the new stable branch. Too many changes to list here,
see the changelog.
Most notably: speed improvements, PDF output improvement, API additions,
bugfixes.
2007-03-20 15:29:18 +00:00
rillig
e058e3e946 Removed patch-ah. It had been rejected upstream as "invalid".
I still know that it was necessary for some package, but I don't
remember which one and on which platform, and even the CVS log message
doesn't give any useful information.
2007-03-12 11:03:26 +00:00
rillig
aedca29048 Added a patch to fix the pkg-config dependencies. 2007-02-15 14:32:34 +00:00
joerg
5e43280b23 Replace mk/bsd.prefs.mk includes with bsd.fast.prefs.mk includes.
The redundant parsing of bsd.prefs.mk is mostly avoided now and
parse time e.g. for x11/kdebase3 gets reduced by up to 10%.
2006-12-12 21:52:34 +00:00
jschauma
721b60b433 Instead of setting compiler flags in each package if it uses C99,
allow USE_LANGUAGES+=c99 and let gcc and mipspro do the right thing.
May need to be reviewed/added for other compilers.
ok rillig@
2006-12-02 22:32:59 +00:00
drochner
8b54214277 don't use visibily attribute "hidden" on solaris, from Gilles Dauphin
per PR pkg/35101
2006-11-23 11:33:02 +00:00
drochner
ace177ca6e update to 1.2.6
changes: mostly bugfixes
2006-11-09 20:57:40 +00:00
dsainty
d82a54acd1 Teach Solaris to expose snprintf() with:
CPPFLAGS.SunOS+=-D__EXTENSIONS__

Without this a Solaris 9 build falls over at cairo-output-stream.c.
2006-11-09 13:26:36 +00:00
joerg
b6de04a22f Convert to modular Xorg buildlinks. 2006-11-06 09:46:41 +00:00
joerg
6e82078eef DESTDIR support. 2006-11-05 17:17:04 +00:00
drochner
1a805c6921 The last fix for pseudocolor displays broke 24-bit troecolor displays.
Use a new patch from https://bugs.freedesktop.org/show_bug.cgi?id=4945
Bump PKGREVISION.
2006-09-29 13:43:41 +00:00