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
| System | Port | Version |
|---|---|---|
| FreeBSD | sysutils/libcpuid | 0.8.2 |
| NetBSD | sysutils/libcpuid | 0.8.0 |
| DragonFly | sysutils/libcpuid | 0.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.8.1 | 0.8.1 | 0.6.2 | 0.8.0 | 0.8.2 |
| FreeBSD:14:quarterly | 0.8.1 | 0.8.1 | n/a | 0.8.0 | 0.8.1 |
| FreeBSD:15:latest | 0.8.1 | 0.8.2 | n/a | 0.8.0 | 0.8.0 |
| FreeBSD:15:quarterly | 0.8.1 | 0.8.1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.8.1 | 0.8.2 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
- archivers/brotli
- archivers/libdeflate
- archivers/liblz4
- archivers/lzo2
- archivers/zstd
- converters/fribidi
- converters/libiconv
- databases/sqlite3
- devel/doxygen
- devel/gettext-runtime
- devel/glib20
- devel/libdatrie
- devel/libedit
- devel/libffi
- devel/libfmt
- devel/libinotify
- devel/libltdl
- devel/libthai
- devel/pcre2
- devel/py-packaging
- devel/readline
- devel/spdlog
- graphics/cairo
- graphics/gd
- graphics/giflib
- graphics/graphite2
- graphics/graphviz
- graphics/jbigkit
- graphics/jpeg-turbo
- graphics/lerc
- graphics/png
- graphics/tiff
- graphics/webp
- lang/python312
- lang/python315
- lang/tcl86
- math/libtommath
- math/mpdecimal
- print/freetype2
- print/harfbuzz
- print/indexinfo
- textproc/expat2
- x11-fonts/fontconfig
- x11-fonts/libXft
- x11-toolkits/libXaw
- x11-toolkits/libXmu
- x11-toolkits/libXt
- x11-toolkits/pango
- x11/libICE
- x11/libSM
- x11/libX11
- x11/libXau
- x11/libXdmcp
- x11/libXext
- x11/libXpm
- x11/libXrender
- x11/libxcb
- x11/pixman
- x11/xorgproto
Configuration
Options name: sysutils_libcpuid
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build and/or install documentation |
| MANPAGES | on | Build 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
| File | Size | SHA256 |
|---|---|---|
| libcpuid-0.8.2.tar.gz | 949461 | be05cbafa086850a15b7d6f6cee3e72ae73a2b2ac75c0b2c6fc77611dede73b8 |
Master sites 1
- https://github.com/anrieff/libcpuid/releases/download/v0.8.2/