aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/opencv/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-05-06 13:06:01 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-05-30 15:02:04 +0000
commitf5231f5943bceab314d8b551b6fb79f0572c59a1 (patch)
tree76f060daa9bb83f52dd9dff3defa0e898e66a437 /unmaintained/opencv/APKBUILD
parenta38d1896efd321124a61b1d212cf79f9bbd352d8 (diff)
downloadaports-f5231f5943bceab314d8b551b6fb79f0572c59a1.tar.bz2
aports-f5231f5943bceab314d8b551b6fb79f0572c59a1.tar.xz
testing/opencv: rebuild for libdc1394
Diffstat (limited to 'unmaintained/opencv/APKBUILD')
-rw-r--r--unmaintained/opencv/APKBUILD21
1 files changed, 7 insertions, 14 deletions
diff --git a/unmaintained/opencv/APKBUILD b/unmaintained/opencv/APKBUILD
index 5b35fbb666..cdf71ccbef 100644
--- a/unmaintained/opencv/APKBUILD
+++ b/unmaintained/opencv/APKBUILD
@@ -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"