freebsd-ports/sysutils/lscpu/Makefile
Alexey Dokuchaev b6291b0997 Add ONLY_FOR_ARCHS_REASON statement: while it attempts to query generic CPU
information using sysctl(3) CTL_HW* identifiers, it does not properly guard
x86-specific code paths.

Requested by:	mat
2017-12-11 15:26:23 +00:00

26 lines
583 B
Makefile

# Created by: Ryan Steinmetz <zi@FreeBSD.org>
# $FreeBSD$
PORTNAME= lscpu
PORTVERSION= 1.0.0
CATEGORIES= sysutils
MAINTAINER= zi@FreeBSD.org
COMMENT= Display information about the CPU architecture
LICENSE= BSD3CLAUSE
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= unconditionally invokes x86-specific code
USE_GITHUB= yes
GH_ACCOUNT= NanXiao
PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.mk>