Bug 4262

Summary: Add a cairo-ft.pc?
Product: cairo Reporter: Igor Foox <ifoox>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: enhancement    
Priority: high    
Version: 1.0.0   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Simple solution, reverting to 0.9.3 version of cairo.pc.in

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.