summaryrefslogtreecommitdiff
path: root/sysutils/seatd/Makefile
blob: 49d8885dbb9bd7c6f80783bf9d9860f8a75ce6b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
PORTNAME=	seatd
DISTVERSION=	0.5.0
CATEGORIES=	sysutils
MASTER_SITES=	https://git.sr.ht/~kennylevinsen/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/

PATCH_SITES=	https://git.sr.ht/~kennylevinsen/${PORTNAME}/commit/
PATCHFILES+=	5ad91ae9dad2.patch:-p1 # client: enable cr_pid on FreeBSD >= 12.3

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	Minimal seat management daemon and universal library

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		compiler:c11 meson pkgconfig
USE_LDCONFIG=	yes
USE_RC_SUBR=	${PORTNAME}
PLIST_FILES=	bin/${PORTNAME} \
		include/libseat.h \
		lib/libseat.so \
		lib/libseat.so.1 \
		libdata/pkgconfig/libseat.pc

OPTIONS_DEFINE=	MANPAGES SUID
# XXX enable SUID after wlroots removes direct session
OPTIONS_DEFAULT=MANPAGES

SUID_DESC=		Fall back to builtin server when running as root
SUID_MESON_ENABLED=	builtin

MANPAGES_BUILD_DEPENDS=	scdoc:textproc/scdoc
MANPAGES_MESON_ENABLED=	man-pages
MANPAGES_PLIST_FILES=	man/man1/${PORTNAME}.1.gz

.include <bsd.port.mk>