freebsd-ports/sysutils/devcpu-data/Makefile
Joseph Mingrone 4fbb969613
sysutils/devcpu-data: Permit neither vendor option to be chosen
This allows users with both AMD- and Intel-based systems to build and
install devcpu-data-amd and devcpu-data-intel, but not force either to
be installed with `pkg install devcpu-data`.

PR:		259883
Reported by:	Martin Birgmeier <d8zNeCFG@aon.at>
Approved by:	sbruno (maintainer)

Differential Revision:	https://reviews.freebsd.org/D33036
2021-11-17 23:31:43 -04:00

38 lines
811 B
Makefile

# Created by: stas
PORTNAME= data
PORTVERSION= 20211109
CATEGORIES= sysutils
MASTER_SITES= # none
PKGNAMEPREFIX= devcpu-
DISTFILES= # none
EXTRACT_ONLY= # none
MAINTAINER= sbruno@FreeBSD.org
COMMENT= AMD and Intel CPUs microcode updates
LICENSE= BSD2CLAUSE
ONLY_FOR_ARCHS= amd64 i386
USE_RC_SUBR= microcode_update
DATADIR= ${PREFIX}/share/cpucontrol
NO_ARCH= yes
NO_BUILD= yes
NO_INSTALL= yes
SUB_FILES= pkg-message
NO_WRKSUBDIR= yes
OPTIONS_DEFAULT= AMD INTEL
OPTIONS_GROUP= VENDOR
OPTIONS_GROUP_VENDOR= AMD INTEL
AMD_DESC= Depend on sysutils/devcpu-data-amd
INTEL_DESC= Depend on sysutils/devcpu-data-intel
AMD_RUN_DEPENDS= ${LOCALBASE}/share/cpucontrol/microcode_amd.bin:sysutils/devcpu-data-amd
INTEL_RUN_DEPENDS= /boot/firmware/intel-ucode.bin:sysutils/devcpu-data-intel
.include <bsd.port.mk>