summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-graphics/glew/glew_2.0.0.bb19
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"
2DESCRIPTION = "The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library." 2DESCRIPTION = "The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library."
3HOMEPAGE = "http://glew.sourceforge.net/" 3HOMEPAGE = "http://glew.sourceforge.net/"
4BUGTRACKER = "http://sourceforge.net/tracker/?group_id=67586" 4BUGTRACKER = "http://sourceforge.net/tracker/?group_id=67586"
5SECTION = "x11"
6LICENSE = "MIT" 5LICENSE = "MIT"
7LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2ac251558de685c6b9478d89be3149c2" 6LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2ac251558de685c6b9478d89be3149c2"
8 7
9DEPENDS = "virtual/libx11 virtual/libgl libglu libxext libxi libxmu"
10
11SRC_URI = "${SOURCEFORGE_MIRROR}/project/glew/glew/${PV}/glew-${PV}.tgz \ 8SRC_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
20inherit lib_package pkgconfig distro_features_check 17inherit lib_package pkgconfig distro_features_check
21 18
22REQUIRED_DISTRO_FEATURES = "x11" 19REQUIRED_DISTRO_FEATURES = "opengl"
20
21PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'opengl', 'egl-gles2', d)}"
22
23# The opengl and egl-XXX options are exclusive, enable only one.
24PACKAGECONFIG[opengl] = "SYSTEM='linux',,virtual/libx11 virtual/libgl libglu libxext libxi libxmu"
25PACKAGECONFIG[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.
27EXTRA_OEMAKE = "SYSTEM='linux' \ 30EXTRA_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}' \