hasufell    14/05/09 20:12:09

  Added:                cegui-0.8.3-freetype.patch
  Log:
  fix build with >=freetype-2.5.1 wrt #509180
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
BDEED020)

Revision  Changes    Path
1.1                  dev-games/cegui/files/cegui-0.8.3-freetype.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-games/cegui/files/cegui-0.8.3-freetype.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-games/cegui/files/cegui-0.8.3-freetype.patch?rev=1.1&content-type=text/plain

Index: cegui-0.8.3-freetype.patch
===================================================================
From: Julian Ospald <hasuf...@gentoo.org>
Date: Fri May  9 19:56:34 UTC 2014
Subject: fix build with >=freetype-2.5.1

--- cegui/cmake/FindFreetype.cmake
+++ cegui/cmake/FindFreetype.cmake
@@ -3,8 +3,12 @@
 
################################################################################
 include(FindPackageHandleStandardArgs)
 
-find_path(FREETYPE_H_PATH_ft2build NAMES ft2build.h)
+find_path(FREETYPE_H_PATH_ft2build NAMES ft2build.h PATH_SUFFIXES 
include/freetype2 include)
 find_path(FREETYPE_H_PATH_ftconfig NAMES freetype/config/ftconfig.h 
PATH_SUFFIXES freetype2)
+if(NOT FREETYPE_H_PATH_ftconfig)
+       find_path(FREETYPE_H_PATH_ftconfig NAMES config/ftconfig.h 
PATH_SUFFIXES include/freetype2 include)
+endif()
+
 find_library(FREETYPE_LIB NAMES freetype2 freetype libfreetype PATH_SUFFIXES 
dynamic)
 find_library(FREETYPE_LIB_DBG NAMES freetype_d libfreetype_d PATH_SUFFIXES 
dynamic)
 mark_as_advanced(FREETYPE_H_PATH_ft2build FREETYPE_H_PATH_ftconfig 
FREETYPE_LIB FREETYPE_LIB_DBG)




Reply via email to