summaryrefslogtreecommitdiff
path: root/audio/musepack-tools/musepack-tools.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2013-11-19 16:32:44 +0100
committerRobby Workman <rworkman@slackbuilds.org>2013-11-19 15:20:48 -0600
commit1eaf3d5f7a49de4796a24661793e8a196a8fe67a (patch)
tree62cff54ed4749d2bea123dfc7e14d5c000fd078a /audio/musepack-tools/musepack-tools.SlackBuild
parent01f85f918bd8ecb656fce9d3bc50e998e6ed2910 (diff)
downloadslackbuilds-1eaf3d5f7a49de4796a24661793e8a196a8fe67a.tar.gz
audio/musepack-tools: Added a patch to build libmpcdec with cmake.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'audio/musepack-tools/musepack-tools.SlackBuild')
-rw-r--r--audio/musepack-tools/musepack-tools.SlackBuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/audio/musepack-tools/musepack-tools.SlackBuild b/audio/musepack-tools/musepack-tools.SlackBuild
index f95c8b801c..5d6acce494 100644
--- a/audio/musepack-tools/musepack-tools.SlackBuild
+++ b/audio/musepack-tools/musepack-tools.SlackBuild
@@ -6,7 +6,7 @@
PRGNAM=musepack-tools
SRCNAM=musepack_src
VERSION=${VERSION:-r475}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -51,12 +51,15 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# sane defaults (hints from Gentoo)
+patch -p1 < $CWD/musepack-tools-475.patch
+
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_SKIP_RPATH=ON \
+ -DLIB_SUFFIX=$LIBDIRSUFFIX \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG