libraries/chromaprint: Updated for version 1.4.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2016-12-28 18:19:25 +01:00 committed by Willy Sudiarto Raharjo
parent c48c835484
commit 5258079ed4
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
3 changed files with 10 additions and 23 deletions

View File

@ -1,5 +1,3 @@
chromaprint (audio fingerprint library)
Chromaprint is the core component of the Acoustid project.
It's a client-side library that implements a custom algorithm for
extracting fingerprints from any audio source.

View File

@ -1,7 +1,8 @@
#!/bin/sh
# Slackware build script for chromaprint
# Copyright Matteo Bernardini <ponce@slackbuilds.org>, 2012-2014
# Copyright 2012-2016 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -22,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=chromaprint
VERSION=${VERSION:-1.2}
VERSION=${VERSION:-1.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -39,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@ -53,14 +54,7 @@ else
LIBDIRSUFFIX=""
fi
# Check for ffmpeg: use it for calculations and build some tools
if pkg-config --exists libavcodec libavformat libavutil ; then
avfft="ON" ; fftw3="OFF" ; examples="ON"
else
avfft="OFF" ; fftw3="ON" ; examples="OFF"
fi
DOCS="COPYING.txt NEWS.txt README.md"
DOCS="LICENSE.md NEWS.txt README.md"
set -e
@ -84,11 +78,6 @@ cd build
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DWITH_AVFFT="$avfft" \
-DWITH_FFTW3="$fftw3" \
-DBUILD_EXAMPLES="$examples" \
-DWITH_KISSFFT="OFF" \
-DWITH_VDSP="OFF" \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG

View File

@ -1,8 +1,8 @@
PRGNAM="chromaprint"
VERSION="1.2"
VERSION="1.4"
HOMEPAGE="http://acoustid.org/chromaprint"
DOWNLOAD="https://bitbucket.org/acoustid/chromaprint/downloads/chromaprint-1.2.tar.gz"
MD5SUM="748da044a8f0ee5f31edec8b67045b3e"
DOWNLOAD="https://bitbucket.org/acoustid/chromaprint/downloads/chromaprint-1.4.tar.gz"
MD5SUM="e2b2c6ac294900c1d71819cce836ebd6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""