git: 1178870e8181 - main - misc/visp: Fix build on aarch64

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 16 May 2022 18:45:30 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1178870e818160882d919b6b97f83998136a9ac9

commit 1178870e818160882d919b6b97f83998136a9ac9
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-05-16 18:21:25 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-05-16 18:45:25 +0000

    misc/visp: Fix build on aarch64
---
 misc/visp/Makefile                                       |  5 +++--
 misc/visp/distinfo                                       |  4 +++-
 misc/visp/files/patch-3rdparty_simdlib_Simd_SimdEnable.h | 12 ------------
 3 files changed, 6 insertions(+), 15 deletions(-)

diff --git a/misc/visp/Makefile b/misc/visp/Makefile
index f9e4fc648988..d98fef929fb7 100644
--- a/misc/visp/Makefile
+++ b/misc/visp/Makefile
@@ -3,14 +3,15 @@ DISTVERSION=	3.5.0
 CATEGORIES=	misc
 MASTER_SITES=	https://visp-doc.inria.fr/download/releases/
 
+PATCH_SITES=	https://github.com/lagadic/${PORTNAME}/commit/
+PATCHFILES=	ff554ca8be5f43a3470e1cb20150d8171a66b463.patch:-p1 # fix https://github.com/lagadic/visp/issues/1059
+
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Modular library for visual tracking and visual servoing
 
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-BROKEN_aarch64=	fatal error: 'asm/hwcap.h' file not found, see https://github.com/lagadic/visp/issues/1059
-
 LIB_DEPENDS=	libblas.so:math/blas \
 		libboost_system.so:devel/boost-libs \
 		libdmtx.so:graphics/libdmtx \
diff --git a/misc/visp/distinfo b/misc/visp/distinfo
index 415d4898589c..f06e164f9ba8 100644
--- a/misc/visp/distinfo
+++ b/misc/visp/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1651445570
+TIMESTAMP = 1652724151
 SHA256 (visp-3.5.0.zip) = b9ac205091911291bc8e866f3a32d11f2b72389a170ea5f0f309ceb21c131d95
 SIZE (visp-3.5.0.zip) = 54987858
+SHA256 (ff554ca8be5f43a3470e1cb20150d8171a66b463.patch) = c44e3cf58005a060a5190cd84d6e9c20f7e479131f1c6fb05cfdf52a014fa5b8
+SIZE (ff554ca8be5f43a3470e1cb20150d8171a66b463.patch) = 1857
diff --git a/misc/visp/files/patch-3rdparty_simdlib_Simd_SimdEnable.h b/misc/visp/files/patch-3rdparty_simdlib_Simd_SimdEnable.h
deleted file mode 100644
index 99039fe53c56..000000000000
--- a/misc/visp/files/patch-3rdparty_simdlib_Simd_SimdEnable.h
+++ /dev/null
@@ -1,12 +0,0 @@
---- 3rdparty/simdlib/Simd/SimdEnable.h.orig	2021-09-14 12:31:27 UTC
-+++ 3rdparty/simdlib/Simd/SimdEnable.h
-@@ -51,7 +51,9 @@
- #include <fcntl.h>
- #include <sys/auxv.h>
- #if defined(SIMD_ARM_ENABLE) || defined(SIMD_ARM64_ENABLE)
-+#if defined(__linux__)
- #include <asm/hwcap.h>
-+#endif
- #endif
- #endif
- #endif