Subject: Re: Cflags and pkg-config and freetype2
To: None <rh@netbsd.org, tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 02/21/2006 12:01:23
On Tue, 21 Feb 2006, Jeremy C. Reed wrote:
> Cflags: -I${includedir}/freetype2 -I${includedir}
>
> How can that be done the pkgconfig way?
I was thinking that this would be done only if includedir was not
/usr/include (like the freetype-config script does it). But now I see
other examples
(pkgsrc/graphics/libexif/work/libexif-0.6.12/libexif/libexif.pc.in and
pkgsrc/devel/libgphoto2/work/libgphoto2-2.1.6/libgphoto2/libgphoto2.pc.in)
just do it automatically:
Cflags: -I${includedir}/libexif -I${includedir}
and
Cflags: -I${includedir}/gphoto2 -I${includedir}
Is it okay if I update the freetype2 package with a patch to add that
-I${includedir}?
(I am curious why ft2build.h is not in the subdirectory though...)
Jeremy C. Reed
Low cost press releases
http://www.reedmedia.net/