[vdr] [PATCH] Use pkg-config to find freetype/fontconfig flags

Malcolm Caldwell malcolm.caldwell at cdu.edu.au
Mon Mar 10 01:29:42 CET 2008


On Sat, 2008-03-08 at 19:12 +0100, Clemens Kirchgatterer wrote:
> Klaus Schmidinger <Klaus.Schmidinger at cadsoft.de> wrote:
> 
> > I still believe, though, that freetype2's include files are broken.
> > A simple '#include <freetype2.h>' should be enough. If their header
> > file(s) would behave like the rest, we wouldn't have this discussion.
> 
> no. pkg-config and freetype-config have absolutly nothing to do with
> that. i think nearly every "obtional" library has one of these to
> provide a way to find them at compile and link time. please see the
> output of: ls /usr/bin/*-config

I don't know make's syntax, but why not do something like:

in shell:
$(freetype-config 2>/dev/null --cflags || echo /usr/include/freetype3)


As I said I don't know make's config but it might be:
$(shell freetype-config 2>/dev/null --cflags || echo /usr/include/freetype3)

> clemens
> 
> _______________________________________________
> vdr mailing list
> vdr at linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
> 





More information about the vdr mailing list