Files
ports/sysutils/consolekit2/Makefile
T
Charlie Li c345bb57e7 sysutils/consolekit2: support S0ix/s2idle suspend on 16-CURRENT
Use the new kern.power.supported_stype sysctl on 16-CURRENT whilst
keeping hw.acpi.supported_sleep_state otherwise. Also use zzz(8)
unconditionally.

https://github.com/ConsoleKit2/ConsoleKit2/pull/163

Discussed with: obiwac (acpi)
Reviewed by: arrowd (upstream)
Event: Halifax Hackathon 202606
2026-07-03 14:28:52 -04:00

66 lines
1.7 KiB
Makefile

PORTNAME= consolekit
DISTVERSION= 2.0.0
PORTREVISION= 1
CATEGORIES= sysutils gnome
PKGNAMESUFFIX= 2
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES= 75867d5ec7187b60e5732843acbe0f67c61421cf.patch:-p1
MAINTAINER= desktop@FreeBSD.org
COMMENT= Framework for defining and tracking users
WWW= https://github.com/ConsoleKit2/ConsoleKit2
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/share/aclocal/gtk-doc.m4:textproc/gtk-doc
LIB_DEPENDS= libdbus-1.so:devel/dbus \
libdrm.so:graphics/libdrm \
libevdev.so:devel/libevdev \
libudev.so:devel/libudev-devd
OPTIONS_DEFINE= POLKIT X11
OPTIONS_DEFAULT=POLKIT X11
OPTIONS_SUB= yes
POLKIT_DESC= Build with Polkit support
POLKIT_LIB_DEPENDS= libpolkit-gobject-1.so:sysutils/polkit
POLKIT_CONFIGURE_ENABLE= polkit
X11_USES= xorg
X11_USE= XORG=x11
X11_CONFIGURE_WITH= x
USE_GITHUB= yes
GH_ACCOUNT= ConsoleKit2
GH_PROJECT= ConsoleKit2
USES= autoreconf gettext gmake gnome libtool localbase pathfix pkgconfig \
tar:bzip2
USE_CSTD= gnu99
USE_GNOME= glib20 libxslt introspection:build
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ARGS= --with-pid-file=/var/run/${PORTNAME}.pid \
--enable-pam-module \
--with-pam-module-dir=${PREFIX}/lib \
--localstatedir=/var \
--enable-introspection \
--enable-libdrm \
--enable-libevdev \
--enable-libudev \
--disable-udev-acl \
--disable-libcgmanager \
--without-systemdsystemunitdir
INSTALL_TARGET= install-strip
post-install:
.for script in ck-system-hibernate ck-system-hybridsleep \
ck-system-restart ck-system-stop ck-system-suspend
cd ${STAGEDIR}${PREFIX}/lib/ConsoleKit/scripts && \
${MV} ${script} ${script}.sample
.endfor
.include <bsd.port.mk>