summaryrefslogtreecommitdiff
path: root/x11/plasma5-plasma-desktop/Makefile
blob: 90104f404fb529a2983ab41de56b09e8a683c3d1 (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
# $FreeBSD$

PORTNAME=	plasma-desktop
DISTVERSION=	${KDE_PLASMA_VERSION}
PORTREVISION=	1
CATEGORIES=	x11 kde kde-plasma

MAINTAINER=	kde@FreeBSD.org
COMMENT=	Plasma5 plasma desktop

# TODO: update packagekit-qt5
#LIB_DEPENDS=    libpackagekit-qt.so:ports-mgmt/packagekit-qt5
LIB_DEPENDS=	libboost_system.so:devel/boost-libs \
		libfontconfig.so:x11-fonts/fontconfig \
		libfreetype.so:print/freetype2 \
		libxcb-image.so:x11/xcb-util-image \
		libxcb-keysyms.so:x11/xcb-util-keysyms \
		libxkbfile.so:x11/libxkbfile
RUN_DEPENDS=	iso-codes>=0:misc/iso-codes \
		xf86-input-evdev>0:x11-drivers/xf86-input-evdev \
		xf86-input-libinput>0:x11-drivers/xf86-input-libinput
BUILD_DEPENDS=	xf86-input-evdev>0:x11-drivers/xf86-input-evdev \
		xf86-input-libinput>0:x11-drivers/xf86-input-libinput

USES=		cmake compiler:c++11-lib cpe desktop-file-utils \
		gettext kde:5 pkgconfig qt:5 tar:xz
USE_GNOME=	glib20
USE_KDE=	activities activities-stats archive attica auth baloo \
		bookmarks codecs completion config configwidgets coreaddons \
		crash dbusaddons doctools ecm emoticons filemetadata \
		globalaccel guiaddons i18n iconthemes init itemmodels \
		itemviews jobwidgets kcmutils kdeclarative kdelibs4support \
		kio newstuff notifications \
		notifyconfig package parts people plasma-framework \
		plasma-workspace runner service solid \
		sonnet textwidgets unitconversion wallet \
		widgetsaddons windowsystem xmlgui
USE_KDE+=	drkonqi_run infocenter_run kde-cli-tools_run kmenuedit_run ksysguard_run \
		polkit-kde-agent-1_run systemsettings_run
USE_QT=		concurrent core dbus declarative gui network phonon4 printsupport \
		sql svg widgets x11extras xml \
		buildtools_build qmake_build
USE_XORG=	ice sm x11 xcb xcursor xext xfixes xft xi xrender

OPTIONS_DEFINE=	SYNAPTICS
OPTIONS_SUB=	yes

OPTIONS_GROUP=		IM
OPTIONS_GROUP_IM=	IBUS SCIM
IM_DESC=		Input Method Support

OPTIONS_DEFAULT=	SYNAPTICS

SYNAPTICS_DESC=			Build touchpad KCM
SYNAPTICS_BUILD_DEPENDS=	xf86-input-synaptics>0:x11-drivers/xf86-input-synaptics
SYNAPTICS_RUN_DEPENDS=		xf86-input-synaptics>0:x11-drivers/xf86-input-synaptics
SYNAPTICS_CMAKE_BOOL=		WANT_SYNAPTICS

IBUS_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_IBus
IBUS_LIB_DEPENDS=	libibus-1.0.so:textproc/ibus
IBUS_DESC=		Enable IBUS backend for input dialog
SCIM_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_SCIM
SCIM_LIB_DEPENDS=	libscim-1.0.so:textproc/scim
SCIM_DESC=		Enable SCIM backend for input dialog

post-patch:
# Set the correct iso-codes directory
	${REINPLACE_CMD} -e '/isoCodesXmlDir/ s#/usr/share#${LOCALBASE}/share#g' \
		${PATCH_WRKSRC}/kcms/keyboard/iso_codes.h

.include <bsd.port.mk>