wok-current annotate chromaprint/receipt @ rev 24395
created recipe for py3k-distutils-extra
author | Hans-G?nter Theisgen |
---|---|
date | Tue Feb 08 10:23:22 2022 +0100 (2022-02-08) |
parents | abe6b9e04ee5 |
children | 03ffd6e0af81 |
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@21753 | 4 VERSION="1.4.3" |
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@21753 | 7 MAINTAINER="developer@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 |
pascal@21799 | 14 DEPENDS="libav gcc83-lib-base" |
pascal@21799 | 15 BUILD_DEPENDS="cmake ffmpeg-dev libgnutls gcc83" |
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@21799 | 26 #lavc 55.28.1 (2013-12-11) |
pascal@21799 | 27 sed -i -e 's|avcodec_alloc_frame|av_frame_alloc|' \ |
pascal@21799 | 28 -e 's|avcodec_free_frame|av_frame_free|' \ |
pascal@21799 | 29 src/audio/ffmpeg_audio_reader.h |
Hans-G?nter@21753 | 30 export CC=gcc-83 |
Hans-G?nter@21753 | 31 export CXX=g++-83 |
Hans-G?nter@21753 | 32 |
Hans-G?nter@21753 | 33 cmake . \ |
Hans-G?nter@21753 | 34 -DCMAKE_BUILD_TYPE=Release \ |
Hans-G?nter@21753 | 35 -DBUILD_TOOLS=ON \ |
Hans-G?nter@21753 | 36 -DCMAKE_INSTALL_PREFIX=/usr && |
Hans-G?nter@21753 | 37 make && |
Hans-G?nter@21753 | 38 make DESTDIR=$DESTDIR install |
Hans-G?nter@21753 | 39 } |
Hans-G?nter@21753 | 40 |
Hans-G?nter@21753 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@21753 | 42 genpkg_rules() |
Hans-G?nter@21753 | 43 { |
Hans-G?nter@21753 | 44 mkdir -p $fs/usr/lib |
Hans-G?nter@21753 | 45 |
Hans-G?nter@21753 | 46 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21753 | 47 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@21753 | 48 } |