hyprpaper: update

This commit is contained in:
Markus Volk 2025-06-13 19:13:07 +02:00
parent 4cfc159f7b
commit 3720e08314
2 changed files with 38 additions and 2 deletions

View File

@ -0,0 +1,33 @@
From 42d3806947e68ffe864a0c37210310c1e3457a8c Mon Sep 17 00:00:00 2001
From: Markus Volk <f_l_k@t-online.de>
Date: Fri, 13 Jun 2025 19:04:22 +0200
Subject: [PATCH] CMakeLists.txt: use find_program for OpenGL
Signed-off-by: Markus Volk <f_l_k@t-online.de>
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

View File

@ -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}"