Commit f5231f59 authored by Leo's avatar Leo Committed by Natanael Copa

testing/opencv: rebuild for libdc1394

parent a38d1896
......@@ -2,23 +2,19 @@
# Maintainer:
pkgname=opencv
pkgver=3.2.0
pkgrel=4
pkgrel=5
pkgdesc="Computer vision and machine learning software library"
url="http://opencv.org"
url="https://opencv.org"
arch="all"
license="BSD"
depends=""
depends_dev=""
license="BSD-3-Clause"
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"
install=""
subpackages="$pkgname-dev $pkgname-libs"
source="opencv-$pkgver.tar.gz::https://github.com/opencv/opencv/archive/$pkgver.tar.gz"
builddir="$srcdir/opencv-$pkgver"
prepare() {
default_prepare || return 1
default_prepare
# purge 3rd party except carotene
for i in "$builddir"/3rdparty/*; do
case $i in
......@@ -29,7 +25,6 @@ prepare() {
}
build() {
cd "$builddir"
if [ "$CARCH" != "x86_64" ]; then
local _sse="-DENABLE_SSE=OFF -DENABLE_SSE2=OFF"
fi
......@@ -44,14 +39,12 @@ build() {
-DWITH_OPENMP=ON \
-WITH_OPENCL=ON \
-DWITH_IPP=OFF \
$_sse \
|| return 1
make || return 1
$_sse
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
make DESTDIR="$pkgdir" install
}
sha512sums="381fc8146722f7eeed5ec6f36a0180f3210a0bc8412f9f9d5d667827241a12709afee6fd42fb6f8b4e0ff4ed96cc645c55590ac89f65c529d4fbb6cd0ee752ed opencv-3.2.0.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment