Koen van der Drift wrote:

For the package plplot that I maintain I have to add the path to freetype so the package can use it. So far, I was using this in the ConfigureParams field:

FREETYPELIBDIR=/usr/X11R6/lib FREETYPEINCDIR=/usr/X11R6/include/freetype2

This works with Apple's X11, but not with xfree86 (4.4), because in the latter case the file ft2build.h is in /usr/X11R6/include, not in /usr/X11R6/include/freetype, and the build fails because ft2build.h cannot be found.


Any suggestion how I can solve this in order for the user to either use X11 or xfree86?

Can't you just add -I/usr/X11R6/include at the place where it uses -I/usr/X11R6/include/freetype2? Like running make as


make FREETYPEINCCMD="`freetype-config --cflags`"

Incidentally, this (i.e. using freetype-config) is what they should have done in the first place, instead of their dumb^H^H^H^Hsemi-intelligent configure logic for searching freetype2 in hardcoded places like /usr/local/include/freetype2.

--
Martin


------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297 _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to