notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
I started running short on disk space for the non-production FreshPorts hosts. This time, I have decided to ask for donations. See my recent blog post which points to my Patreon account.
Port details on branch 2025Q3
cpu_features Cross platform C99 library to get cpu features at runtime
0.9.0 devel on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 0.9.0Version of this port present on the latest quarterly branch.
Maintainer: skreuzer@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2025-09-28 09:36:13
Last Update: 2025-09-28 09:32:13
Commit Hash: 7ff863a
License: APACHE20
WWW:
https://github.com/google/cpu_features
Description:
A small, fast, and simple open source library to report CPU features at runtime. Written in C99 for maximum portability, it allocates no memory and is suitable for implementing fundamental functions and running in sandboxed environments.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (23 items)
Collapse this list.
  1. /usr/local/share/licenses/cpu_features-0.9.0/catalog.mk
  2. /usr/local/share/licenses/cpu_features-0.9.0/LICENSE
  3. /usr/local/share/licenses/cpu_features-0.9.0/APACHE20
  4. bin/list_cpu_features
  5. include/cpu_features/cpu_features_cache_info.h
  6. include/cpu_features/cpu_features_macros.h
  7. include/cpu_features/cpuinfo_aarch64.h
  8. include/cpu_features/cpuinfo_arm.h
  9. include/cpu_features/cpuinfo_loongarch.h
  10. include/cpu_features/cpuinfo_mips.h
  11. include/cpu_features/cpuinfo_ppc.h
  12. include/cpu_features/cpuinfo_riscv.h
  13. include/cpu_features/cpuinfo_s390x.h
  14. include/cpu_features/cpuinfo_x86.h
  15. include/cpu_features/internal/hwcaps.h
  16. lib/cmake/CpuFeatures/CpuFeaturesConfig.cmake
  17. lib/cmake/CpuFeatures/CpuFeaturesConfigVersion.cmake
  18. lib/cmake/CpuFeatures/CpuFeaturesTargets-release.cmake
  19. lib/cmake/CpuFeatures/CpuFeaturesTargets.cmake
  20. lib/libcpu_features.so
  21. @owner
  22. @group
  23. @mode
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • cpu_features>0:devel/cpu_features
To install the port:
cd /usr/ports/devel/cpu_features/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/cpu_features
  • pkg install cpu_features
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: cpu_features
Flavors: there is no flavor information for this port.
NOT_FOR_ARCHS: mips mips64 riscv64
distinfo:
TIMESTAMP = 1713392514 SHA256 (google-cpu_features-v0.9.0_GH0.tar.gz) = bdb3484de8297c49b59955c3b22dba834401bc2df984ef5cfc17acbe69c5018e SIZE (google-cpu_features-v0.9.0_GH0.tar.gz) = 109259

Packages (timestamps in pop-ups are UTC):
cpu_features
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest-0.9.0--0.9.0-0.4.0-
FreeBSD:13:quarterly-0.9.0--0.9.0---
FreeBSD:14:latest-0.9.0--0.9.0---
FreeBSD:14:quarterly-0.9.0--0.9.0---
FreeBSD:15:latest-0.9.0n/a-n/a---
FreeBSD:15:quarterly--n/a-n/a---
FreeBSD:16:latest-0.9.0n/a-n/a---
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. cmake : devel/cmake-core
  2. ninja : devel/ninja
There are no ports dependent upon this port

Configuration Options:
No options to configure
Options name:
devel_cpu_features
USES:
cmake:testing
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/google/cpu_features/tar.gz/v0.9.0?dummy=/
Collapse this list.

Number of commits found: 1

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.9.0
28 Sep 2025 09:32:13
commit hash: 7ff863add26ca8c1454243850981911fc8dc34cfcommit hash: 7ff863add26ca8c1454243850981911fc8dc34cfcommit hash: 7ff863add26ca8c1454243850981911fc8dc34cfcommit hash: 7ff863add26ca8c1454243850981911fc8dc34cf files touched by this commit
Robert Clausecker (fuz) search for other commits by this committer
devel/cpu_features: port to aarch64 and armv7

These platforms works largely the same way as Linux, so adapt the existing
Linux code path.

Approved by:	portmgr (build fix blanket)
MFH:		2025Q3

(cherry picked from commit abd848c1c4182e3a1c8e7018565550e401a2cd6b)

Number of commits found: 1