summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Davis Jr <vince@underview.tech>2022-10-24 01:22:28 -0500
committerKhem Raj <raj.khem@gmail.com>2022-10-24 09:56:33 -0700
commit09dc7c7806771d5d9d5d0ffd095c834913c92b2f (patch)
treeeaefdd36dd7d2224fe6577c46db93464e821e8c3
parent6a0ea55c1aa00ad95513855c384d097412ac6143 (diff)
downloadmeta-openembedded-09dc7c7806771d5d9d5d0ffd095c834913c92b2f.tar.gz
libglvnd: add new recipe libglvnd v1.5.0
This recipe is meant to be an optional dependency of mesa. This recipe will allow for glvnd support in mesa. Thus, giving access to the GLX window-system API library and related libraries, mesa will build libGLX_mesa.so.*.* and libEGL_mesa.so.*.* or whatever specified in -Dglvnd-vendor-name. There may be applications that require direct access to the GLX window-system API library in order to build/execute. This will allow for multiple layers to have generic support for libraries in libglvnd (GLX window-system API library, etc...) without needing to implement their own version of the libglvnd recipe. Signed-off-by: Vincent Davis Jr <vince@underview.tech> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-graphics/libglvnd/libglvnd_1.5.0.bb30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/libglvnd/libglvnd_1.5.0.bb b/meta-oe/recipes-graphics/libglvnd/libglvnd_1.5.0.bb
new file mode 100644
index 0000000000..b92bad46e0
--- /dev/null
+++ b/meta-oe/recipes-graphics/libglvnd/libglvnd_1.5.0.bb
@@ -0,0 +1,30 @@
1DESCRIPTION = "libglvnd is a vendor-neutral dispatch layer for arbitrating \
2OpenGL API calls between multiple vendors."
3HOMEPAGE = "https://gitlab.freedesktop.org/glvnd/libglvnd"
4LICENSE = "MIT & BSD-1-Clause & BSD-3-Clause & GPL-3.0-with-autoconf-exception"
5LIC_FILES_CHKSUM = "file://README.md;beginline=323;md5=7ac5f0111f648b92fe5427efeb08e8c4"
6
7SRC_URI = "git://git@gitlab.freedesktop.org/glvnd/libglvnd.git;protocol=https;branch=master"
8
9# v1.5.0 tag
10SRCREV = "c7cdf0cc4395b57563294d1f340b6bb1b95366a0"
11
12REQUIRED_DISTRO_FEATURES = "opengl"
13
14inherit meson pkgconfig features_check
15
16S = "${WORKDIR}/git"
17
18PACKAGECONFIG ?= "\
19 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
20 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'egl gles1 gles2', '', d)} \
21 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'glx', '', d)} \
22 "
23
24PACKAGECONFIG[x11] = "-Dx11=enabled,-Dx11=disabled,libx11 libxext xorgproto"
25PACKAGECONFIG[glx] = "-Dglx=enabled,-Dglx=disabled,libx11 libxext xorgproto"
26PACKAGECONFIG[egl] = "-Degl=true,-Degl=false,"
27PACKAGECONFIG[gles1] = "-Dgles1=true,-Dgles1=false,"
28PACKAGECONFIG[gles2] = "-Dgles2=true,-Dgles2=false,"
29
30BBCLASSEXTEND = "native nativesdk"