aboutsummaryrefslogtreecommitdiff
path: root/misc/openmvg
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2021-11-29 11:35:12 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2021-11-29 11:35:12 +0000
commit8547737a73fad4e4649ca07895c743602e6f731a (patch)
tree5f53c1bf321e27725fdfaefd2066b60eefb1131a /misc/openmvg
parentd6fce2bfd6e19a48689ca8a9c945ac89d0e727e0 (diff)
downloadports-8547737a73fad4e4649ca07895c743602e6f731a.tar.gz
ports-8547737a73fad4e4649ca07895c743602e6f731a.zip
misc/openmvg: fix build on non-x86
Tested on powerpc64, may still have issues on other architectures.
Diffstat (limited to 'misc/openmvg')
-rw-r--r--misc/openmvg/files/patch-openMVG_matching_metric__simd.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/misc/openmvg/files/patch-openMVG_matching_metric__simd.hpp b/misc/openmvg/files/patch-openMVG_matching_metric__simd.hpp
new file mode 100644
index 000000000000..d5b98e1586ad
--- /dev/null
+++ b/misc/openmvg/files/patch-openMVG_matching_metric__simd.hpp
@@ -0,0 +1,12 @@
+--- openMVG/matching/metric_simd.hpp.orig 2021-11-29 11:14:30 UTC
++++ openMVG/matching/metric_simd.hpp
+@@ -17,7 +17,9 @@
+ #include <numeric>
+
+ #include <cstdint>
++#if defined(__amd64__) || defined(__i386__)
+ #include <immintrin.h>
++#endif
+
+ namespace openMVG {
+ namespace matching {