wok-next view opencv/receipt @ rev 20454
Choose between libpng16 and libpng12
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 17:32:31 2018 +0200 (2018-02-28) |
parents | d5f9530836a4 |
children | d43bf7aae921 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="opencv"
4 VERSION="3.3.0"
5 CATEGORY="development"
6 SHORT_DESC="Open source computer vision library"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://opencv.org/"
11 WGET_URL="https://github.com/Itseez/opencv/archive/$VERSION.tar.gz"
13 BUILD_DEPENDS="wget cmake gtk+-dev ffmpeg-dev jpeg-dev tiff-dev libpng16-dev"
14 SPLIT="opencv opencv-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 mkdir build && cd build &&
20 cmake .. -DCMAKE_INSTALL_PREFIX=/usr &&
21 make &&
22 make DESTDIR=$DESTDIR install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/lib
29 case $PACKAGE in
30 opencv)
31 DEPENDS="gtk+ ffmpeg jpeg tiff libpng16"
32 cp -a $install/usr/bin $fs/usr
33 cp -a $install/usr/share $fs/usr
34 cp -a $install/usr/lib/*.so* $fs/usr/lib
35 ;;
36 opencv-dev)
37 CAT="development|Open source computer vision library development files"
38 DEPENDS="opencv pkg-config"
39 #cp -a $install/usr/lib/*a $fs/usr/lib
40 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
41 cp -a $install/usr/include $fs/usr
42 ;;
43 esac
44 }