How to properly find freetype with FindFreetype.cmake?
Mojca Miklavec
mojca at macports.org
Fri Nov 22 12:15:02 PST 2013
Hi,
one of the packages uses
find_package(Freetype)
and consequently ends up with
FREETYPE_INCLUDE_DIR_freetype2 /usr/X11R6/include/freetype2
FREETYPE_INCLUDE_DIR_ft2build /usr/X11R6/include
FREETYPE_LIBRARY /usr/X11R6/lib/libfreetype.dylib
The function find_package(Freetype) reads
/opt/local/share/cmake-2.8/Modules/FindFreetype.cmake
which has the X11R6 paths hardcoded.
What is the proper way to fix this? Patch CMake libraries? Specifying
all the variables "manually" in the Portfile?
(A slightly bigger problem are actually 61 other X11-related libraries
all ending up in /usr/X11R6, but I first need to figure out how these
are generated.)
Thank you,
Mojca
More information about the macports-dev
mailing list