# Contributor: Carlo Landmeter # Maintainer: setvar pkgname = 'opencv' setvar pkgver = '3.2.0' setvar pkgrel = '3' setvar pkgdesc = ""Computer vision and machine learning software library"" setvar url = ""http://opencv.org"" setvar arch = ""all"" setvar license = ""BSD"" setvar depends = """" setvar depends_dev = """" setvar makedepends = ""cmake ffmpeg-dev libpng-dev libjpeg-turbo-dev tiff-dev jasper-dev libgomp openexr-dev gtk+3.0-dev gtk+-dev gst-plugins-base-dev libgphoto2-dev v4l-utils-dev libwebp-dev libdc1394-dev doxygen"" setvar install = """" setvar subpackages = ""$pkgname-dev $pkgname-libs"" setvar source = ""opencv-$pkgver.tar.gz::https://github.com/opencv/opencv/archive/$pkgver.tar.gz"" setvar builddir = ""$srcdir/opencv-$pkgver"" proc prepare { default_prepare || return 1 # purge 3rd party except carotene for i in "$builddir"/3rdparty/* { case (i) { */carotene* { continue} } rm -rf $i } } proc build { cd $builddir if test $CARCH != "x86_64" { local _sse="-DENABLE_SSE=OFF -DENABLE_SSE2=OFF" } cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ -DENABLE_PRECOMPILED_HEADERS=OFF \ -DWITH_OPENMP=ON \ -WITH_OPENCL=ON \ -DWITH_IPP=OFF \ $_sse \ || return 1 make || return 1 } proc package { cd $builddir make DESTDIR="$pkgdir" install || return 1 } setvar md5sums = ""a43b65488124ba33dde195fea9041b70 opencv-3.2.0.tar.gz"" setvar sha256sums = ""b9d62dfffb8130d59d587627703d5f3e6252dce4a94c1955784998da7a39dd35 opencv-3.2.0.tar.gz"" setvar sha512sums = ""a338f4b4cdebfc2dcd763427b9c9632b3a3b0d072117b8e6367c73ea1ac21f7148553a23c7afbb44b01a48be3be95520789c2de1d6ae230b7b414ee713d3606d opencv-3.2.0.tar.gz""