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.
devel/cpu_features: Update to 0.11.0
Changelog: https://github.com/google/cpu_features/releases/tag/v0.11.0
FreeBSD is now supported natively for x86, aarch64 and arm, and detection for
AMD Zen 5, Intel Arrow Lake and Lunar Lake microarchitectures was added.
all: drop support for FreeBSD 13, mips and risc64sf
Reviewed by: many (*)
Differential Revision: https://reviews.freebsd.org/D55624
Differential Revision: https://reviews.freebsd.org/D55642 (merged in from bofh)
many (*)
acm arrowd brooks cmt dch decke dinoex eduardo fluffy fuz gahr garga
jbeich joerg jrm kai kenrap martymac matthew mfechner michaelo mizhka
nobutaka pkubaj se tagattie thj
Anton Saietskii
GenericRikka
Gert Doering
Jan Bramkamp
Oleh Hushchenkov
Oleksandr Kryvulia
Ralf van der Enden
Yamagi
desktop kde python tcltk office
devel/cpu_features: port to powerpc*
This adds the relevant bits of polyfill, permitting the
library to build on powerpc* (only powerpc64le tested).
Approved by: portmgr (build fix blanket)
MFH: 2026Q1
Sponsored by: Raptor Computing Systems, LLC
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
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
devel/cpu_features: install internal/hwcaps.h
Fixes build of security/softether5 on powerpc64le:
/usr/local/include/cpu_features/cpuinfo_ppc.h:20:10: fatal error:
'internal/hwcaps.h' file not found
^~~~~~~~~~~~~~~~~~~
devel/cpu_features: Install cmake files, install headers into a dedicated
directory
do-install is removed in favor of project's install target,
Also update 3 other ports to build with cpu_features.
PR: 261252
Approved by: skreuzer@ (maintainer)
devel/cpu_features: Update to v0.6.0
* Update port to v0.6.0
* Add patches from upstream to:
* Support FreeBSD on x86 (11994370)
* Detect Zen 3 CPUs (7ed0b0e5)
Update to version 0.5.0
Upstream Enhancements:
* Detect future Intel AVX/AMX features #128
* Add support for Tiger Lake and Sapphire rapids Intel microarchitectures #127
* Update features for AArch64 to Linux 5.8 #126
* AVX-512 FMA count detection #120
Port Changes:
* Add license file
* Change libcpu_features to a shared library
PR: 253037
Submitted by: yuri@
Set NOT_FOR_ARCHS on arm and mips
HWCAPS_ANDROID_MIPS_OR_ARM is being defined based on the assumption that any
ARM processor must be running Android.
PR: 235994
Reported by: John F. Carr <jfc@mit.edu>
Change cmake default behaviour to outsource.
Ports that build out of source now simply can use "USES=cmake"
instead of "USES=cmake:outsource". Ports that fail to build
out of source now need to specify "USES=cmake:insource".
I tried to only set insource where explictely needed.
PR: 232038
Exp-run by: antoine
Install the static library using INSTALL_DATA instead of INSTALL_LIB
Fix typo in package description: C89->C99
Reported by: Adam Weinberger <adamw@adamw.org>
A small, fast, and simple open source library to report CPU features at
runtime. Written in C89 for maximum portability, it allocates no memory and is
suitable for implementing fundamental functions and running in sandboxed
environments.
WWW: https://github.com/google/cpu_features