aboutsummaryrefslogtreecommitdiff
path: root/sysutils/plasma5-kinfocenter/Makefile
blob: ed7b6b30c82eb72174195909eb2f18b2f22f00df (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
PORTNAME=	kinfocenter
DISTVERSION=	${KDE_PLASMA_VERSION}
CATEGORIES=	sysutils kde kde-plasma

MAINTAINER=	kde@FreeBSD.org
COMMENT=	Plasma5 utility providing system information
WWW=		https://www.kde.org/plasma-desktop

RUN_DEPENDS=	clinfo:devel/clinfo \
		glxinfo:graphics/mesa-demos \
		lscpu:sysutils/lscpu \
		vulkaninfo:graphics/vulkan-tools \
		wayland-info:graphics/wayland-utils \
		xdpyinfo:x11/xdpyinfo

USES=		cmake compiler:c++11-lib gettext kde:5 pkgconfig qt:5 tar:xz \
		xorg
USE_KDE=	auth codecs completion config configwidgets coreaddons i18n \
		init jobwidgets kcmutils kdeclarative kio package service \
		solid widgetsaddons windowsystem \
		doctools:build ecm:build \
		kirigami2:run systemsettings:run
USE_QT=		concurrent core dbus declarative gui network widgets xml \
		buildtools:build qmake:build
USE_XORG=	ice sm x11 xext

# TODO	-- this should be handled correctly...
LDFLAGS+=-ldevinfo

.include <bsd.port.options.mk>

.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == i386
RUN_DEPENDS+=	dmidecode:sysutils/dmidecode
.endif

# install freebsd-logo and distrorc
post-install:
	${MKDIR} ${STAGEDIR}/${DATADIR}/images
	${INSTALL_DATA} ${FILESDIR}/freebsd_logo.svg   ${STAGEDIR}/${DATADIR}/images/
	${MKDIR} ${STAGEDIR}/${PREFIX}/etc/xdg
	${INSTALL_DATA} ${FILESDIR}/kcm-about-distrorc ${STAGEDIR}/${PREFIX}/etc/xdg/
	${REINPLACE_CMD} -i "" -e "s#%%DATADIR%%#${DATADIR}#"  ${STAGEDIR}/${PREFIX}/etc/xdg/kcm-about-distrorc

.include <bsd.port.mk>