summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2014-01-12 18:33:11 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-28 00:52:32 +0000
commit56236e74f0fe275c1e3e7b59f44ca55cba1d4e3b (patch)
tree8afdee9e7bffea749bbd78247a3ba9b9bb90e348 /meta
parentf805cff5fc7652a531543ec96f2ca9d03d7738a2 (diff)
downloadpoky-56236e74f0fe275c1e3e7b59f44ca55cba1d4e3b.tar.gz
cmake: Fix freetype detection
* since last freetype upgrade cmake cannot detect it * e.g. webkit-efl requires freetype and is failing because of this (From OE-Core rev: 0cd58eb1ca29bdc53f623aba1f761b97cfe31fb4) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/cmake/cmake.inc1
-rw-r--r--meta/recipes-devtools/cmake/cmake/cmake-2.8.11.2-FindFreetype.patch47
2 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-devtools/cmake/cmake.inc b/meta/recipes-devtools/cmake/cmake.inc
index 69f4fe29b1..f76f68bbcb 100644
--- a/meta/recipes-devtools/cmake/cmake.inc
+++ b/meta/recipes-devtools/cmake/cmake.inc
@@ -16,6 +16,7 @@ SRC_URI = "http://www.cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz
16 file://aarch64-cmake.patch \ 16 file://aarch64-cmake.patch \
17 file://aarch64-kwsys.patch \ 17 file://aarch64-kwsys.patch \
18 file://qt4-fail-silent.patch \ 18 file://qt4-fail-silent.patch \
19 file://cmake-2.8.11.2-FindFreetype.patch \
19 " 20 "
20 21
21inherit autotools 22inherit autotools
diff --git a/meta/recipes-devtools/cmake/cmake/cmake-2.8.11.2-FindFreetype.patch b/meta/recipes-devtools/cmake/cmake/cmake-2.8.11.2-FindFreetype.patch
new file mode 100644
index 0000000000..1b523c057b
--- /dev/null
+++ b/meta/recipes-devtools/cmake/cmake/cmake-2.8.11.2-FindFreetype.patch
@@ -0,0 +1,47 @@
1From: Julian Ospald <hasufell@gentoo.org>
2Date: Sun Dec 8 13:38:06 UTC 2013
3Subject: fix check for freetype-2.5.1
4
5Upstream-Status: Submitted http://www.cmake.org/Bug/view.php?id=14601
6
7Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
8
9--- old/Modules/FindFreetype.cmake
10+++ new/Modules/FindFreetype.cmake
11@@ -64,6 +64,19 @@
12 PATH_SUFFIXES include/freetype2 include
13 )
14
15+if(NOT FREETYPE_INCLUDE_DIR_freetype2)
16+ find_path(FREETYPE_INCLUDE_DIR_freetype2 config/ftheader.h
17+ HINTS
18+ ENV FREETYPE_DIR
19+ PATHS
20+ /usr/X11R6
21+ /usr/local/X11R6
22+ /usr/local/X11
23+ /usr/freeware
24+ PATH_SUFFIXES include/freetype2 include
25+ )
26+endif()
27+
28 find_library(FREETYPE_LIBRARY
29 NAMES freetype libfreetype freetype219
30 HINTS
31@@ -82,8 +95,14 @@
32 endif()
33 set(FREETYPE_LIBRARIES "${FREETYPE_LIBRARY}")
34
35-if(FREETYPE_INCLUDE_DIR_freetype2 AND EXISTS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h")
36- file(STRINGS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h" freetype_version_str
37+if(EXISTS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h")
38+ set(FREETYPE_H "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h")
39+elseif(EXISTS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype.h")
40+ set(FREETYPE_H "${FREETYPE_INCLUDE_DIR_freetype2}/freetype.h")
41+endif()
42+
43+if(FREETYPE_INCLUDE_DIR_freetype2 AND FREETYPE_H)
44+ file(STRINGS "${FREETYPE_H}" freetype_version_str
45 REGEX "^#[\t ]*define[\t ]+FREETYPE_(MAJOR|MINOR|PATCH)[\t ]+[0-9]+$")
46
47 unset(FREETYPE_VERSION_STRING)