aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/x86info/Makefile
blob: 619298ad6a538aa0d8c96fbb9d77e9a4b79c2eac (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
36
37
38
39
40
41
# Created by: Erik Greenwald <erik@smluc.org>
# $FreeBSD$

PORTNAME=   x86info
DISTVERSION=    1.31snap03
CATEGORIES= sysutils

MAINTAINER= ler@FreeBSD.org
COMMENT=    x86 CPU identification and feature display utility

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libpci.so:devel/libpci

ONLY_FOR_ARCHS= i386 amd64

USE_GITHUB= yes
GH_ACCOUNT= kernelslacker
GH_TAGNAME= 1b41e8b

USES=       gmake pkgconfig python:build

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

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

do-build:
    @cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${_MAKE_JOBS} ${MAKE_ARGS}
    @cd ${WRKSRC}/lsmsr ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${_MAKE_JOBS} ${MAKE_ARGS}

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

.include <bsd.port.mk>