Subject: | Re: Bug #50287 for Font-FreeType: Makefile.PL patch |
Date: | Tue, 21 Dec 2010 12:51:57 +0100 |
To: | bug-Font-FreeType [...] rt.cpan.org |
From: | Gregor Riepl <onitake [...] gmail.com> |
I had similar problems building Font-FreeType-0.03.
But I propose a better solution: Use pkg-config instead of hardcoding the search paths. That's how it was intended by
the freetype developers anyway.
The two lines in Makefile.PL should be:
LIBS => `pkg-config --libs freetype2`,
INC => `pkg-config --cflags freetype2`,
Issues could occur if multiple pkg-configs are installed and the wrong one is picked up, but that can easily be fixed by
pointing PKG_CONFIG_PATH to freetype2.pc's location.