mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
graphics/libskiasharp: fix build on armv7 and aarch64
Add getauxval() shim using elf_aux_info() for CPU feature detection. Approved by: portmgr (build fix blanket) MFH: 2025Q1
This commit is contained in:
parent
337d71346c
commit
7e9fc36ba3
2 changed files with 21 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
PORTNAME= libskiasharp
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 2.88.3
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= LOCAL/bapt:libjpeg_turbo
|
||||
DISTFILES= libjpeg_turbo-${LIBJPEG_TURBO_REV}.tar.gz:libjpeg_turbo
|
||||
|
|
20
graphics/libskiasharp/files/patch-src_core_SkCpu.cpp
Normal file
20
graphics/libskiasharp/files/patch-src_core_SkCpu.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
--- src/core/SkCpu.cpp.orig 2025-01-20 04:43:13 UTC
|
||||
+++ src/core/SkCpu.cpp
|
||||
@@ -10,6 +10,17 @@
|
||||
#include "include/private/SkOnce.h"
|
||||
#include "src/core/SkCpu.h"
|
||||
|
||||
+#ifdef __FreeBSD__
|
||||
+#include <sys/auxv.h>
|
||||
+static unsigned long getauxval(unsigned long aux) {
|
||||
+ unsigned long val = 0;
|
||||
+
|
||||
+ elf_aux_info((int)aux, &val, sizeof aux);
|
||||
+
|
||||
+ return val;
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
#if defined(SK_CPU_X86)
|
||||
#if defined(_MSC_VER)
|
||||
#include <intrin.h>
|
Loading…
Add table
Reference in a new issue