ueberzugpp: fix opengl build

This commit is contained in:
Markus Volk
2026-03-27 18:43:21 +01:00
parent a565b23298
commit 8b04b53656
2 changed files with 31 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
From 12da49047ae80ee075bfaca4069fd056801c1c6a Mon Sep 17 00:00:00 2001
From: Markus Volk <f_l_k@t-online.de>
Date: Fri, 27 Mar 2026 18:31:00 +0100
Subject: [PATCH] CMakeLists.txt: use only egl
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Upstream-Status: Inappropriate [oe-specific]
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4f0e54e..f9e7f5d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -109,7 +109,7 @@ if(ENABLE_OPENGL)
target_compile_definitions(ueberzug PRIVATE ENABLE_OPENGL)
find_package(OpenGL REQUIRED)
list(APPEND UEBERZUG_SOURCES "src/util/egl.cpp")
- list(APPEND UEBERZUG_LIBRARIES OpenGL::OpenGL OpenGL::EGL)
+ list(APPEND UEBERZUG_LIBRARIES GL EGL)
endif()
if(ENABLE_X11)
--
2.53.0

View File

@@ -6,13 +6,15 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=1ebbd3e34237af26da5dc08a4e440464"
inherit cmake pkgconfig inherit cmake pkgconfig
SRC_URI = "git://github.com/jstkdng/ueberzugpp.git;protocol=https;branch=master" SRC_URI = "git://github.com/jstkdng/ueberzugpp.git;protocol=https;branch=master"
SRC_URI += "file://0001-CMakeLists.txt-fix-gl-egl.patch"
SRCREV = "c1c76e34bac97403ed3f2f403fcf96b5cfd0b914" SRCREV = "c1c76e34bac97403ed3f2f403fcf96b5cfd0b914"
DEPENDS = "openssl cli11 fmt spdlog range-v3 libvips libsixel extra-cmake-modules chafa nlohmann-json" DEPENDS = "openssl cli11 fmt spdlog range-v3 libvips libsixel extra-cmake-modules chafa nlohmann-json"
PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11 dbus', d)} opencv" PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11 dbus opengl', d)} opencv"
PACKAGECONFIG[x11] = "-DENABLE_X11=ON -DENABLE_XCB_ERRORS=ON,-DENABLE_X11=OFF -DENABLE_XCB_ERRORS=OFF,libx11 libxcb xcb-util-image xcb-util-errors" PACKAGECONFIG[x11] = "-DENABLE_X11=ON -DENABLE_XCB_ERRORS=ON,-DENABLE_X11=OFF -DENABLE_XCB_ERRORS=OFF,libx11 libxcb xcb-util-image xcb-util-errors"
PACKAGECONFIG[wayland] = "-DENABLE_WAYLAND=ON,-DENABLE_WAYLAND=OFF,wayland wayland-native" PACKAGECONFIG[wayland] = "-DENABLE_WAYLAND=ON,-DENABLE_WAYLAND=OFF,wayland wayland-native"
PACKAGECONFIG[opengl] = "-DENABLE_OPENGL=ON,-DENABLE_OPENGL=OFF,virtual/egl virtual/libgl"
PACKAGECONFIG[opencv] = "-DENABLE_OPENCV=ON,-DENABLE_OPENCV=OFF,opencv" PACKAGECONFIG[opencv] = "-DENABLE_OPENCV=ON,-DENABLE_OPENCV=OFF,opencv"
PACKAGECONFIG[dbus] = "-DENABLE_DBUS=ON,-DENABLE_DBUS=OFF,dbus" PACKAGECONFIG[dbus] = "-DENABLE_DBUS=ON,-DENABLE_DBUS=OFF,dbus"