mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
libraries/chromaprint: Updated for version 1.2.
Re-enabled optional ffmpeg support. Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
0b06f43bd0
commit
824f66f1ae
3 changed files with 14 additions and 15 deletions
|
@ -4,6 +4,6 @@ Chromaprint is the core component of the Acoustid project.
|
||||||
It's a client-side library that implements a custom algorithm for
|
It's a client-side library that implements a custom algorithm for
|
||||||
extracting fingerprints from any audio source.
|
extracting fingerprints from any audio source.
|
||||||
|
|
||||||
ffmpeg is an optional dependency: it's used in place of fftw3 for
|
ffmpeg is an optional dependency: if present it's used in place
|
||||||
calcs and some extra tools are built. But it's *broken* ATM (so
|
of fftw3 for calcs and the utility fpcalc is included in the
|
||||||
it's disabled in the script).
|
resulting package.
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=chromaprint
|
PRGNAM=chromaprint
|
||||||
VERSION=${VERSION:-1.1}
|
VERSION=${VERSION:-1.2}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -55,14 +55,12 @@ fi
|
||||||
|
|
||||||
# Check for ffmpeg: use it for calculations and build some tools
|
# Check for ffmpeg: use it for calculations and build some tools
|
||||||
if pkg-config --exists libavcodec libavformat libavutil ; then
|
if pkg-config --exists libavcodec libavformat libavutil ; then
|
||||||
# this is disabled until compatible with our ffmpeg
|
avfft="ON" ; fftw3="OFF" ; examples="ON"
|
||||||
#tools="ON" ; avfft="ON" ; fftw3="OFF"
|
|
||||||
tools="OFF" ; avfft="OFF" ; fftw3="ON"
|
|
||||||
else
|
else
|
||||||
tools="OFF" ; avfft="OFF" ; fftw3="ON"
|
avfft="OFF" ; fftw3="ON" ; examples="OFF"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DOCS="COPYING.txt NEWS.txt README.txt"
|
DOCS="COPYING.txt NEWS.txt README.md"
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@ -75,7 +73,7 @@ cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
|
@ -88,8 +86,9 @@ cd build
|
||||||
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
|
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
|
||||||
-DWITH_AVFFT="$avfft" \
|
-DWITH_AVFFT="$avfft" \
|
||||||
-DWITH_FFTW3="$fftw3" \
|
-DWITH_FFTW3="$fftw3" \
|
||||||
-DBUILD_TOOLS="$tools" \
|
-DBUILD_EXAMPLES="$examples" \
|
||||||
-DBUILD_EXAMPLES="ON" \
|
-DWITH_KISSFFT="OFF" \
|
||||||
|
-DWITH_VDSP="OFF" \
|
||||||
-DCMAKE_BUILD_TYPE=Release ..
|
-DCMAKE_BUILD_TYPE=Release ..
|
||||||
make
|
make
|
||||||
make install DESTDIR=$PKG
|
make install DESTDIR=$PKG
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="chromaprint"
|
PRGNAM="chromaprint"
|
||||||
VERSION="1.1"
|
VERSION="1.2"
|
||||||
HOMEPAGE="http://acoustid.org/chromaprint"
|
HOMEPAGE="http://acoustid.org/chromaprint"
|
||||||
DOWNLOAD="https://bitbucket.org/acoustid/chromaprint/downloads/chromaprint-1.1.tar.gz"
|
DOWNLOAD="https://bitbucket.org/acoustid/chromaprint/downloads/chromaprint-1.2.tar.gz"
|
||||||
MD5SUM="6db0b5240231b7d2e6628f49fc765b4a"
|
MD5SUM="748da044a8f0ee5f31edec8b67045b3e"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES=""
|
||||||
|
|
Loading…
Reference in a new issue