On Oct 12, 2015, at 8:28 AM, Michael Dickens wrote: > On Sun, Oct 11, 2015, at 01:49 PM, Ryan Schmidt wrote: >> On Oct 11, 2015, at 10:15 AM, michae...@macports.org wrote: >>> gr-fosphor: add a patch to fix finding Freetype2 headers, for those having >>> issues (e.g., in 10.11). >> Can you tell me more about this problem? > > Hi Ryan - Sure. gr-fosphor uses a local/custom CMake script for finding > freetype2. When finding headers, it tries to be clever about where one > might be located by finding the version of freetype & then specifying > the header directory based on the version -- freetype/config/ftheader.h > versus config/ftheader.h. CMake already provides a robust mechanism for > doing this, by specifying various prefixes that might work. So, my patch > uses the actual found freetype2 header install directory as a starting > path hint, then looks for the header "config/ftheader.h" using an > optional prefix of "freetype". In this manner, CMake does all the work & > the find script is much simplified. > > It is possible that there is already a FindFreetype2.cmake installed; I > didn't look. I know a lot of developers who prefer to either write their > own find* scripts, or copy from the original and tweak for their own > special sauce. In this manner they control the finding, not relying on > some possibly-changing script to do the work for them. It's not always > wise to use someone else's script, nor is it always wise to create your > own; each is case dependent. In this case, I know the developer & know > that he'd prefer to keep the find* in his project. Thus the need for > this patch. I'll also push the patch upstream. > > Hope this is what you were looking for. - MLD
I was just trying to understand if there was a 10.11-specific problem relating to freetype2 generally. I have just realized that freetype 2.6.1 moved the header locations again (after they had previously been moved in 2.5.1). _______________________________________________ macports-dev mailing list macports-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-dev