git: 966c4864a8e2 - main - sysutils/plasma5-kinfocenter: fix build without dmidecode available

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Wed, 24 Apr 2024 21:21:47 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=966c4864a8e27389b748ad7d79b6172f14a302be

commit 966c4864a8e27389b748ad7d79b6172f14a302be
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-04-20 20:08:06 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-04-24 21:21:14 +0000

    sysutils/plasma5-kinfocenter: fix build without dmidecode available
---
 sysutils/plasma5-kinfocenter/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sysutils/plasma5-kinfocenter/Makefile b/sysutils/plasma5-kinfocenter/Makefile
index c72c0c8094c9..b0fc8f6a9754 100644
--- a/sysutils/plasma5-kinfocenter/Makefile
+++ b/sysutils/plasma5-kinfocenter/Makefile
@@ -7,7 +7,6 @@ COMMENT=	Plasma5 utility providing system information
 WWW=		https://www.kde.org/plasma-desktop
 
 RUN_DEPENDS=	clinfo:devel/clinfo \
-		dmidecode:sysutils/dmidecode  \
 		glxinfo:graphics/mesa-demos \
 		lscpu:sysutils/lscpu \
 		vulkaninfo:graphics/vulkan-tools \
@@ -28,6 +27,10 @@ USE_XORG=	ice sm x11 xext
 # TODO	-- this should be handled correctly...
 LDFLAGS+=-ldevinfo
 
+.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == i386
+RUN_DEPENDS+=	dmidecode:sysutils/dmidecode
+.endif
+
 # install freebsd-logo and distrorc
 post-install:
 	${MKDIR} ${STAGEDIR}/${DATADIR}/images