PORTNAME=	kscreenlocker
DISTVERSION=	${KDE_PLASMA_VERSION}
CATEGORIES=	security kde kde-plasma

MAINTAINER=	kde@FreeBSD.org
COMMENT=	Plasma5 secure lock screen architecture
WWW=		https://www.kde.org/plasma-desktop

BUILD_DEPENDS=	ck-list-sessions:sysutils/consolekit2
LIB_DEPENDS=	libwayland-client.so:graphics/wayland \
		libxcb-keysyms.so:x11/xcb-util-keysyms
RUN_DEPENDS=	ck-list-sessions:sysutils/consolekit2\
		dbus-send:devel/dbus \
		unix-selfauth-helper>=1.0:security/unix-selfauth-helper

USES=		cmake compiler:c++11-lib cpe gettext kde:5 pkgconfig qt:5 \
		shebangfix tar:xz xorg
USE_KDE=	auth codecs config configwidgets coreaddons crash globalaccel \
		i18n idletime init kcmutils kdeclarative kio layer-shell-qt \
		libkscreen notifications package service wayland widgetsaddons \
		windowsystem xmlgui \
		ecm:build
USE_QT=		concurrent core dbus declarative gui network qdbus widgets \
		x11extras xml \
		buildtools:build qmake:build testlib:build
USE_XORG=	ice sm x11 xcb xcursor xext xi

SUB_FILES=	kde.pam

CPE_VENDOR=	kde

SHEBANG_FILES=	updaters/ksreenlocker_5_3_separate_autologin.pl

post-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/pam.d
	${INSTALL_DATA} ${WRKDIR}/kde.pam ${STAGEDIR}${PREFIX}/etc/pam.d/kde

.include <bsd.port.mk>
