pkgsrc/devel/cpu_features/Makefile
tnn 971c72e443 cpu_features: update to 0.7.0
API Change
[x86] Embed brand_string and mark FillX86BrandString as deprecated
New code layout - breaking change in cpu_features_macros.h

New features / Enhancements
[cmake] Use of CMAKE_POSITION_INDEPENDENT_CODE instead of BUILD_PIC
Add support for ZHAOXIN CPU
Fix a getauxval comment and expand the Krait idiv workaround
Update AArch64 features to Linux 5.10
Detect Zen 3 (K19) cpus
Detect AVX512 on Darwin use GetDarwinSysCtlByName("hw.optional.avx512f")
Detect Intel's Multi-Precision Add-Carry Instruction Extensions
CPU features for AMD
Update uarch detection for Intel processors
Add cache info for new AMD CPUs (0x8000001D)
[NFC] Add bazel support to cpu_features
Add support for FreeBSD on x86
[cmake] cmake: use CTest default
2022-05-13 10:39:35 +00:00

34 lines
1,020 B
Makefile

# $NetBSD: Makefile,v 1.6 2022/05/13 10:39:35 tnn Exp $
GITHUB_TAG= v${PKGVERSION_NOREV}
DISTNAME= cpu_features-0.7.0
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=google/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/google/cpu_features/
COMMENT= Cross platform C99 library to get CPU features at runtime
LICENSE= apache-2.0
USE_CMAKE= yes
USE_LANGUAGES= c c++
CMAKE_ARGS+= -DCMAKE_POSITION_INDEPENDENT_CODE=ON
CMAKE_ARGS+= -DBUILD_TESTING=OFF
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
PLIST_SUBST+= CPU_FEATURES_ARCH=x86
.elif !empty(MACHINE_ARCH:M*aarch64*)
PLIST_SUBST+= CPU_FEATURES_ARCH=aarch64
.elif !empty(MACHINE_ARCH:M*powerpc*)
PLIST_SUBST+= CPU_FEATURES_ARCH=ppc
.elif !empty(MACHINE_ARCH:M*arm*)
PLIST_SUBST+= CPU_FEATURES_ARCH=arm
.elif !empty(MACHINE_ARCH:M*mips*)
PLIST_SUBST+= CPU_FEATURES_ARCH=mips
.else
PKG_FAIL_REASON+= "${MACHINE_ARCH} unsupported, see CMakeLists.txt"
.endif
.include "../../mk/bsd.pkg.mk"