Date: Fri, 23 Oct 2020 09:02:42 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r553099 - head/graphics/opencv/files Message-ID: <202010230902.09N92gbl028794@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010230902.09N92gbl028794>