diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2016-12-28 18:19:25 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-12-31 08:22:30 +0700 |
commit | 5258079ed466dba3f5d121b89fa14a95ff042a32 (patch) | |
tree | 5281ef6cdaa0e407f5e8984db1448fde44bc6b41 /libraries/chromaprint/chromaprint.SlackBuild | |
parent | c48c83548430ef12fe3b9505548c1c46ca85ed88 (diff) | |
download | slackbuilds-5258079ed466dba3f5d121b89fa14a95ff042a32.tar.gz |
libraries/chromaprint: Updated for version 1.4.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/chromaprint/chromaprint.SlackBuild')
-rw-r--r-- | libraries/chromaprint/chromaprint.SlackBuild | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/libraries/chromaprint/chromaprint.SlackBuild b/libraries/chromaprint/chromaprint.SlackBuild index 3e9269f9c8..9a462b2a38 100644 --- a/libraries/chromaprint/chromaprint.SlackBuild +++ b/libraries/chromaprint/chromaprint.SlackBuild @@ -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 |