Bug 4262 - Add a cairo-ft.pc?
Summary: Add a cairo-ft.pc?
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.0.0
Hardware: x86 (IA32) Linux (All)
: high enhancement
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-26 17:34 UTC by Igor Foox
Modified: 2006-06-13 23:27 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Simple solution, reverting to 0.9.3 version of cairo.pc.in (627 bytes, patch)
2005-08-26 17:36 UTC, Igor Foox
Details | Splinter Review

Description Igor Foox 2005-08-26 17:34:45 UTC
The cairo.pc.in file seems to have changed between 0.9.3 and 1.0.0, this results
in freetype2 not being included in the CFLAGS dependency in the generated cairo.pc.

The problem can be resolved by reverting cairo.pc.in to it's 0.9.3 version.
Comment 1 Igor Foox 2005-08-26 17:36:10 UTC
Created attachment 3058 [details] [review]
Simple solution, reverting to 0.9.3 version  of cairo.pc.in

Simple solution, converting cairo.pc.in to it's 0.9.3 version
Comment 2 Igor Foox 2005-08-26 17:36:45 UTC
Forgot to mention, the bug is in 1.0.0 not in 0.9.3, unfortunately a 1.0.0 field
doesn't exist yet. :)
Comment 3 Carl Worth 2005-08-28 09:39:12 UTC
Sorry about the missing version in the bugzilla interface. Added 1.0.0
now and moved the bug there.
Comment 4 Owen Taylor 2005-08-29 10:33:01 UTC
We intentionally don't want the libraries for FreeType to be given
when you do pkg-config --libs cairo to avoid bringing in unnecessary
library dependencies, and without the libraries the cflags don't
do much good ... you still can't make use of the functions in 
cairo-ft.h, since they are

It might make sense to add a cairo-ft.pc that pulled in the libraries
and cflags for freetype and fontconfig. On the other hand, it doesn't
really have much benefits beyond:

 pkg-config --cflags cairo fontconfig
Comment 5 Carl Worth 2005-08-29 10:42:41 UTC
I think there would some significant benefit to cairo-ft.pc.

The benefit would be in increased guessability. A strong correlation
between header file names used in #include directives and pkg-config
package names could go quite a ways at making things feel very robust
I think.
Comment 6 Behdad Esfahbod 2006-06-13 15:20:15 UTC
The other major benefit of cairo-ft.pc would be that it ensures cairo is
compiled with fc support.  No more custom configure tests.

Cooking patches.
Comment 7 Behdad Esfahbod 2006-06-13 23:27:41 UTC
I pushed a commit in my repo that adds per-backend pkg-config files.  Carl will
push it into the next snapshot.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.