summaryrefslogtreecommitdiff
path: root/x11/plasma5-plasma-workspace/Makefile
blob: 9c5c494a31bb0b4f4cd082237da55397d0797bb8 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
PORTNAME=	plasma-workspace
DISTVERSION=	${KDE_PLASMA_VERSION}.1
PORTREVISION=	1
CATEGORIES=	x11 kde kde-plasma

MAINTAINER=	kde@FreeBSD.org
COMMENT=	Plasma5 Plasma workspace
WWW=		https://www.kde.org/plasma-desktop

BUILD_DEPENDS=	kio-extras>=23.08.5:devel/kio-extras \
		wayland-protocols>=1.31:graphics/wayland-protocols
LIB_DEPENDS=	libKUserFeedbackCore.so:deskutils/kuserfeedback \
		libcln.so:math/cln \
		libdbusmenu-qt5.so:devel/libdbusmenu-qt@qt5 \
		libfreetype.so:print/freetype2 \
		libfontconfig.so:x11-fonts/fontconfig \
		libicui18n.so:devel/icu \
		libqalculate.so:math/libqalculate \
		libwayland-client.so:graphics/wayland \
		libxkbcommon.so:x11/libxkbcommon \
		libxcb-image.so:x11/xcb-util-image \
		libxcb-util.so:x11/xcb-util
RUN_DEPENDS=	ck-launch-session:sysutils/consolekit2 \
		iceauth:x11/iceauth \
		kio-extras>=23.08.5:devel/kio-extras \
		xmessage:x11/xmessage \
		xrdb:x11/xrdb \
		xset:x11/xset \
		xsetroot:x11/xsetroot \
		${LOCALBASE}/libdata/pkgconfig/xkeyboard-config.pc:x11/xkeyboard-config \
		iso-codes>=0:misc/iso-codes \
		${LOCALBASE}/bin/genv:sysutils/coreutils \
		accountsservice>=0:sysutils/accountsservice

USES=		cmake compiler:c++11-lib cpe desktop-file-utils gettext gl \
		kde:5 pkgconfig qt:5 tar:xz xorg
USE_GL=		gl
USE_KDE=	activities activities-stats activitymanagerd archive attica \
		auth baloo bookmarks codecs completion config configwidgets \
		coreaddons crash dbusaddons emoticons filemetadata globalaccel \
		guiaddons holidays i18n iconthemes idletime init itemmodels \
		itemviews jobwidgets js jsembed kcmutils kdeclarative kdesu \
		kio kquickcharts kscreenlocker kwin layer-shell-qt libkexiv2 \
		libkscreen libksysguard newstuff notifications notifyconfig \
		package parts people phonon plasma-framework plasma-integration \
		prison pty runner service solid sonnet syntaxhighlighting \
		texteditor textwidgets unitconversion wallet wayland \
		widgetsaddons windowsystem xmlgui xmlrpcclient \
		doctools:build ecm:build plasma-wayland-protocols:build \
		breeze-icons:run breeze:run kded:run kquickcharts:run \
		milou:run oxygen-icons5:run
USE_QT=		concurrent core dbus declarative graphicaleffects gui network \
		printsupport qdbus script sql svg wayland \
		widgets x11extras xml \
		buildtools:build qmake:build testlib:build \
		paths:run quickcontrols:run
USE_XORG=	ice sm x11 xau xcb xcomposite xcursor xext xfixes xft xi \
		xkbfile xrender xtst

CPE_VENDOR=	kde

CMAKE_OFF=	BUILD_TESTING

OPTIONS_DEFINE=		PIPEWIRE
OPTIONS_DEFAULT=	PIPEWIRE

PIPEWIRE_DESC=		Screen capture via PipeWire

PIPEWIRE_LIB_DEPENDS=	libpipewire-0.3.so:multimedia/pipewire
PIPEWIRE_USE=		KDE=kpipewire
PIPEWIRE_CMAKE_OFF=	-DDISABLE_PIPEWIRE:BOOL=ON

post-patch:
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
		${PATCH_WRKSRC}/startkde/startplasma.cpp

post-stage:
	${INSTALL_SCRIPT} ${FILESDIR}/startplasma-wayland.sh ${STAGEDIR}/${LOCALBASE}/bin/

.include <bsd.port.mk>