1
0
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:
Piotr Kubaj 2022-01-25 17:22:48 +00:00
parent ca63a16f5c
commit 425d326baa
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= opencv
DISTVERSION= 4.5.5
PORTREVISION= 1
CATEGORIES= graphics
MAINTAINER= tcberner@FreeBSD.org

View 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));