summaryrefslogtreecommitdiff
path: root/audio/cmt/cmt.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2011-07-04 10:56:41 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2011-07-04 10:56:41 -0300
commitb935c77f30255e9387e2227a30929a26a31f35a0 (patch)
tree6e76ee2e5e449bbd3889da7cee3fdb9ccbb672be /audio/cmt/cmt.SlackBuild
parent2bcc79b2d7bdeb474a8a3cc8ee19beda1852dbbf (diff)
downloadslackbuilds-b935c77f30255e9387e2227a30929a26a31f35a0.tar.gz
audio/cmt: Added patch to avoid double-free aborts.
Diffstat (limited to 'audio/cmt/cmt.SlackBuild')
-rw-r--r--audio/cmt/cmt.SlackBuild14
1 files changed, 8 insertions, 6 deletions
diff --git a/audio/cmt/cmt.SlackBuild b/audio/cmt/cmt.SlackBuild
index 9ce338dffd..98acc87471 100644
--- a/audio/cmt/cmt.SlackBuild
+++ b/audio/cmt/cmt.SlackBuild
@@ -6,15 +6,13 @@
PRGNAM=cmt
VERSION=${VERSION:-1.16}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -38,8 +36,6 @@ else
LIBDIRSUFFIX=""
fi
-FORCE_SLACK_CFLAGS=${FORCE_SLACK_CFLAGS:-no}
-
set -e
rm -rf $PKG
@@ -56,10 +52,16 @@ find . \
-exec chmod 644 {} \;
chmod 644 doc/*
-if [ "$FORCE_SLACK_CFLAGS" = "yes" ]; then
+if [ "${FORCE_SLACK_CFLAGS:-no}" = "yes" ]; then
sed -i 's/-O3/'"$SLKCFLAGS"'/' src/makefile
fi
+# Fix glibc double-free errors when cmt's sine and ladspa_sdk's sine
+# both get loaded into the same ladspa host. Sent patch upstream, but
+# cmt is "legacy", there hasn't been a release since 2007, so not holding
+# my breath.
+patch -p1 < $CWD/fix_sine.diff
+
make -C src
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/ladspa
make -C src install INSTALL_PLUGINS_DIR=$PKG/usr/lib$LIBDIRSUFFIX/ladspa