cmake and Freetype strangeness

Raphael Kubo da Costa kubito at gmail.com
Sun Feb 6 16:42:17 UTC 2011


Chris Rees <utisoft at gmail.com> writes:

> On 31 January 2011 18:06, Chris Rees <utisoft at gmail.com> wrote:
>> Hi all,
>>
>> I'm trying (still) to make a port for projectM.
>>
>> The one I've made works fine on my production system, but when I put
>> it on my test system which has no ports installed, it throws a
>> tantrum.
>>
>> I've added the depends:
>>
>> LIB_DEPENDS=    ftgl:${PORTSDIR}/graphics/ftgl \
>>                GLEW:${PORTSDIR}/graphics/glew \
>>                freetype:${PORTSDIR}/print/freetype2
>>
>> which should be enough, according to the cmake error, but it still happens!
>>
>> Why can't cmake find Freetype???
>>
>
>
> Found out, it was looking in /usr/X11R6 but not /usr/local. My test
> system is too new to have the X11R6 symlink, so failure.
>
> Patched!

Just as a sidenote (for the sake of the mailing list's posterity ;), it
should be clear that this is a problem with projectM shipping its own
version of FindFreetype2.cmake which uses find_library() and find_path()
with NO_DEFAULT_PATH. Any adjustments should not be necessary anymore in
case projectM drops its own FindFreetype.cmake in the future and starts
using CMake's FindFreetype.cmake :)



More information about the freebsd-ports mailing list