wok-next view opencv/receipt @ rev 21229
updated clamav (0.99.4 -> 0.101.1)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 03 16:54:38 2019 +0100 (2019-12-03) |
parents | 75632eca5b07 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="opencv"
4 VERSION="3.4.1"
5 CATEGORY="development"
6 SHORT_DESC="Open source computer vision library"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://opencv.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/opencv.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/opencv/opencv/archive/$VERSION.tar.gz"
14 WGET_URL2="https://raw.githubusercontent.com/opencv/opencv_3rdparty/\
15 dfe3162c237af211e98b8960018b564bc209261d/ippicv/\
16 ippicv_2017u3_lnx_intel64_general_20170822.tgz"
17 WGET_URL3="https://github.com/opencv/opencv_contrib/archive/$VERSION/\
18 opencv_contrib-$VERSION.tar.gz"
20 BUILD_DEPENDS="cmake python-dev python-numpy zlib-dev \
21 libjpeg-turbo-dev tiff-dev libpng-dev libwebp-dev jasper-dev openexr-dev \
22 ilmbase-dev gtk2-dev glib-dev gstreamer1-dev gst1-plugins-base-dev \
23 libgphoto2-dev shared-mime-info xine-lib-dev protobuf-dev " # lapack-dev
24 SPLIT="$PACKAGE-dev"
26 DEPENDS_std="libcairo gdk-pixbuf glib gst1-plugins-base gstreamer1 gtk2 jasper \
27 libgphoto2 libjpeg-turbo libpng libwebp openexr libtiff xine-lib zlib"
29 compile_rules() {
30 ipp_file=$SRC/$(basename $WGET_URL2)
31 if [ ! -e "$ipp_file" ]; then
32 wget -O $ipp_file $WGET_URL2
33 fi
34 ipp_hash=$(md5sum $ipp_file | cut -d" " -f1)
35 ipp_dir=.cache/ippicv
36 mkdir -p $ipp_dir
37 cp $ipp_file $ipp_dir/$ipp_hash-$(basename $ipp_file)
39 if [ ! -e "$SRC/$(basename $WGET_URL3)" ]; then
40 wget -P $SRC $WGET_URL3
41 fi
42 tar -xf $SRC/$(basename $WGET_URL3)
45 mkdir build
46 cd build
48 cmake \
49 -DCMAKE_INSTALL_PREFIX=/usr \
50 -DCMAKE_BUILD_TYPE=Release \
51 -DENABLE_CXX11=ON \
52 -DBUILD_PERF_TESTS=OFF \
53 -DWITH_XINE=ON \
54 -DBUILD_TESTS=OFF \
55 -DENABLE_PRECOMPILED_HEADERS=OFF \
56 -DCMAKE_SKIP_RPATH=ON \
57 -DBUILD_WITH_DEBUG_INFO=OFF \
58 -Wno-dev \
59 \
60 .. &&
61 make &&
62 make install || return 1
64 case $ARCH in
65 x86_64) a='intel64';;
66 *) a='ia32';;
67 esac
68 cp -v 3rdparty/ippicv/ippicv_lnx/lib/$a/libippicv.a $install/usr/lib
69 }