Summary: | dev-games/cegui - .../work/cegui-0.8.3/cegui/include/CEGUI/FreeTypeFont.h:37:22: fatal error: ft2build.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Philipp <carlphilippreh> |
Component: | [OLD] Games | Assignee: | Gentoo Games <games> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | PATCH |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | http://cegui.org.uk/mantis/view.php?id=1007 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Patch to use cmake's FindFreetype
Ebuild patch |
Created attachment 376076 [details, diff]
Ebuild patch
# @ECLASS-VARIABLE: CMAKE_REMOVE_MODULES_LIST # @DESCRIPTION: # Space-separated list of CMake modules that will be removed in $S during src_prepare, # in order to force packages to use the system version. CMAKE_REMOVE_MODULES_LIST="${CMAKE_REMOVE_MODULES_LIST:-FindBLAS FindLAPACK}" (In reply to Julian Ospald (hasufell) from comment #2) > # @ECLASS-VARIABLE: CMAKE_REMOVE_MODULES_LIST > # @DESCRIPTION: > # Space-separated list of CMake modules that will be removed in $S during > src_prepare, > # in order to force packages to use the system version. > CMAKE_REMOVE_MODULES_LIST="${CMAKE_REMOVE_MODULES_LIST:-FindBLAS FindLAPACK}" Thanks, I didn't know about that. Problem is, the patch is not upstreamable this way since gentoo hacks FindFreetype.cmake (for good reason). + 09 May 2014; Julian Ospald <hasufell@gentoo.org> cegui-0.8.3.ebuild, + +files/cegui-0.8.3-freetype.patch: + fix build with >=freetype-2.5.1 wrt #509180 |
Created attachment 376074 [details, diff] Patch to use cmake's FindFreetype CEGUI ships and uses its own version of FindFreetype.cmake which results in /var/tmp/paludis/dev-games-cegui-0.8.3/work/cegui-0.8.3/cegui/include/CEGUI/FreeTypeFont.h:37:22: fatal error: ft2build.h: No such file or directory To fix this, I remove cmake/FindFreetype.cmake in src_prepare and also apply a patch that sets FREETYPE_INCLUDE_DIR. The reason for the latter is that cegui_add_dependency(... FREETYPE) expects this to be set while cmake's own FindFreetype.cmake uses FREETYPE_INCLUDE_DIRS (note the plural) instead.