From ed8d133d8a20c8de02afa2608aca25b155dccf48 Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Mon, 29 Sep 2025 18:25:47 +0200 Subject: [PATCH] hyprtoolkit: add recipe --- ...akeLists.txt-fix-linking-with-opengl.patch | 28 ++++++++++++++++++ .../hyprland/hyprtoolkit/hyprtoolkit_0.0.1.bb | 29 +++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 recipes-support/hyprland/hyprtoolkit/hyprtoolkit/0001-CMakeLists.txt-fix-linking-with-opengl.patch create mode 100644 recipes-support/hyprland/hyprtoolkit/hyprtoolkit_0.0.1.bb diff --git a/recipes-support/hyprland/hyprtoolkit/hyprtoolkit/0001-CMakeLists.txt-fix-linking-with-opengl.patch b/recipes-support/hyprland/hyprtoolkit/hyprtoolkit/0001-CMakeLists.txt-fix-linking-with-opengl.patch new file mode 100644 index 0000000..a2f6d07 --- /dev/null +++ b/recipes-support/hyprland/hyprtoolkit/hyprtoolkit/0001-CMakeLists.txt-fix-linking-with-opengl.patch @@ -0,0 +1,28 @@ +From 628c615bd108ceb04d7bda8db7c57fbcd47a0e52 Mon Sep 17 00:00:00 2001 +From: Markus Volk +Date: Mon, 29 Sep 2025 18:04:31 +0200 +Subject: [PATCH] CMakeLists.txt: fix linking with opengl + +Signed-off-by: Markus Volk + +Upstream-Status: Pending +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 669dfcf..3cf9e7c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -72,7 +72,7 @@ target_include_directories( + PRIVATE "./src" "./src/include" "./protocols" "${CMAKE_BINARY_DIR}") + set_target_properties(hyprtoolkit PROPERTIES VERSION ${HYPRTOOLKIT_VERSION} + SOVERSION 1) +-target_link_libraries(hyprtoolkit OpenGL::EGL OpenGL::OpenGL PkgConfig::deps) ++target_link_libraries(hyprtoolkit EGL GL PkgConfig::deps) + + check_include_file("sys/timerfd.h" HAS_TIMERFD) + pkg_check_modules(epoll IMPORTED_TARGET epoll-shim) +-- +2.51.0 + diff --git a/recipes-support/hyprland/hyprtoolkit/hyprtoolkit_0.0.1.bb b/recipes-support/hyprland/hyprtoolkit/hyprtoolkit_0.0.1.bb new file mode 100644 index 0000000..627296b --- /dev/null +++ b/recipes-support/hyprland/hyprtoolkit/hyprtoolkit_0.0.1.bb @@ -0,0 +1,29 @@ +SUMMARY = "A modern C++ Wayland-native GUI toolkit" +HOMEPAGE = "https:/github.com/hyprwm/hyprtoolkit" +LICENSE = "BSD-3-Clause" + +LIC_FILES_CHKSUM = "file://LICENSE;md5=a0bf31bc487405beb07b19459ea85114" + +DEPENDS = " \ + aquamarine \ + hyprgraphics \ + hyprlang \ + hyprutils \ + hyprwayland-scanner-native \ + libdrm \ + libxkbcommon \ + pango \ + pixman \ + virtual/egl \ + virtual/libgbm \ + virtual/libgles3 \ + wayland \ + wayland-protocols \ + " + +SRC_URI = "git://github.com/hyprwm/hyprtoolkit.git;protocol=https;branch=main" +SRC_URI += "file://0001-CMakeLists.txt-fix-linking-with-opengl.patch" + +SRCREV = "fb6892c513470ee8b5e61e0b2c21f5876d013ddb" + +inherit cmake pkgconfig