summaryrefslogtreecommitdiff
path: root/sysutils/plasma6-kinfocenter/Makefile
blob: 0bd26466aa22ac7b6d76ca25fec5d74712a8cbee (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
PORTNAME=	kinfocenter
DISTVERSION=	${KDE_PLASMA_VERSION}
CATEGORIES=	sysutils kde kde-plasma

MAINTAINER=	kde@FreeBSD.org
COMMENT=	View information about your computer's hardware

BUILD_DEPENDS=	${LOCALBASE}/include/vulkan/vulkan.h:graphics/vulkan-headers
RUN_DEPENDS=	clinfo:devel/clinfo \
		glxinfo:graphics/mesa-demos \
		hwdata>0:misc/hwdata \
		lsblk:sysutils/lsblk \
		lscpu:sysutils/lscpu \
		pipewire:multimedia/pipewire \
		vulkaninfo:graphics/vulkan-tools \
		wayland-info:graphics/wayland-utils \
		xdpyinfo:x11/xdpyinfo

USES=		cmake gettext gl kde:6 pkgconfig qt:6 tar:xz
USE_GL=		gl opengl
USE_KDE=	auth colorscheme completion config configwidgets coreaddons \
		doctools i18n jobwidgets kcmutils kio package service solid \
		widgetsaddons \
		ecm:build \
		kirigami2:run systemsettings:run
USE_QT=		base declarative

.include <bsd.port.options.mk>

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

post-patch:
	 ${REINPLACE_CMD} '/usb.ids/s,/usr,${LOCALBASE},' ${WRKSRC}/kcms/usbview/usbdb.cpp

# 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>