wok view chromaprint/receipt @ rev 24133

Up tazinst (115)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 23 15:17:56 2021 +0000 (2021-10-23)
parents abe6b9e04ee5
children 03ffd6e0af81
line source
1 # SliTaz package receipt.
3 PACKAGE="chromaprint"
4 VERSION="1.4.3"
5 CATEGORY="multimedia"
6 SHORT_DESC="Library that implements a custom algorithm for extracting fingerprints from any audio source."
7 MAINTAINER="developer@slitaz.org"
8 LICENSE="LGPLv2+"
9 WEB_SITE="https://acoustid.org/chromaprint"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/acoustid/$PACKAGE/releases/download/v$VERSION/$TARBALL"
14 DEPENDS="libav gcc83-lib-base"
15 BUILD_DEPENDS="cmake ffmpeg-dev libgnutls gcc83"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 #lavc 55.28.1 (2013-12-11)
27 sed -i -e 's|avcodec_alloc_frame|av_frame_alloc|' \
28 -e 's|avcodec_free_frame|av_frame_free|' \
29 src/audio/ffmpeg_audio_reader.h
30 export CC=gcc-83
31 export CXX=g++-83
33 cmake . \
34 -DCMAKE_BUILD_TYPE=Release \
35 -DBUILD_TOOLS=ON \
36 -DCMAKE_INSTALL_PREFIX=/usr &&
37 make &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 }