wok view opencv/receipt @ rev 24081
php-auth-pam: remove patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 09 16:30:40 2021 +0000 (2021-07-09) |
parents | a9d76af45e25 |
children | 82053bab32c1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="opencv"
4 VERSION="4.2.0"
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/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/$VERSION/$TARBALL"
14 DEPENDS="ffmpeg gcc83-lib-base gtk+ jpeg libpng tiff"
15 BUILD_DEPENDS="cmake ffmpeg-dev gcc83 gtk+-dev jpeg-dev libgnutls \
16 libpng-dev tiff-dev"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export CC=gcc-83
28 export CXX=g++-83
29 export LDFLAGS="$LDFLAGS -latomic"
31 mkdir build &&
32 cd build &&
33 cmake .. \
34 -DCMAKE_INSTALL_PREFIX=/usr \
35 -DENABLE_PRECOMPILED_HEADERS=OFF &&
36 make &&
37 make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/share $fs/usr
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 }