diff --git a/accessibility/Makefile b/accessibility/Makefile index 42a14320dd04..ac1dd5f23189 100644 --- a/accessibility/Makefile +++ b/accessibility/Makefile @@ -1,37 +1,38 @@ COMMENT = Ports to help disabled users SUBDIR += accerciser SUBDIR += at-spi2-core SUBDIR += atkmm SUBDIR += caribou SUBDIR += darkman SUBDIR += eflite SUBDIR += feedbackd SUBDIR += gammastep SUBDIR += gammy + SUBDIR += hyprsunset SUBDIR += kdeaccessibility SUBDIR += kmag SUBDIR += kmousetool SUBDIR += kmouth SUBDIR += libqaccessibilityclient SUBDIR += linux-c7-at-spi2-atk SUBDIR += linux-c7-at-spi2-core SUBDIR += linux-c7-atk SUBDIR += linux-rl9-at-spi2-atk SUBDIR += linux-rl9-at-spi2-core SUBDIR += linux-rl9-atk SUBDIR += orca SUBDIR += py-atspi SUBDIR += py-speech-dispatcher SUBDIR += qt5-speech SUBDIR += qt6-speech SUBDIR += redshift SUBDIR += rubygem-atk SUBDIR += sct SUBDIR += sctd SUBDIR += speech-dispatcher SUBDIR += wl-gammarelay-rs SUBDIR += wlsunset SUBDIR += yasr .include 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 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.