summaryrefslogtreecommitdiff
path: root/sysutils/x86info/Makefile
blob: 391514ccb3b5301f891a0555b737feaa63e5ee30 (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
# Created by: Erik Greenwald <erik@smluc.org>
# $FreeBSD$

PORTNAME=	x86info
PORTVERSION=	1.30
CATEGORIES=	sysutils
MASTER_SITES=	http://codemonkey.org.uk/projects/x86info/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	x86 CPU identification utility

LICENSE=	GPLv2

LIB_DEPENDS=	libpci.so:${PORTSDIR}/devel/libpci

ONLY_FOR_ARCHS=	i386 amd64

USES=		gmake pkgconfig tar:tgz
ALL_TARGET=	x86info lsmsr
USE_PYTHON_BUILD=yes

PLIST_FILES=	bin/lsmsr bin/x86info man/man8/lsmsr.8.gz man/man1/x86info.1.gz

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/x86info ${STAGEDIR}${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/lsmsr ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/x86info.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
	${INSTALL_MAN} ${WRKSRC}/lsmsr.8 ${STAGEDIR}${MAN8PREFIX}/man/man8

post-patch:
	@${REINPLACE_CMD} \
		-e 's|python scripts/createheader.py|${PYTHON_CMD} scripts/createheader.py|' \
		${WRKSRC}/Makefile

.include <bsd.port.mk>