diff --git a/recipes-support/hyprland/hyprpaper/hyprpaper/0001-CMakeLists.txt-use-find_program-for-OpenGL.patch b/recipes-support/hyprland/hyprpaper/hyprpaper/0001-CMakeLists.txt-use-find_program-for-OpenGL.patch new file mode 100644 index 0000000..8bd8c53 --- /dev/null +++ b/recipes-support/hyprland/hyprpaper/hyprpaper/0001-CMakeLists.txt-use-find_program-for-OpenGL.patch @@ -0,0 +1,33 @@ +From 42d3806947e68ffe864a0c37210310c1e3457a8c Mon Sep 17 00:00:00 2001 +From: Markus Volk +Date: Fri, 13 Jun 2025 19:04:22 +0200 +Subject: [PATCH] CMakeLists.txt: use find_program for OpenGL + +Signed-off-by: Markus Volk + +Upstream-Status: Pending +--- + CMakeLists.txt | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4738a81..ffe2a86 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -122,10 +122,11 @@ include(CPack) + + target_link_libraries(hyprpaper PkgConfig::deps) + ++find_package(OpenGL REQUIRED COMPONENTS EGL GLES2) ++ + target_link_libraries( + hyprpaper +- OpenGL +- GLESv2 ++ OpenGL::EGL OpenGL::GLES2 + pthread + magic + ${CMAKE_THREAD_LIBS_INIT} +-- +2.49.0 + diff --git a/recipes-support/hyprland/hyprpaper/hyprpaper_git.bb b/recipes-support/hyprland/hyprpaper/hyprpaper_git.bb index 93b1e75..2c29606 100644 --- a/recipes-support/hyprland/hyprpaper/hyprpaper_git.bb +++ b/recipes-support/hyprland/hyprpaper/hyprpaper_git.bb @@ -4,9 +4,10 @@ LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=936078e4e67b0e1e1bd1e862d4ffbc25" SRC_URI = "git://github.com/hyprwm/hyprpaper.git;protocol=https;branch=main" +SRC_URI += "file://0001-CMakeLists.txt-use-find_program-for-OpenGL.patch" PV = "0.7.5" -SRCREV = "753ffa7fe9b6211609c263e38e09ae663a762b56" +SRCREV = "81dc1fe4f05305319bb586a0eb6f6004a1476832" S = "${WORKDIR}/git" DEPENDS += " \ @@ -16,7 +17,8 @@ DEPENDS += " \ hyprutils \ hyprgraphics \ hyprwayland-scanner-native \ - libglvnd \ + virtual/egl \ + virtual/libgles2 \ pango \ wayland \ wayland-native \ @@ -30,3 +32,4 @@ REQUIRED_DISTRO_FEATURES = "wayland" inherit cmake pkgconfig features_check FILES:${PN} += "${systemd_user_unitdir}" +