Bug#732059: VTK_USE_SYSTEM_FREETYPE is ON, but FREETYPE_LIBRARY is NOTFOUND.

Julien Cristau jcristau at debian.org
Wed Dec 25 11:21:30 UTC 2013


On Mon, Dec 23, 2013 at 23:02:43 +0100, Roland Stigge wrote:

> Hi,
> 
> I'm attaching the patch that I used to fix the issue on powerpcspe.
> Applies to the other arches as well.
> 
> Roland

> Index: vtk-5.8.0/CMake/FindFREETYPE.cmake
> ===================================================================
> --- vtk-5.8.0.orig/CMake/FindFREETYPE.cmake	2013-12-23 11:38:25.000000000 +0100
> +++ vtk-5.8.0/CMake/FindFREETYPE.cmake	2013-12-23 12:27:47.208086774 +0100
> @@ -10,9 +10,11 @@
>  # also defined, but not for general use are
>  # FREETYPE_LIBRARY, where to find the FREETYPE library.
>  
> -FIND_PATH(FREETYPE_INCLUDE_DIR_FT2BUILD ft2build.h)
> +FIND_PATH(FREETYPE_INCLUDE_DIR_FT2BUILD ft2build.h
> +  /usr/include/freetype2
> +)
>  
> -FIND_PATH(FREETYPE_INCLUDE_DIR_FTHEADER freetype/config/ftheader.h
> +FIND_PATH(FREETYPE_INCLUDE_DIR_FTHEADER config/ftheader.h
>    /usr/include/freetype2
>    /usr/local/include/freetype2
>  )

That looks terrible.  Why can't vtk use the cmake-provided findfreetype?
Which is also terrible, but at least it's only terrible in one place...

Cheers,
Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20131225/ff73ccdb/attachment-0001.sig>


More information about the debian-science-maintainers mailing list