View | Details | Raw Unified | Return to bug 266211 | Differences between
and this patch

Collapse All | Expand All

(-)b/graphics/opencv/Makefile (-3 lines)
Lines 3-11 DISTVERSION= 4.5.3 Link Here
3
PORTREVISION=	5
3
PORTREVISION=	5
4
CATEGORIES=	graphics
4
CATEGORIES=	graphics
5
5
6
PATCH_SITES=	https://github.com/opencv/opencv/commit/
7
PATCHFILES=	998406d20e93aa36b26fd56506f3ea8a82b43c24.patch:-p1
8
9
MAINTAINER=	tcberner@FreeBSD.org
6
MAINTAINER=	tcberner@FreeBSD.org
10
COMMENT=	Open Source Computer Vision library
7
COMMENT=	Open Source Computer Vision library
11
8
(-)b/graphics/opencv/distinfo (-2 lines)
Lines 15-19 SHA256 (opencv-opencv_3rdparty-8afa57abc8229d611c4937165d20e2a2d9fc5a12_GH0.tar. Link Here
15
SIZE (opencv-opencv_3rdparty-8afa57abc8229d611c4937165d20e2a2d9fc5a12_GH0.tar.gz) = 63301261
15
SIZE (opencv-opencv_3rdparty-8afa57abc8229d611c4937165d20e2a2d9fc5a12_GH0.tar.gz) = 63301261
16
SHA256 (opencv-opencv_3rdparty-a56b6ac6f030c312b2dce17430eef13aed9af274_GH0.tar.gz) = 6d3552455d927dd28cdd6a78470398208ff2167b19b0dd51ab30a241d900cb4c
16
SHA256 (opencv-opencv_3rdparty-a56b6ac6f030c312b2dce17430eef13aed9af274_GH0.tar.gz) = 6d3552455d927dd28cdd6a78470398208ff2167b19b0dd51ab30a241d900cb4c
17
SIZE (opencv-opencv_3rdparty-a56b6ac6f030c312b2dce17430eef13aed9af274_GH0.tar.gz) = 135706483
17
SIZE (opencv-opencv_3rdparty-a56b6ac6f030c312b2dce17430eef13aed9af274_GH0.tar.gz) = 135706483
18
SHA256 (998406d20e93aa36b26fd56506f3ea8a82b43c24.patch) = bce0f541613ac800c9f84bffde2f21b035b0528035e89495e7a49c94546334b7
19
SIZE (998406d20e93aa36b26fd56506f3ea8a82b43c24.patch) = 1074
(-)b/graphics/opencv/files/patch-git_998406d (+31 lines)
Added Link Here
1
From f7b4b750d8930b5bb6696cea6d609dc70a0597db Mon Sep 17 00:00:00 2001
2
From: mikael <mikael@FreeBSD.org>
3
Date: Tue, 21 Sep 2021 19:46:33 +0200
4
Subject: [PATCH] Detect FP16 on FreeBSD aarch64
5
6
---
7
 modules/core/src/system.cpp | 4 ++--
8
 1 file changed, 2 insertions(+), 2 deletions(-)
9
10
diff --git modules/core/src/system.cpp modules/core/src/system.cpp
11
index d8b8f6755950..df9e8a0ce76f 100644
12
--- modules/core/src/system.cpp
13
+++ modules/core/src/system.cpp
14
@@ -533,7 +533,7 @@ struct HWFeatures
15
         }
16
     #endif // CV_CPUID_X86
17
 
18
-    #if defined __ANDROID__ || defined __linux__
19
+    #if defined __ANDROID__ || defined __linux__ || defined __FreeBSD__
20
     #ifdef __aarch64__
21
         have[CV_CPU_NEON] = true;
22
         have[CV_CPU_FP16] = true;
23
@@ -559,7 +559,7 @@ struct HWFeatures
24
         CV_LOG_INFO(NULL, "- FP16 instructions is NOT enabled via build flags");
25
         #endif
26
       #endif
27
-    #elif defined __arm__
28
+    #elif defined __arm__ && !defined __FreeBSD__
29
         int cpufile = open("/proc/self/auxv", O_RDONLY);
30
 
31
         if (cpufile >= 0)

Return to bug 266211