• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/kodi-visualisation-shadertoy/0001-FindOpenGLES2-also-search-for-egl-with-pkg-config.patch
Bernd KuhlsBernd Kuhls committed 7e8b876a33721 Feb 2016
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 9c428c3c9f120a11468f98546bcc754d2c3302af Mon Sep 17 00:00:00 2001
2
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3
Date: Thu, 30 Jul 2015 10:02:15 +0200
4
Subject: [PATCH] FindOpenGLES2: also search for egl with pkg-config
5
​
6
The non-pkg-config path looks for both EGL *and* OpenGL ES, but not
7
the pkg-config path, which might lead to missing libraries/headers if
8
egl.pc has more header paths or libraries than glesv2.pc.
9
​
10
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11
---
12
 CMakeLists.txt      | 2 +-
13
 FindOpenGLES2.cmake | 2 +-
14
 2 files changed, 2 insertions(+), 2 deletions(-)
15
​
16
diff --git a/CMakeLists.txt b/CMakeLists.txt
17
index 8b084cf..81bbe27 100644
18
--- a/CMakeLists.txt
19
+++ b/CMakeLists.txt
20
@@ -35,7 +35,7 @@
21
     endif()
22
   endif()
23
 
24
-  include_directories(${OpenGL_INCLUDE_DIR}
25
+  include_directories(${OpenGL_INCLUDE_DIR} ${OpenGLES2_INCLUDE_DIRS}
26
                       ${GLEW_INCLUDE_DIR}
27
                       ${KODI_INCLUDE_DIR}
28
                       ${platform_INCLUDE_DIRS}
29
diff --git a/FindOpenGLES2.cmake b/FindOpenGLES2.cmake
30
index e1b7d21..2a9ce0d 100644
31
--- a/FindOpenGLES2.cmake
32
+++ b/FindOpenGLES2.cmake
33
@@ -7,7 +7,7 @@
34
 
35
 find_package(PkgConfig)
36
 if(PKG_CONFIG_FOUND)
37
-  pkg_check_modules(OpenGLES2 glesv2)
38
+  pkg_check_modules(OpenGLES2 glesv2 egl)
39
 endif(PKG_CONFIG_FOUND)
40
 
41
 if(NOT OPENGLES2_FOUND)
42
-- 
43
2.5.0
44
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.