wok annotate opencv/receipt @ rev 24952
nagios-plugins: new patch
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 23 14:39:05 2022 +0100 (2022-04-23) |
parents | 5ea0ce1cecc0 |
children | 7364ffdaaa60 |
rev | line source |
---|---|
pascal@18788 | 1 # SliTaz package receipt. |
pascal@18788 | 2 |
pascal@18788 | 3 PACKAGE="opencv" |
Hans-G?nter@24165 | 4 VERSION="4.5.5" |
pascal@18788 | 5 CATEGORY="development" |
Hans-G?nter@21617 | 6 SHORT_DESC="Open source computer vision library." |
pascal@18788 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18788 | 8 LICENSE="BSD" |
Hans-G?nter@21617 | 9 WEB_SITE="https://opencv.org/" |
Hans-G?nter@21617 | 10 |
pascal@18788 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21617 | 12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/$VERSION/$TARBALL" |
pascal@18788 | 13 |
Hans-G?nter@23262 | 14 DEPENDS="ffmpeg gcc83-lib-base gtk+ jpeg libpng tiff" |
Hans-G?nter@24165 | 15 BUILD_DEPENDS="cmake ffmpeg-dev gcc83 gtk+-dev jpeg-dev libgnutls |
Hans-G?nter@21617 | 16 libpng-dev tiff-dev" |
pascal@18788 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
pascal@18788 | 24 # Rules to configure and make the package. |
pascal@18788 | 25 compile_rules() |
pascal@18788 | 26 { |
Hans-G?nter@21617 | 27 export CC=gcc-83 |
Hans-G?nter@21617 | 28 export CXX=g++-83 |
Hans-G?nter@23262 | 29 export LDFLAGS="$LDFLAGS -latomic" |
Hans-G?nter@21617 | 30 |
Hans-G?nter@24165 | 31 mkdir _build && |
Hans-G?nter@24165 | 32 cd _build && |
Hans-G?nter@23262 | 33 cmake .. \ |
Hans-G?nter@24165 | 34 -D CMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@24165 | 35 -D ENABLE_PRECOMPILED_HEADERS=OFF && |
pascal@18788 | 36 make && |
Hans-G?nter@24165 | 37 make install DESTDIR=$DESTDIR |
pascal@18788 | 38 } |
pascal@18788 | 39 |
pascal@18788 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18788 | 41 genpkg_rules() |
pascal@18788 | 42 { |
Hans-G?nter@24165 | 43 cook_copy_folders bin |
Hans-G?nter@24165 | 44 cook_copy_folders share |
Hans-G?nter@24165 | 45 cook_copy_files *.so* |
pascal@18788 | 46 } |