mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
graphics/opencv: fix VSX detection
AT_HWCAP should be long.
This commit is contained in:
parent
ca63a16f5c
commit
425d326baa
@ -1,5 +1,6 @@
|
||||
PORTNAME= opencv
|
||||
DISTVERSION= 4.5.5
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= graphics
|
||||
|
||||
MAINTAINER= tcberner@FreeBSD.org
|
||||
|
11
graphics/opencv/files/patch-modules_core_src_system.cpp
Normal file
11
graphics/opencv/files/patch-modules_core_src_system.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
--- modules/core/src/system.cpp.orig 2022-01-25 17:17:25 UTC
|
||||
+++ modules/core/src/system.cpp
|
||||
@@ -630,7 +630,7 @@ struct HWFeatures
|
||||
}
|
||||
}
|
||||
#elif (defined __ppc64__ || defined __PPC64__) && defined __FreeBSD__
|
||||
- unsigned int hwcap = 0;
|
||||
+ unsigned long hwcap = 0;
|
||||
elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap));
|
||||
if (hwcap & PPC_FEATURE_HAS_VSX) {
|
||||
elf_aux_info(AT_HWCAP2, &hwcap, sizeof(hwcap));
|
Loading…
Reference in New Issue
Block a user