diff --git a/accessibility/hyprsunset/Makefile b/accessibility/hyprsunset/Makefile index f77b8b76904d..a7adc5bb2680 100644 --- a/accessibility/hyprsunset/Makefile +++ b/accessibility/hyprsunset/Makefile @@ -1,36 +1,37 @@ PORTNAME= hyprsunset DISTVERSIONPREFIX= v DISTVERSION= 0.3.1 +PORTREVISION= 1 CATEGORIES= accessibility wayland MAINTAINER= tagattie@FreeBSD.org COMMENT= Blue light filter on Hyprland WWW= https://github.com/hyprwm/hyprsunset LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_FreeBSD_13= fails to build: /usr/local/include/date/date.h:6636:15: error: no member named 'read' in namespace 'date::detail'; did you mean '::read'? BUILD_DEPENDS= hyprwayland-scanner>=0.4.0:devel/hyprwayland-scanner \ hyprland-protocols>=0.4.0:graphics/hyprland-protocols \ wayland-protocols>0:graphics/wayland-protocols LIB_DEPENDS= libhyprlang.so:devel/hyprlang \ libhyprutils.so:devel/hyprutils \ libwayland-client.so:graphics/wayland USES= cmake compiler:c++11-lib localbase:ldflags pkgconfig USE_GITHUB= yes GH_ACCOUNT= hyprwm PLIST_FILES= bin/${PORTNAME} \ lib/systemd/user/${PORTNAME}.service # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282377 .if exists(/usr/lib/libc++.so) LIB_DEPENDS+= libdate-tz.so:devel/date USES+= localbase:ldflags .endif .include diff --git a/accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp b/accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp index c8e22b0d7bfa..f2e7a4496bca 100644 --- a/accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp +++ b/accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp @@ -1,25 +1,25 @@ --- src/Hyprsunset.cpp.orig 2025-07-24 17:32:18 UTC +++ src/Hyprsunset.cpp @@ -5,9 +5,22 @@ #include #include #include +#include #include #include +#include #include + -+#if defined(_LIBCPP_VERSION) || defined(_LIBCPP_HAS_NO_TIME_ZONE_DATABASE) ++#if defined(_LIBCPP_HAS_NO_TIME_ZONE_DATABASE) +#pragma comment(lib, "date-tz") +#include +namespace std { + namespace chrono { + using date::current_zone; + using date::zoned_time; + } +} +#endif #define TIMESPEC_NSEC_PER_SEC 1000000000L