aboutsummaryrefslogtreecommitdiff
path: root/libraries/chromaprint/chromaprint.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2017-01-15 21:07:30 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-01-21 07:04:56 +0700
commitc167683041a6c66f50fa26903efed7f8de77d742 (patch)
treea60495f1601e651c24eb6c33533e1e47e0731aae /libraries/chromaprint/chromaprint.SlackBuild
parent108094b1a3e203115e7f5ae1e9c51e10bbb4cdcc (diff)
libraries/chromaprint: Updated for version 1.4.2.
Thanks to Dominik Drobek for the -DBUILD_TOOLS=ON tip Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/chromaprint/chromaprint.SlackBuild')
-rw-r--r--libraries/chromaprint/chromaprint.SlackBuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/libraries/chromaprint/chromaprint.SlackBuild b/libraries/chromaprint/chromaprint.SlackBuild
index 9a462b2a38e6d..29b800080a68f 100644
--- a/libraries/chromaprint/chromaprint.SlackBuild
+++ b/libraries/chromaprint/chromaprint.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for chromaprint
-# Copyright 2012-2016 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
+# Copyright 2012-2017 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=chromaprint
-VERSION=${VERSION:-1.4}
+VERSION=${VERSION:-1.4.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -54,6 +54,8 @@ else
LIBDIRSUFFIX=""
fi
+if pkg-config --exists libavcodec; then tools="-DBUILD_TOOLS=ON"; else tools=""; fi
+
DOCS="LICENSE.md NEWS.txt README.md"
set -e
@@ -78,6 +80,7 @@ cd build
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ $tools \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG