1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/x11/hypridle/Makefile
Jan Beich f6d8bf07dc *: move FreeBSD 14.0 EOL to 2024Q4
FreeBSD 14.1 was released on 2024-06-04. The transition period is at
least 3 months but usually rounded up to almost 4 months.
2024-06-10 18:55:08 +02:00

42 lines
1.2 KiB
Makefile

PORTNAME= hypridle
DISTVERSIONPREFIX= v
DISTVERSION= 0.1.2
CATEGORIES= x11 wayland
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Hyprland's idle daemon #'
WWW= https://github.com/hyprwm/hypridle
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= wayland-protocols>0:graphics/wayland-protocols
LIB_DEPENDS= libhyprlang.so:devel/hyprlang \
libsdbus-c++.so:devel/sdbus-cpp \
libwayland-client.so:graphics/wayland
USES= compiler:c++11-lib cmake pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= hyprwm
LDFLAGS+= -Wl,--as-needed # sdbus-cpp deps
PLIST_FILES= bin/${PORTNAME} \
lib/systemd/user/${PORTNAME}.service
# XXX Drop after FreeBSD 14.0 EOL around 2024-10-01
.if exists(/usr/include/c++/v1/__format/format_functions.h) && \
!exists(/usr/include/c++/v1/__format/write_escaped.h)
CXXFLAGS+= -fexperimental-library
.endif
post-patch:
# https://github.com/ConsoleKit2/ConsoleKit2/issues/150
# https://github.com/ConsoleKit2/ConsoleKit2/issues/151
@${REINPLACE_CMD} -e 's,/login1,/ConsoleKit/Manager,' \
-e 's,login1,ConsoleKit,' \
-e 's,logind,consolekit2,' \
-e 's,GetSession,&ByPID,' \
-e 's,"auto",uint32_t{getpid()},' \
${WRKSRC}/src/core/Hypridle.cpp
.include <bsd.port.mk>