wok view opencv/receipt @ rev 25804
created recipe for wm-switcher
author | Hans-G?nter Theisgen |
---|---|
date | Wed Nov 13 15:16:07 2024 +0100 (10 days ago) |
parents | 82053bab32c1 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="opencv"
4 VERSION="4.5.5"
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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export CC=gcc-83
29 export CXX=g++-83
30 export LDFLAGS="$LDFLAGS -latomic"
32 mkdir _build &&
33 cd _build &&
34 cmake .. \
35 -D CMAKE_INSTALL_PREFIX=/usr \
36 -D ENABLE_PRECOMPILED_HEADERS=OFF &&
37 make &&
38 make install DESTDIR=$DESTDIR
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 cook_copy_folders bin
45 cook_copy_folders share
46 cook_copy_files *.so*
47 }