svn commit: r553099 - head/graphics/opencv/files

Piotr Kubaj pkubaj at FreeBSD.org
Fri Oct 23 09:02:43 UTC 2020


Author: pkubaj
Date: Fri Oct 23 09:02:42 2020
New Revision: 553099
URL: https://svnweb.freebsd.org/changeset/ports/553099

Log:
  graphics/opencv: fix build of dependent ports on powerpc64le
  
  It's important to first undef the conflicting keywords, then import altivec.h.

Added:
  head/graphics/opencv/files/patch-modules_core_include_opencv2_core_cv__cpu__dispatch.h   (contents, props changed)

Added: head/graphics/opencv/files/patch-modules_core_include_opencv2_core_cv__cpu__dispatch.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/opencv/files/patch-modules_core_include_opencv2_core_cv__cpu__dispatch.h	Fri Oct 23 09:02:42 2020	(r553099)
@@ -0,0 +1,26 @@
+--- modules/core/include/opencv2/core/cv_cpu_dispatch.h.orig	2020-10-23 01:17:26 UTC
++++ modules/core/include/opencv2/core/cv_cpu_dispatch.h
+@@ -108,10 +108,10 @@
+ #endif
+ 
+ #if defined(__VSX__) && defined(__PPC64__) && defined(__LITTLE_ENDIAN__)
+-#  include <altivec.h>
+ #  undef vector
+ #  undef pixel
+ #  undef bool
++#  include <altivec.h>
+ #  define CV_VSX 1
+ #endif
+ 
+@@ -152,10 +152,10 @@ struct VZeroUpperGuard {
+ #  include <arm_neon.h>
+ #  define CV_NEON 1
+ #elif defined(__VSX__) && defined(__PPC64__) && defined(__LITTLE_ENDIAN__)
+-#  include <altivec.h>
+ #  undef vector
+ #  undef pixel
+ #  undef bool
++#  include <altivec.h>
+ #  define CV_VSX 1
+ #endif
+ 


More information about the svn-ports-all mailing list