summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>2026-06-08 14:12:01 +0300
committerKhem Raj <khem.raj@oss.qualcomm.com>2026-06-08 23:16:32 -0700
commitf7735c92047224a327fcca6bb74881038945bfec (patch)
tree545d6dd84e2678e334652e032bcee44a2d33be7c /meta-oe
parentbafc3361bb85ea8aa4b3f4c8f194a9931e94948a (diff)
downloadmeta-openembedded-f7735c92047224a327fcca6bb74881038945bfec.tar.gz
freeglut: split normal and gles packages
The freeglut and freeglut-gles libraries are not really compatible, they have different SOnames, different ABI, etc. Some tools (e.g. OpenCL CTS) expect the classical FreeGLUT rather than a GL ES version. Restore original freeglut recipe and add freeglut-gles for the software that needs it. Fixes: 0b0cbd4c3ce1 ("freeglut: version 3.4.0 -> 3.8.0") Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-graphics/freeglut/files/0001-Add-support-for-legacy-OpenGL.patch (renamed from meta-oe/recipes-graphics/freeglut/freeglut/0001-Add-support-for-legacy-OpenGL.patch)0
-rw-r--r--meta-oe/recipes-graphics/freeglut/freeglut-gles_3.8.0.bb5
-rw-r--r--meta-oe/recipes-graphics/freeglut/freeglut_3.8.0.bb5
3 files changed, 7 insertions, 3 deletions
diff --git a/meta-oe/recipes-graphics/freeglut/freeglut/0001-Add-support-for-legacy-OpenGL.patch b/meta-oe/recipes-graphics/freeglut/files/0001-Add-support-for-legacy-OpenGL.patch
index b7dc2a58aa..b7dc2a58aa 100644
--- a/meta-oe/recipes-graphics/freeglut/freeglut/0001-Add-support-for-legacy-OpenGL.patch
+++ b/meta-oe/recipes-graphics/freeglut/files/0001-Add-support-for-legacy-OpenGL.patch
diff --git a/meta-oe/recipes-graphics/freeglut/freeglut-gles_3.8.0.bb b/meta-oe/recipes-graphics/freeglut/freeglut-gles_3.8.0.bb
new file mode 100644
index 0000000000..3101bfe63b
--- /dev/null
+++ b/meta-oe/recipes-graphics/freeglut/freeglut-gles_3.8.0.bb
@@ -0,0 +1,5 @@
1require freeglut_${PV}.bb
2
3PACKAGECONFIG:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles', '', d)}"
4
5S = "${UNPACKDIR}/freeglut-${PV}"
diff --git a/meta-oe/recipes-graphics/freeglut/freeglut_3.8.0.bb b/meta-oe/recipes-graphics/freeglut/freeglut_3.8.0.bb
index 5c6ab1a1d7..a00519f0d7 100644
--- a/meta-oe/recipes-graphics/freeglut/freeglut_3.8.0.bb
+++ b/meta-oe/recipes-graphics/freeglut/freeglut_3.8.0.bb
@@ -5,7 +5,7 @@ LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://COPYING;md5=89c0b58a3e01ce3d8254c9f59e78adfb" 5LIC_FILES_CHKSUM = "file://COPYING;md5=89c0b58a3e01ce3d8254c9f59e78adfb"
6 6
7SRC_URI = "\ 7SRC_URI = "\
8 https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BPN}-${PV}.tar.gz \ 8 https://github.com/freeglut/freeglut/releases/download/v${PV}/freeglut-${PV}.tar.gz \
9 file://0001-Add-support-for-legacy-OpenGL.patch \ 9 file://0001-Add-support-for-legacy-OpenGL.patch \
10 " 10 "
11SRC_URI[sha256sum] = "674dcaff25010e09e450aec458b8870d9e98c46f99538db457ab659b321d9989" 11SRC_URI[sha256sum] = "674dcaff25010e09e450aec458b8870d9e98c46f99538db457ab659b321d9989"
@@ -15,8 +15,7 @@ inherit cmake features_check pkgconfig
15# depends on virtual/libgl and libxi 15# depends on virtual/libgl and libxi
16REQUIRED_DISTRO_FEATURES = "opengl x11" 16REQUIRED_DISTRO_FEATURES = "opengl x11"
17 17
18PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11 glvnd', d)} \ 18PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11 glvnd', d)}"
19 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles', '', d)}"
20PACKAGECONFIG[glvnd] = "-DOpenGL_GL_PREFERENCE=GLVND,-DOpenGL_GL_PREFERENCE=LEGACY, libglvnd" 19PACKAGECONFIG[glvnd] = "-DOpenGL_GL_PREFERENCE=GLVND,-DOpenGL_GL_PREFERENCE=LEGACY, libglvnd"
21PACKAGECONFIG[gles] = "-DFREEGLUT_GLES=ON,-DFREEGLUT_GLES=OFF," 20PACKAGECONFIG[gles] = "-DFREEGLUT_GLES=ON,-DFREEGLUT_GLES=OFF,"
22PACKAGECONFIG[wayland] = "-DFREEGLUT_WAYLAND=ON,-DFREEGLUT_WAYLAND=OFF,libxkbcommon" 21PACKAGECONFIG[wayland] = "-DFREEGLUT_WAYLAND=ON,-DFREEGLUT_WAYLAND=OFF,libxkbcommon"