aboutsummaryrefslogtreecommitdiff
path: root/x11/plasma5-plasma-desktop/Makefile
blob: 8a4e7367ea604339c2a2a164f22f59948ba1bca2 (plain) (blame)
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
# $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:outsource 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 kmenuedit_run ksysguard_run \
		polkit-kde-agent-1_run systemsettings_run
USE_QT=		concurrent core dbus gui network phonon4 printsupport qml \
		quick sql svg widgets x11extras xml \
		buildtools_build qmake_build
USE_XORG=	ice sm x11 xcb xcursor xext xfixes xft xi xrender

OPTIONS_DEFINE=	PULSEAUDIO SYNAPTICS
OPTIONS_SUB=	yes

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

OPTIONS_DEFAULT=	SYNAPTICS

PULSEAUDIO_CMAKE_BOOL=		WANT_PULSEAUDIO
PULSEAUDIO_LIB_DEPENDS=		libpulse.so:audio/pulseaudio

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>