aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-05-08 00:19:56 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-05-11 16:18:06 +0000
commit10640799e092efdb6973683b6f3676d00fbba9ce (patch)
treed5da1dd13d367db964e24b2a448f2626244c9c5e /unmaintained
parent640b988f625ce77cdeb7cc8c58bf3ff1a560b01c (diff)
downloadaports-10640799e092efdb6973683b6f3676d00fbba9ce.tar.bz2
aports-10640799e092efdb6973683b6f3676d00fbba9ce.tar.xz
unmaintained/opencv: move from testing
Nobody cares about it since it still needs a rebuild for ffmpeg soname bump, has no maintainer and the only package that consumes it also has no maintainer.
Diffstat (limited to 'unmaintained')
-rw-r--r--unmaintained/opencv/APKBUILD57
1 files changed, 57 insertions, 0 deletions
diff --git a/unmaintained/opencv/APKBUILD b/unmaintained/opencv/APKBUILD
new file mode 100644
index 0000000000..5b35fbb666
--- /dev/null
+++ b/unmaintained/opencv/APKBUILD
@@ -0,0 +1,57 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=opencv
+pkgver=3.2.0
+pkgrel=4
+pkgdesc="Computer vision and machine learning software library"
+url="http://opencv.org"
+arch="all"
+license="BSD"
+depends=""
+depends_dev=""
+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
+ # purge 3rd party except carotene
+ for i in "$builddir"/3rdparty/*; do
+ case $i in
+ */carotene*) continue;;
+ esac
+ rm -rf "$i"
+ done
+}
+
+build() {
+ cd "$builddir"
+ if [ "$CARCH" != "x86_64" ]; then
+ local _sse="-DENABLE_SSE=OFF -DENABLE_SSE2=OFF"
+ fi
+ 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
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+sha512sums="381fc8146722f7eeed5ec6f36a0180f3210a0bc8412f9f9d5d667827241a12709afee6fd42fb6f8b4e0ff4ed96cc645c55590ac89f65c529d4fbb6cd0ee752ed opencv-3.2.0.tar.gz"