pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/opencv opencv: Fix building on i386



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0da1b33109f2
branches:  trunk
changeset: 458130:0da1b33109f2
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Sep 10 12:09:27 2021 +0000

description:
opencv: Fix building on i386

diffstat:

 graphics/opencv/Makefile.common |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 80c573c1b4ba -r 0da1b33109f2 graphics/opencv/Makefile.common
--- a/graphics/opencv/Makefile.common   Fri Sep 10 12:08:51 2021 +0000
+++ b/graphics/opencv/Makefile.common   Fri Sep 10 12:09:27 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.6 2020/08/16 22:18:49 tnn Exp $
+# $NetBSD: Makefile.common,v 1.7 2021/09/10 12:09:27 nia Exp $
 # used by graphics/opencv/Makefile
 # used by graphics/opencv-contrib-face/Makefile
 #
@@ -34,9 +34,17 @@
 CMAKE_ARGS.SunOS+=     -DENABLE_PRECOMPILED_HEADERS=OFF
 CMAKE_ARGS.SunOS+=     -DOPENCV_PYTHON_SKIP_LINKER_EXCLUDE_LIBS=ON
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${MACHINE_ARCH} == "i386"
+# Disable SSE/SSE2 to avoid build errors from missing _mm_pause.
+CMAKE_ARGS+=           -DCPU_BASELINE=""
+.endif
+
 PYTHON_VERSIONS_INCOMPATIBLE=  27      # avoid Python 2.7
 
 pre-configure:
        ${MKDIR} ${WRKSRC}/build
 
+.include "../../mk/atomic64.mk"
 .include "../../lang/python/pyversion.mk"



Home | Main Index | Thread Index | Old Index