Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] cmake: Fix freetype detection
Date: Tue, 21 Jan 2014 14:02:43 +0100	[thread overview]
Message-ID: <20140121130243.GD4100@jama> (raw)
In-Reply-To: <1389547991-3456-1-git-send-email-Martin.Jansa@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3287 bytes --]

On Sun, Jan 12, 2014 at 06:33:11PM +0100, Martin Jansa wrote:
> * since last freetype upgrade cmake cannot detect it
> * e.g. webkit-efl requires freetype and is failing because of this

ping

+ Ross as he is working on cmake as well as freetype

> 
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
>  meta/recipes-devtools/cmake/cmake.inc              |  1 +
>  .../cmake/cmake/cmake-2.8.11.2-FindFreetype.patch  | 47 ++++++++++++++++++++++
>  2 files changed, 48 insertions(+)
>  create mode 100644 meta/recipes-devtools/cmake/cmake/cmake-2.8.11.2-FindFreetype.patch
> 
> diff --git a/meta/recipes-devtools/cmake/cmake.inc b/meta/recipes-devtools/cmake/cmake.inc
> index 69f4fe2..f76f68b 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
>             file://aarch64-cmake.patch \
>             file://aarch64-kwsys.patch \
>             file://qt4-fail-silent.patch \
> +           file://cmake-2.8.11.2-FindFreetype.patch \
>             "
>  
>  inherit 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 0000000..1b523c0
> --- /dev/null
> +++ b/meta/recipes-devtools/cmake/cmake/cmake-2.8.11.2-FindFreetype.patch
> @@ -0,0 +1,47 @@
> +From: Julian Ospald <hasufell@gentoo.org>
> +Date: Sun Dec  8 13:38:06 UTC 2013
> +Subject: fix check for freetype-2.5.1
> +
> +Upstream-Status: Submitted http://www.cmake.org/Bug/view.php?id=14601
> +
> +Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> +
> +--- old/Modules/FindFreetype.cmake
> ++++ new/Modules/FindFreetype.cmake
> +@@ -64,6 +64,19 @@
> +   PATH_SUFFIXES include/freetype2 include
> + )
> + 
> ++if(NOT FREETYPE_INCLUDE_DIR_freetype2)
> ++  find_path(FREETYPE_INCLUDE_DIR_freetype2 config/ftheader.h
> ++    HINTS
> ++      ENV FREETYPE_DIR
> ++    PATHS
> ++      /usr/X11R6
> ++      /usr/local/X11R6
> ++      /usr/local/X11
> ++      /usr/freeware
> ++    PATH_SUFFIXES include/freetype2 include
> ++  )
> ++endif()
> ++
> + find_library(FREETYPE_LIBRARY
> +   NAMES freetype libfreetype freetype219
> +   HINTS
> +@@ -82,8 +95,14 @@
> + endif()
> + set(FREETYPE_LIBRARIES "${FREETYPE_LIBRARY}")
> + 
> +-if(FREETYPE_INCLUDE_DIR_freetype2 AND EXISTS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h")
> +-    file(STRINGS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h" freetype_version_str
> ++if(EXISTS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h")
> ++  set(FREETYPE_H "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h")
> ++elseif(EXISTS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype.h")
> ++  set(FREETYPE_H "${FREETYPE_INCLUDE_DIR_freetype2}/freetype.h")
> ++endif()
> ++
> ++if(FREETYPE_INCLUDE_DIR_freetype2 AND FREETYPE_H)
> ++    file(STRINGS "${FREETYPE_H}" freetype_version_str
> +          REGEX "^#[\t ]*define[\t ]+FREETYPE_(MAJOR|MINOR|PATCH)[\t ]+[0-9]+$")
> + 
> +     unset(FREETYPE_VERSION_STRING)
> -- 
> 1.8.5.2
> 

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

  reply	other threads:[~2014-01-21 13:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-12 17:33 [PATCH] cmake: Fix freetype detection Martin Jansa
2014-01-21 13:02 ` Martin Jansa [this message]
2014-01-21 16:12   ` Burton, Ross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140121130243.GD4100@jama \
    --to=martin.jansa@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox