diff options
author | Wang Mingyu <wangmy@cn.fujitsu.com> | 2020-03-19 00:41:44 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-03-21 22:39:01 +0000 |
commit | 10121e7a3c3d1f77586766be575a53cbe836b98c (patch) | |
tree | 89759e3277963e51379bbfee02d38ff767ab935c /meta/recipes-graphics/glew/glew_2.2.0.bb | |
parent | 3e3b66ca1d4602fc79e1d1c3065994b1c082bcce (diff) | |
download | poky-10121e7a3c3d1f77586766be575a53cbe836b98c.tar.gz |
glew: upgrade 2.1.0 -> 2.2.0
0001-Fixed-compilation-with-current-mesa-versions.patch
removed since it is included in 2.2.0
(From OE-Core rev: 39e59246cb8e3b5b65ad10935e08078f5053e350)
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/glew/glew_2.2.0.bb')
-rw-r--r-- | meta/recipes-graphics/glew/glew_2.2.0.bb | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-graphics/glew/glew_2.2.0.bb b/meta/recipes-graphics/glew/glew_2.2.0.bb new file mode 100644 index 0000000000..8948444e08 --- /dev/null +++ b/meta/recipes-graphics/glew/glew_2.2.0.bb | |||
@@ -0,0 +1,44 @@ | |||
1 | SUMMARY = "OpenGL 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/" | ||
4 | BUGTRACKER = "http://sourceforge.net/tracker/?group_id=67586" | ||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2ac251558de685c6b9478d89be3149c2" | ||
7 | |||
8 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/glew/glew/${PV}/glew-${PV}.tgz \ | ||
9 | file://no-strip.patch" | ||
10 | |||
11 | SRC_URI[md5sum] = "3579164bccaef09e36c0af7f4fd5c7c7" | ||
12 | SRC_URI[sha256sum] = "d4fc82893cfb00109578d0a1a2337fb8ca335b3ceccf97b97e5cc7f08e4353e1" | ||
13 | |||
14 | UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/glew/files/glew" | ||
15 | UPSTREAM_CHECK_REGEX = "/glew/(?P<pver>(\d+[\.\-_]*)+)/" | ||
16 | |||
17 | inherit lib_package pkgconfig features_check | ||
18 | |||
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,,,egl-gles2" | ||
25 | PACKAGECONFIG[egl-gles2] = "SYSTEM='linux-egl' GLEW_NO_GLU='-DGLEW_NO_GLU' LDFLAGS.GL='-lEGL -lGLESv2',,virtual/egl virtual/libgles2,,,opengl" | ||
26 | |||
27 | CFLAGS += "-D_GNU_SOURCE" | ||
28 | # Override SYSTEM (via PACKAGECONFIG_CONFARGS) to avoid calling config.guess, | ||
29 | # we're cross-compiling. Pass our CFLAGS via POPT as that's the optimisation | ||
30 | # variable and safely overwritten. | ||
31 | EXTRA_OEMAKE = "${PACKAGECONFIG_CONFARGS} \ | ||
32 | CC='${CC}' LD='${CC}' STRIP='' \ | ||
33 | LDFLAGS.EXTRA='${LDFLAGS}' \ | ||
34 | POPT='${CFLAGS}' \ | ||
35 | GLEW_PREFIX='${prefix}' BINDIR='${bindir}' \ | ||
36 | LIBDIR='${libdir}' INCDIR='${includedir}/GL' PKGDIR='${libdir}/pkgconfig'" | ||
37 | |||
38 | do_compile() { | ||
39 | oe_runmake | ||
40 | } | ||
41 | |||
42 | do_install() { | ||
43 | oe_runmake 'DESTDIR=${D}' install.all | ||
44 | } | ||