Date: Thu, 21 Nov 2024 15:56:35 GMT From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: ee80f3761f71 - main - accessibility/hyprsunset: add new port Message-ID: <202411211556.4ALFuZco077735@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=ee80f3761f715da131c493978cb92a93a67078f2 commit ee80f3761f715da131c493978cb92a93a67078f2 Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2024-10-08 19:23:45 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2024-11-21 15:56:14 +0000 accessibility/hyprsunset: add new port hyprsunset is a small utility to provide a blue light filter for your system. This method is preferred to screen shaders as it will not be captured via recording / screenshots. Requires hyprland >= 0.45.0 for hyprland-ctm-control-v1 protocol. https://github.com/hyprwm/hyprsunset --- accessibility/Makefile | 1 + accessibility/hyprsunset/Makefile | 24 ++++++++++++++++++++++ accessibility/hyprsunset/distinfo | 5 +++++ .../hyprsunset/files/patch-CMakeLists.txt | 23 +++++++++++++++++++++ accessibility/hyprsunset/pkg-descr | 5 +++++ 5 files changed, 58 insertions(+) diff --git a/accessibility/Makefile b/accessibility/Makefile index 42a14320dd04..ac1dd5f23189 100644 --- a/accessibility/Makefile +++ b/accessibility/Makefile @@ -9,6 +9,7 @@ SUBDIR += feedbackd SUBDIR += gammastep SUBDIR += gammy + SUBDIR += hyprsunset SUBDIR += kdeaccessibility SUBDIR += kmag SUBDIR += kmousetool diff --git a/accessibility/hyprsunset/Makefile b/accessibility/hyprsunset/Makefile new file mode 100644 index 000000000000..e3dc75254a99 --- /dev/null +++ b/accessibility/hyprsunset/Makefile @@ -0,0 +1,24 @@ +PORTNAME= hyprsunset +DISTVERSIONPREFIX= v +DISTVERSION= 0.1.0 +CATEGORIES= accessibility wayland + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Blue light filter on Hyprland +WWW= https://github.com/hyprwm/hyprsunset + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= hyprwayland-scanner>=0.4.0:devel/hyprwayland-scanner \ + wayland-protocols>0:graphics/wayland-protocols +LIB_DEPENDS= libhyprutils.so:devel/hyprutils \ + libwayland-client.so:graphics/wayland + +USES= cmake compiler:c++11-lib localbase:ldflags pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= hyprwm +GH_TUPLE= hyprwm:hyprland-protocols:v0.4.0:hyprland_protocols/subprojects/hyprland-protocols +PLIST_FILES= bin/${PORTNAME} + +.include <bsd.port.mk> diff --git a/accessibility/hyprsunset/distinfo b/accessibility/hyprsunset/distinfo new file mode 100644 index 000000000000..fc6f9de7a5b6 --- /dev/null +++ b/accessibility/hyprsunset/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1728415425 +SHA256 (hyprwm-hyprsunset-v0.1.0_GH0.tar.gz) = 88c9fb2c3efb3ccb398c66a90658765312faf818678a6a8e0e727cfba5f13a9b +SIZE (hyprwm-hyprsunset-v0.1.0_GH0.tar.gz) = 8571 +SHA256 (hyprwm-hyprland-protocols-v0.4.0_GH0.tar.gz) = ab3525d8bad576db911d4ba1b586f303dd988660b3b8980022c1795fd574b165 +SIZE (hyprwm-hyprland-protocols-v0.4.0_GH0.tar.gz) = 8131 diff --git a/accessibility/hyprsunset/files/patch-CMakeLists.txt b/accessibility/hyprsunset/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..847fb208217f --- /dev/null +++ b/accessibility/hyprsunset/files/patch-CMakeLists.txt @@ -0,0 +1,23 @@ +-- Checking for module 'hyprland-protocols>=0.4.0' +-- Package 'hyprland-protocols' not found +CMake Error at /usr/local/share/cmake/Modules/FindPkgConfig.cmake:645 (message): + The following required packages were not found: + + - hyprland-protocols>=0.4.0 + +--- CMakeLists.txt.orig 2024-10-08 19:23:45 UTC ++++ CMakeLists.txt +@@ -98,8 +98,12 @@ protocolwayland() + + protocolwayland() + +-pkg_check_modules(hyprland_protocols_dep REQUIRED IMPORTED_TARGET hyprland-protocols>=0.4.0) ++pkg_check_modules(hyprland_protocols_dep IMPORTED_TARGET hyprland-protocols>=0.4.0) ++if(hyprland_protocols_dep_FOUND) + pkg_get_variable(HYPRLAND_PROTOCOLS hyprland-protocols pkgdatadir) ++else() ++set(HYPRLAND_PROTOCOLS "${CMAKE_SOURCE_DIR}/subprojects/hyprland-protocols") ++endif() + message(STATUS "hyprland-protocols dependency set to ${HYPRLAND_PROTOCOLS}") + + protocolnew("${HYPRLAND_PROTOCOLS}/protocols" "hyprland-ctm-control-v1" true) diff --git a/accessibility/hyprsunset/pkg-descr b/accessibility/hyprsunset/pkg-descr new file mode 100644 index 000000000000..529a3f5db819 --- /dev/null +++ b/accessibility/hyprsunset/pkg-descr @@ -0,0 +1,5 @@ +hyprsunset is a small utility to provide a blue light filter for your +system. This method is preferred to screen shaders as it will not be +captured via recording / screenshots. + +Requires hyprland >= 0.45.0 for hyprland-ctm-control-v1 protocol.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411211556.4ALFuZco077735>