wok-6.x annotate opencv/receipt @ rev 23313
updated perl-datetime-timezone (1.93 -> 2.38)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 30 15:07:38 2020 +0100 (2020-03-30) |
parents | 1e0e339f9dcc |
children | 5ea0ce1cecc0 |
rev | line source |
---|---|
pascal@18788 | 1 # SliTaz package receipt. |
pascal@18788 | 2 |
pascal@18788 | 3 PACKAGE="opencv" |
Hans-G?nter@23262 | 4 VERSION="4.2.0" |
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@21617 | 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@18788 | 18 # Rules to configure and make the package. |
pascal@18788 | 19 compile_rules() |
pascal@18788 | 20 { |
Hans-G?nter@21617 | 21 export CC=gcc-83 |
Hans-G?nter@21617 | 22 export CXX=g++-83 |
Hans-G?nter@23262 | 23 export LDFLAGS="$LDFLAGS -latomic" |
Hans-G?nter@21617 | 24 |
Hans-G?nter@23262 | 25 mkdir build && |
Hans-G?nter@23262 | 26 cd build && |
Hans-G?nter@23262 | 27 cmake .. \ |
Hans-G?nter@23262 | 28 -DCMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@23262 | 29 -DENABLE_PRECOMPILED_HEADERS=OFF && |
pascal@18788 | 30 make && |
pascal@18788 | 31 make DESTDIR=$DESTDIR install |
pascal@18788 | 32 } |
pascal@18788 | 33 |
pascal@18788 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18788 | 35 genpkg_rules() |
pascal@18788 | 36 { |
pascal@18788 | 37 mkdir -p $fs/usr/lib |
Hans-G?nter@21617 | 38 |
Hans-G?nter@21617 | 39 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21617 | 40 cp -a $install/usr/share $fs/usr |
Hans-G?nter@21617 | 41 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@18788 | 42 } |