summaryrefslogtreecommitdiff
path: root/audio/audacity/audacity.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/audacity/audacity.SlackBuild')
-rw-r--r--audio/audacity/audacity.SlackBuild21
1 files changed, 15 insertions, 6 deletions
diff --git a/audio/audacity/audacity.SlackBuild b/audio/audacity/audacity.SlackBuild
index f15b2b9a51..9f175f5ba2 100644
--- a/audio/audacity/audacity.SlackBuild
+++ b/audio/audacity/audacity.SlackBuild
@@ -1,9 +1,9 @@
#!/bin/sh
-# Slackware build script for Audacity
+# Slackware build script for audacity
# Copyright 2006-2010 Chess Griffin <chess@chessgriffin.com>
-# Copyright 2011-2016 Matteo Bernardini <ponce@slackbuilds.org>
+# Copyright 2011-2017 Matteo Bernardini <ponce@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -31,7 +31,7 @@
PRGNAM=audacity
SRCNAM=Audacity
-VERSION=${VERSION:-2.1.2}
+VERSION=${VERSION:-2.1.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -63,6 +63,7 @@ else
fi
if [ -x /usr/bin/listplugins ]; then do_ladspa="--with-ladspa"; else do_ladspa="--without-ladspa"; fi
+if [ $(which lame) ]; then do_lame="-lame=system"; else do_lame="out-lame"; fi
if pkg-config --exists libavcodec; then do_ffmpeg="-ffmpeg=system"; else do_ffmpeg="out-ffmpeg"; fi
if pkg-config --exists soundtouch; then do_soundtouch="-soundtouch=system"; else do_soundtouch="out-soundtouch"; fi
if pkg-config --exists twolame; then do_twolame="-libtwolame=system"; else do_twolame="out-libtwolame"; fi
@@ -91,6 +92,8 @@ sed -i "s,lib/vamp,lib$LIBDIRSUFFIX/vamp,g" \
# fix building against ffmpeg-2.6.x, patch from archlinux
patch -p1 < $CWD/audacity-ffmpeg.patch
+autoreconf -fi
+
# libsoxr is the new default resampling library
LDFLAGS="-L/usr/lib$LIBDIRSUFFIX" \
CFLAGS="$SLKCFLAGS" \
@@ -109,6 +112,7 @@ CXXFLAGS="$SLKCFLAGS" \
--with-libsoxr \
--with-portaudio \
$do_ladspa \
+ --with$do_lame \
--with$do_ffmpeg \
--with$do_lv2 \
--with$do_soundtouch \
@@ -131,10 +135,10 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
# We're going to overwrite the included audacity.desktop file with ours,
# and the icon isn't added at all by upstream, so we'll do that here
-install -D -m 0644 $CWD/audacity.desktop \
- $PKG/usr/share/applications/audacity.desktop
+install -D -m 0644 $CWD/$PRGNAM.desktop \
+ $PKG/usr/share/applications/$PRGNAM.desktop
install -D -m 0644 images/AudacityLogo48x48.xpm \
- $PKG/usr/share/pixmaps/audacity.xpm
+ $PKG/usr/share/pixmaps/$PRGNAM.xpm
# Move manpage directory to the proper location
mv $PKG/usr/share/man $PKG/usr
@@ -145,6 +149,11 @@ rm -fr $PKG/usr/share/doc
cp LICENSE.txt README.txt todo.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+if [ "${MANUAL:-no}" = "yes" ]; then
+ mkdir -p $PKG/usr/share/$PRGNAM/help/manual
+ unzip $CWD/$PRGNAM-help-$VERSION.zip -d $PKG/usr/share/$PRGNAM/help/manual
+fi
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh