Mitchell Horne 89ead86a54 sysutils/dmidecode: expand platform support
SMBIOS data is made available on all EFI platforms, including arm64,
arm, and riscv. Allow the port to be built for these architectures,
excluding the x86-specific utilities.

Reviewed by:	lwhsu, emaste
Approved by:	lwhsu (ports)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D28244
2021-01-21 17:31:05 +00:00

37 lines
786 B
Makefile

# Created by: Anders Nordby <anders@FreeBSD.org>
# $FreeBSD$
PORTNAME= dmidecode
PORTVERSION= 3.3
CATEGORIES= sysutils
MASTER_SITES= SAVANNAH
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Tool for dumping DMI (SMBIOS) contents in human-readable format
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 riscv64 riscv64sf
USES= tar:xz
SUB_FILES= dmidecode
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
# Additional programs are only built for x86 platforms.
.if ${ARCH} == "amd64" || ${ARCH} == "i386"
PLIST_SUB+= X86=""
.else
PLIST_SUB+= X86="@comment "
.endif
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily/
${INSTALL_SCRIPT} ${WRKDIR}/dmidecode ${STAGEDIR}${PREFIX}/etc/periodic/daily/
.include <bsd.port.post.mk>