wok-6.x view chromaprint/receipt @ rev 24454
gnustep-back: added dependency icu
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 16 07:53:02 2022 +0100 (2022-02-16) |
parents | 5ea0ce1cecc0 |
children | d77ab883a8b3 |
line source
1 # SliTaz package receipt.
3 PACKAGE="chromaprint"
4 VERSION="1.5.1"
5 CATEGORY="multimedia"
6 SHORT_DESC="Library that implements a custom algorithm for extracting fingerprints from any audio source."
7 MAINTAINER="maintainer@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="ffmpeg gcc83-lib-base libav libvpx"
15 BUILD_DEPENDS="cmake ffmpeg-dev gcc83 libav-dev libvpx-dev libgnutls"
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
31 export CC=gcc-83
32 export CXX=g++-83
33 export LDFLAGS="$LDFLAGS -lvpx"
35 mkdir _build &&
36 cd _build &&
37 cmake .. \
38 -D CMAKE_BUILD_TYPE=Release \
39 -D BUILD_TOOLS=ON \
40 -D CMAKE_INSTALL_PREFIX=/usr &&
41 make &&
42 make install DESTDIR=$DESTDIR
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 cook_copy_folders bin
49 cook_copy_files *.so*
50 }