diff options
author | Andre McCurdy <armccurdy@gmail.com> | 2016-12-20 04:12:27 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-22 08:50:17 +0000 |
commit | 4f89e47d359ea3ed5e4c8bc433c047763fbf47f7 (patch) | |
tree | 903c8c4391e1d2a4564eacdd6aed8b67231f29ce /meta/recipes-graphics | |
parent | dd37336b4dedf63d5c4daf7fd4d507091b7a7256 (diff) | |
download | poky-4f89e47d359ea3ed5e4c8bc433c047763fbf47f7.tar.gz |
glew: build for EGL in non-X11 distros
The glew 2.0.0 release added support for building for EGL:
http://glew.sourceforge.net/log.html
Add PACKAGECONFIG options for 'opengl' (ie the previous default, with
dependencies on opengl and X11) and 'egl-gles2', which depends on EGL
and GLESv2 and allow glew to be built for non-X11 distros.
(From OE-Core rev: f6344f20e3aed640b3218438e69c0b641e58d630)
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/glew/glew_2.0.0.bb | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/meta/recipes-graphics/glew/glew_2.0.0.bb b/meta/recipes-graphics/glew/glew_2.0.0.bb index 489dd7c8f7..1c93ca07b6 100644 --- a/meta/recipes-graphics/glew/glew_2.0.0.bb +++ b/meta/recipes-graphics/glew/glew_2.0.0.bb | |||
@@ -2,12 +2,9 @@ SUMMARY = "OpenGL extension loading library" | |||
2 | DESCRIPTION = "The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library." | 2 | DESCRIPTION = "The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library." |
3 | HOMEPAGE = "http://glew.sourceforge.net/" | 3 | HOMEPAGE = "http://glew.sourceforge.net/" |
4 | BUGTRACKER = "http://sourceforge.net/tracker/?group_id=67586" | 4 | BUGTRACKER = "http://sourceforge.net/tracker/?group_id=67586" |
5 | SECTION = "x11" | ||
6 | LICENSE = "MIT" | 5 | LICENSE = "MIT" |
7 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2ac251558de685c6b9478d89be3149c2" | 6 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2ac251558de685c6b9478d89be3149c2" |
8 | 7 | ||
9 | DEPENDS = "virtual/libx11 virtual/libgl libglu libxext libxi libxmu" | ||
10 | |||
11 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/glew/glew/${PV}/glew-${PV}.tgz \ | 8 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/glew/glew/${PV}/glew-${PV}.tgz \ |
12 | file://no-strip.patch" | 9 | file://no-strip.patch" |
13 | 10 | ||
@@ -19,12 +16,18 @@ UPSTREAM_CHECK_REGEX = "/glew/(?P<pver>(\d+[\.\-_]*)+)/" | |||
19 | 16 | ||
20 | inherit lib_package pkgconfig distro_features_check | 17 | inherit lib_package pkgconfig distro_features_check |
21 | 18 | ||
22 | REQUIRED_DISTRO_FEATURES = "x11" | 19 | REQUIRED_DISTRO_FEATURES = "opengl" |
20 | |||
21 | PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'opengl', 'egl-gles2', d)}" | ||
22 | |||
23 | # The opengl and egl-XXX options are exclusive, enable only one. | ||
24 | PACKAGECONFIG[opengl] = "SYSTEM='linux',,virtual/libx11 virtual/libgl libglu libxext libxi libxmu" | ||
25 | PACKAGECONFIG[egl-gles2] = "SYSTEM='linux-egl' GLEW_NO_GLU='-DGLEW_NO_GLU' LDFLAGS.GL='-lEGL -lGLESv2',,virtual/egl virtual/libgles2" | ||
23 | 26 | ||
24 | # Override SYSTEM to avoid calling config.guess, we're cross-compiling. Pass | 27 | # Override SYSTEM (via PACKAGECONFIG_CONFARGS) to avoid calling config.guess, |
25 | # our CFLAGS via POPT as that's the optimisation variable and safely | 28 | # we're cross-compiling. Pass our CFLAGS via POPT as that's the optimisation |
26 | # overwritten. | 29 | # variable and safely overwritten. |
27 | EXTRA_OEMAKE = "SYSTEM='linux' \ | 30 | EXTRA_OEMAKE = "${PACKAGECONFIG_CONFARGS} \ |
28 | CC='${CC}' LD='${CC}' STRIP='' \ | 31 | CC='${CC}' LD='${CC}' STRIP='' \ |
29 | LDFLAGS.EXTRA='${LDFLAGS}' \ | 32 | LDFLAGS.EXTRA='${LDFLAGS}' \ |
30 | POPT='${CFLAGS}' \ | 33 | POPT='${CFLAGS}' \ |