[arch-commits] Commit in opencv/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Sat Nov 4 21:54:53 UTC 2017


    Date: Saturday, November 4, 2017 @ 21:54:52
  Author: arojas
Revision: 308914

Disable SSE3 instructions (FS#56233)

Modified:
  opencv/trunk/PKGBUILD

----------+
 PKGBUILD |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-04 21:04:31 UTC (rev 308913)
+++ PKGBUILD	2017-11-04 21:54:52 UTC (rev 308914)
@@ -5,7 +5,7 @@
 pkgbase=opencv
 pkgname=('opencv' 'opencv-samples')
 pkgver=3.3.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Open Source Computer Vision Library"
 arch=('i686' 'x86_64')
 license=('BSD')
@@ -41,10 +41,8 @@
             )
 
 # SSE only available from Pentium 3 onwards (i686 is way older)
-[[ "$CARCH" = 'i686' ]] && \
-  _cmakeopts+=('-D ENABLE_SSE=OFF'
-               '-D ENABLE_SSE2=OFF'
-               '-D ENABLE_SSE3=OFF')
+[[ "$CARCH" = 'i686' ]] && _cmakeopts+=('-D CPU_BASELINE_DISABLE=SSE2')
+[[ "$CARCH" = 'x86_64' ]] && _cmakeopts+=('-D CPU_BASELINE_DISABLE=SSE3 -D CPU_BASELINE_REQUIRE=SSE2')
 
 build() {
   mkdir -p build


More information about the arch-commits mailing list