summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2025-09-04 16:02:17 +0800
committerKhem Raj <raj.khem@gmail.com>2025-09-04 10:50:39 -0700
commit44c9118e9dfa7fbca2df5593598e07c1da1d564c (patch)
treef9cc75f8c06561439333e60bcd0411fc34aa32c1
parent9d901cc76f46562525c4e9bc2f92d7a1a982157d (diff)
downloadmeta-openembedded-44c9118e9dfa7fbca2df5593598e07c1da1d564c.tar.gz
libsdl2-ttf: add PACKAGECONFIG opengl conditionally
GL is only used for an example binary, add PACKAGECONFIG opengl to enable/disable it according to 'opengl' in DISTRO_FEATURES or not. Otherwise it fails to build world if 'opengl' doesn't exist in DISTRO_FEATURES. ... |ERROR: Nothing PROVIDES 'virtual/egl' (but meta-openembedded/meta-oe/recipes-graphics/ libsdl/libsdl2-ttf_2.24.0.bb DEPENDS on or otherwise requires it). Close matches: | virtual/kernel | virtual/make | virtual/perf |ERROR: Required build target 'meta-world-pkgdata' has no buildable providers. |Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'libsdl2-ttf', 'virtual/egl'] ... Suggested-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.24.0.bb7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.24.0.bb b/meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.24.0.bb
index d06f41bd0e..eee22ba703 100644
--- a/meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.24.0.bb
+++ b/meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.24.0.bb
@@ -1,6 +1,6 @@
1SUMMARY = "Simple DirectMedia Layer truetype font library" 1SUMMARY = "Simple DirectMedia Layer truetype font library"
2SECTION = "libs" 2SECTION = "libs"
3DEPENDS = "virtual/libsdl2 freetype virtual/egl" 3DEPENDS = "virtual/libsdl2 freetype"
4LICENSE = "Zlib" 4LICENSE = "Zlib"
5LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=fbb0010b2f7cf6e8a13bcac1ef4d2455" 5LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=fbb0010b2f7cf6e8a13bcac1ef4d2455"
6 6
@@ -12,3 +12,8 @@ inherit cmake pkgconfig
12S = "${UNPACKDIR}/SDL2_ttf-${PV}" 12S = "${UNPACKDIR}/SDL2_ttf-${PV}"
13 13
14FILES:${PN} += "${datadir}/licenses" 14FILES:${PN} += "${datadir}/licenses"
15
16PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}"
17
18# GL is only used for an example binary
19PACKAGECONFIG[opengl] = "-DSDL2TTF_SAMPLES=ON,-DSDL2TTF_SAMPLES=OFF,virtual/egl"