wok-current diff chromaprint/receipt @ rev 24445

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 14 14:14:23 2022 +0000 (2022-02-14)
parents 5ea0ce1cecc0
children d77ab883a8b3
line diff
     1.1 --- a/chromaprint/receipt	Tue Jun 08 08:46:05 2021 +0000
     1.2 +++ b/chromaprint/receipt	Mon Feb 14 14:14:23 2022 +0000
     1.3 @@ -1,18 +1,18 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="chromaprint"
     1.7 -VERSION="1.4.3"
     1.8 +VERSION="1.5.1"
     1.9  CATEGORY="multimedia"
    1.10  SHORT_DESC="Library that implements a custom algorithm for extracting fingerprints from any audio source."
    1.11 -MAINTAINER="developer@slitaz.org"
    1.12 +MAINTAINER="maintainer@slitaz.org"
    1.13  LICENSE="LGPLv2+"
    1.14  WEB_SITE="https://acoustid.org/chromaprint"
    1.15  
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17  WGET_URL="https://github.com/acoustid/$PACKAGE/releases/download/v$VERSION/$TARBALL"
    1.18  
    1.19 -DEPENDS="libav gcc83-lib-base"
    1.20 -BUILD_DEPENDS="cmake ffmpeg-dev libgnutls gcc83"
    1.21 +DEPENDS="ffmpeg gcc83-lib-base libav libvpx"
    1.22 +BUILD_DEPENDS="cmake ffmpeg-dev gcc83 libav-dev libvpx-dev libgnutls"
    1.23  
    1.24  current_version()
    1.25  {
    1.26 @@ -24,25 +24,27 @@
    1.27  compile_rules()
    1.28  {
    1.29  	#lavc 55.28.1 (2013-12-11)
    1.30 -	sed -i	-e 's|avcodec_alloc_frame|av_frame_alloc|' \
    1.31 -		-e 's|avcodec_free_frame|av_frame_free|' \
    1.32 -			src/audio/ffmpeg_audio_reader.h
    1.33 +	sed -i	-e 's|avcodec_alloc_frame|av_frame_alloc|'	\
    1.34 +		-e 's|avcodec_free_frame|av_frame_free|'	\
    1.35 +		src/audio/ffmpeg_audio_reader.h
    1.36 +
    1.37  	export	CC=gcc-83
    1.38  	export	CXX=g++-83
    1.39 +	export	LDFLAGS="$LDFLAGS -lvpx"
    1.40  
    1.41 -	cmake	.				\
    1.42 -		-DCMAKE_BUILD_TYPE=Release	\
    1.43 -		-DBUILD_TOOLS=ON		\
    1.44 -		-DCMAKE_INSTALL_PREFIX=/usr &&
    1.45 +	mkdir	_build &&
    1.46 +	cd	_build &&
    1.47 +	cmake	..				\
    1.48 +		-D CMAKE_BUILD_TYPE=Release	\
    1.49 +		-D BUILD_TOOLS=ON		\
    1.50 +		-D CMAKE_INSTALL_PREFIX=/usr &&
    1.51  	make &&
    1.52 -	make DESTDIR=$DESTDIR install
    1.53 +	make install DESTDIR=$DESTDIR
    1.54  }
    1.55  
    1.56  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.57  genpkg_rules()
    1.58  {
    1.59 -	mkdir -p $fs/usr/lib
    1.60 -
    1.61 -	cp -a $install/usr/bin		$fs/usr
    1.62 -	cp -a $install/usr/lib/*.so*	$fs/usr/lib
    1.63 +	cook_copy_folders	bin
    1.64 +	cook_copy_files		*.so*
    1.65  }