aboutsummaryrefslogtreecommitdiff
path: root/sysutils/cpuid/Makefile
blob: f59d8edc5480e0a280a93f39544ffc871c57875d (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
PORTNAME=	cpuid
DISTVERSION=	20211031
DISTVERSIONSUFFIX=	.src
CATEGORIES=	sysutils
MASTER_SITES=	http://www.etallen.com/cpuid/
PKGNAMESUFFIX=	${CPUID_SUFFIX}

MAINTAINER=	pkubaj@FreeBSD.org
COMMENT=	Tool to dump x86 CPUID information about the CPU(s)

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

ONLY_FOR_ARCHS=	amd64 i386
ONLY_FOR_ARCHS_REASON=	only works with x86 CPUs

USES=		gmake perl5
USE_PERL5=	build
ALL_TARGET=	default
WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}

# Renamed to avoid conflict with misc/cpuid
CPUID_SUFFIX=	-etallen

PLIST_FILES=	bin/cpuid${CPUID_SUFFIX} \
		man/man1/cpuid${CPUID_SUFFIX}.1.gz

post-patch:
	${REINPLACE_CMD} 's,CFL=.*,& -pthread,' ${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/cpuid ${STAGEDIR}${PREFIX}/bin/cpuid${CPUID_SUFFIX}
	${INSTALL_MAN} ${WRKSRC}/cpuid.man.gz ${STAGEDIR}${PREFIX}/man/man1/cpuid${CPUID_SUFFIX}.1.gz

.include <bsd.port.mk>