summaryrefslogtreecommitdiff
path: root/audio/clam/clam.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/clam/clam.SlackBuild')
-rw-r--r--audio/clam/clam.SlackBuild17
1 files changed, 11 insertions, 6 deletions
diff --git a/audio/clam/clam.SlackBuild b/audio/clam/clam.SlackBuild
index 3e5a01a7bb..2a718dd82e 100644
--- a/audio/clam/clam.SlackBuild
+++ b/audio/clam/clam.SlackBuild
@@ -5,7 +5,7 @@
# Written by B. Watson (yalhcru@gmail.com)
PRGNAM=clam
-VERSION=${VERSION:-1.4.0}
+VERSION=${VERSION:-r15298}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -44,7 +44,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG/usr $OUTPUT # NB: $PKG/usr must exist, not just $PKG
cd $TMP
rm -rf $SRCNAM-$VERSION
-tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+tar xvf $CWD/$SRCNAM-$VERSION.tar.?z*
cd $SRCNAM-$VERSION
chown -R root:root .
find . \
@@ -53,16 +53,19 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# An include is called incorrectly
+patch -p1 < $CWD/wrong_include.patch
+
# Annoying scons script has hard-coded self.lib = self.prefix + '/lib'
if [ "$LIBDIRSUFFIX" != "" ]; then
sed -i "s,/lib\>,/lib$LIBDIRSUFFIX," scons/libs/clam_build_helpers.py
fi
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+CCFLAGS="$SLKCFLAGS" \
+CPPFLAGS="$SLKCFLAGS" \
scons configure \
- with-fftw3=1 \
- release=1 \
+ with_fftw3=yes \
+ release=yes \
prefix=/usr \
prefix_for_packaging=$PKG/usr
@@ -70,6 +73,8 @@ scons
scons install
strip $PKG/usr/lib$LIBDIRSUFFIX/*.so.*.*
+mv $PKG/usr/share/man $PKG/usr/man
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGES examples $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild