wok annotate chromaprint/receipt @ rev 24985

Add python-future
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 10 07:46:58 2022 +0000 (2022-05-10)
parents 03ffd6e0af81
children fe1b5660fdd1
rev   line source
Hans-G?nter@21753 1 # SliTaz package receipt.
Hans-G?nter@21753 2
Hans-G?nter@21753 3 PACKAGE="chromaprint"
Hans-G?nter@24404 4 VERSION="1.5.1"
Hans-G?nter@21753 5 CATEGORY="multimedia"
Hans-G?nter@21753 6 SHORT_DESC="Library that implements a custom algorithm for extracting fingerprints from any audio source."
Hans-G?nter@24404 7 MAINTAINER="maintainer@slitaz.org"
Hans-G?nter@21753 8 LICENSE="LGPLv2+"
Hans-G?nter@21753 9 WEB_SITE="https://acoustid.org/chromaprint"
Hans-G?nter@21753 10
Hans-G?nter@21753 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21753 12 WGET_URL="https://github.com/acoustid/$PACKAGE/releases/download/v$VERSION/$TARBALL"
Hans-G?nter@21753 13
Hans-G?nter@24404 14 DEPENDS="ffmpeg gcc83-lib-base libav libvpx"
Hans-G?nter@24404 15 BUILD_DEPENDS="cmake ffmpeg-dev gcc83 libav-dev libvpx-dev libgnutls"
Hans-G?nter@21753 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
Hans-G?nter@21753 23 # Rules to configure and make the package.
Hans-G?nter@21753 24 compile_rules()
Hans-G?nter@21753 25 {
pascal@24525 26 sed 's|AV_ERROR_MAX_STRING_SIZE|64|' -i src/audio/ffmpeg_audio_reader.h
Hans-G?nter@24404 27
Hans-G?nter@21753 28 export CC=gcc-83
Hans-G?nter@21753 29 export CXX=g++-83
Hans-G?nter@24404 30 export LDFLAGS="$LDFLAGS -lvpx"
Hans-G?nter@21753 31
Hans-G?nter@24404 32 mkdir _build &&
Hans-G?nter@24404 33 cd _build &&
Hans-G?nter@24404 34 cmake .. \
Hans-G?nter@24404 35 -D CMAKE_BUILD_TYPE=Release \
Hans-G?nter@24404 36 -D BUILD_TOOLS=ON \
Hans-G?nter@24404 37 -D CMAKE_INSTALL_PREFIX=/usr &&
Hans-G?nter@21753 38 make &&
Hans-G?nter@24404 39 make install DESTDIR=$DESTDIR
Hans-G?nter@21753 40 }
Hans-G?nter@21753 41
Hans-G?nter@21753 42 # Rules to gen a SliTaz package suitable for Tazpkg.
Hans-G?nter@21753 43 genpkg_rules()
Hans-G?nter@21753 44 {
Hans-G?nter@24404 45 cook_copy_folders bin
Hans-G?nter@24404 46 cook_copy_files *.so*
Hans-G?nter@21753 47 }