BSD Ports

sysutils/libcpuid 0.8.2 FreeBSD

Small x86 CPU identification library

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
96150a3f6c
License
BSD2CLAUSE
Categories
sysutils
Package size
111.8 KiB, 746.4 KiB installed

Description

libcpuid is a small C library for x86 CPU detection and feature extraction. Using it, you can:

  • Get the processor vendor, model, brand string, code name, etc.
  • Get information about CPU features such as: number of cores or logical CPUs, cache sizes, CPU clock, etc.
  • Check if the processor implements a specific instruction set such as SSE2 or 3DNow!
  • Execute the CPUID and RDTSC instructions in a portable way
  • And have this all in your commercial application, without getting into trouble, due to permissive license

Reference utility (rather advanced and useful on its own) is also provided.

In the other systems

SystemPortVersion
FreeBSDsysutils/libcpuid0.8.2
NetBSDsysutils/libcpuid0.8.0
DragonFlysysutils/libcpuid0.6.5

Install

Binary package:

pkg install libcpuid

From the ports tree:

cd /usr/ports/sysutils/libcpuid/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	libcpuid>0:sysutils/libcpuid
LIB_DEPENDS=	libcpuid.so:sysutils/libcpuid

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.8.10.8.10.6.20.8.00.8.2
FreeBSD:14:quarterly0.8.10.8.1n/a0.8.00.8.1
FreeBSD:15:latest0.8.10.8.2n/a0.8.00.8.0
FreeBSD:15:quarterly0.8.10.8.1n/an/an/a
FreeBSD:16:latest0.8.10.8.2n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 59

Configuration

Options name: sysutils_libcpuid

OptionDefaultDescription
DOCSoffBuild and/or install documentation
MANPAGESonBuild and/or install manual pages
USES
libtool pathfix python:test shebangfix
Service scripts
none

Files

Manual pages 6
  • cpu_id_t(3)
  • cpu_list_t(3)
  • cpu_mark_t(3)
  • cpu_raw_data_t(3)
  • cpuid_tool(3)
  • libcpuid(3)
pkg-plist 15
  • bin/cpuid_tool
  • include/libcpuid/libcpuid.h
  • include/libcpuid/libcpuid_constants.h
  • include/libcpuid/libcpuid_types.h
  • lib/libcpuid.a
  • lib/libcpuid.so
  • lib/libcpuid.so.17
  • lib/libcpuid.so.17.1.2
  • libdata/pkgconfig/libcpuid.pc
  • share/man/man3/cpu_id_t.3.gz
  • share/man/man3/cpu_list_t.3.gz
  • share/man/man3/cpu_mark_t.3.gz
  • share/man/man3/cpu_raw_data_t.3.gz
  • share/man/man3/cpuid_tool.3.gz
  • share/man/man3/libcpuid.3.gz
distinfo 1
FileSizeSHA256
libcpuid-0.8.2.tar.gz949461be05cbafa086850a15b7d6f6cee3e72ae73a2b2ac75c0b2c6fc77611dede73b8
Master sites 1
  • https://github.com/anrieff/libcpuid/releases/download/v0.8.2/

Commit history 1

DateCommitCreditsLog message
96150a3f6c Alexey Dokuchaev sysutils/libcpuid: update the port to version 0.8.2
Install manual pages by default for the benefit of package users; ports users can always disable Doxygen via options.