Skip to content

Commit

Permalink
Update to version 0.5.0
Browse files Browse the repository at this point in the history
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@
  • Loading branch information
skreuzer committed Jan 28, 2021
1 parent f76e98a commit f82a26b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 17 deletions.
7 changes: 5 additions & 2 deletions devel/cpu_features/Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# $FreeBSD$

PORTNAME= cpu_features
PORTVERSION= 0.4.0
PORTVERSION= 0.5.0
DISTVERSIONPREFIX= v
CATEGORIES= devel

MAINTAINER= [email protected]
COMMENT= Cross platform C99 library to get cpu features at runtime

LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE

NOT_FOR_ARCHS= aarch64 armv6 armv7 mips mips64 riscv64
NOT_FOR_ARCHS_REASON= assumes android if on ARM or MIPS; not ported to riscv64
Expand All @@ -17,11 +18,13 @@ USES= cmake:insource
USE_GITHUB= yes
GH_ACCOUNT= google

CMAKE_ON= BUILD_SHARED_LIBS

CFLAGS+= -fPIC

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/list_cpu_features ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/libcpu_features.a ${STAGEDIR}${PREFIX}/lib
${INSTALL_LIB} ${WRKSRC}/libcpu_features.so ${STAGEDIR}${PREFIX}/lib
${MKDIR} ${STAGEDIR}${PREFIX}/include/internal
${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/include/internal/*.h ${STAGEDIR}${PREFIX}/include/internal
Expand Down
6 changes: 3 additions & 3 deletions devel/cpu_features/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1563070474
SHA256 (google-cpu_features-v0.4.0_GH0.tar.gz) = 4fe7435b84f18ec1db261365c36be7d7f16d2ec39221f70b2cdf6efcd423542b
SIZE (google-cpu_features-v0.4.0_GH0.tar.gz) = 55192
TIMESTAMP = 1611873019
SHA256 (google-cpu_features-v0.5.0_GH0.tar.gz) = b967811cecd68412e0dc65e4964756a6ae48755456fa2c2f42034f6271ac2c27
SIZE (google-cpu_features-v0.5.0_GH0.tar.gz) = 61947
11 changes: 0 additions & 11 deletions devel/cpu_features/files/patch-CMakeLists.txt

This file was deleted.

2 changes: 1 addition & 1 deletion devel/cpu_features/pkg-plist
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
bin/list_cpu_features
lib/libcpu_features.a
include/cpu_features_cache_info.h
include/cpu_features_macros.h
include/cpuinfo_aarch64.h
Expand All @@ -14,3 +13,4 @@ include/internal/hwcaps.h
include/internal/stack_line_reader.h
include/internal/string_view.h
include/internal/unix_features_aggregator.h
lib/libcpu_features.so

0 comments on commit f82a26b

Please sign in to comment.