aboutsummaryrefslogtreecommitdiff
path: root/audio/audacity/audacity.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-06-05 11:22:12 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-06-08 07:39:17 +0700
commit47f0428366e9a35877579a6171ea69614f3cc4a7 (patch)
tree1596d57e7e0da1f137414e3c26b4c200833d0cef /audio/audacity/audacity.SlackBuild
parent90fd0d3c637970da9a9c4af61836711334140492 (diff)
audio/audacity: Updated for version 3.0.2.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/audacity/audacity.SlackBuild')
-rw-r--r--audio/audacity/audacity.SlackBuild94
1 files changed, 44 insertions, 50 deletions
diff --git a/audio/audacity/audacity.SlackBuild b/audio/audacity/audacity.SlackBuild
index 072f1e0fe693a..4ce96b3aa5d5e 100644
--- a/audio/audacity/audacity.SlackBuild
+++ b/audio/audacity/audacity.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for audacity
# Copyright 2006-2010 Chess Griffin <chess@chessgriffin.com>
-# Copyright 2011-2020 Matteo Bernardini <ponce@slackbuilds.org>
+# Copyright 2011-2021 Matteo Bernardini <ponce@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -31,8 +31,8 @@
PRGNAM=audacity
SRCNAM=Audacity
-VERSION=${VERSION:-2.4.1}
-MANVER=${MANVER:-2.4.1}
+VERSION=${VERSION:-3.0.2}
+MANVER=${MANVER:-3.0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -63,12 +63,11 @@ else
LIBDIRSUFFIX=""
fi
-if [ -x /usr/bin/listplugins ]; then do_ladspa="--with-ladspa"; else do_ladspa="--without-ladspa"; 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
-if pkg-config --exists vamp-hostsdk; then do_vamp="-libvamp=system"; else do_vamp="out-libvamp"; fi
-if $(pkg-config --exists lilv-0) && $(pkg-config --exists suil-0); then do_lv2="-lv2=system"; else do_lv2="out-lv2"; fi
+if [ -x /usr/bin/listplugins ]; then do_ladspa="on"; else do_ladspa="off"; fi
+if pkg-config --exists soundtouch; then do_soundtouch="system"; else do_soundtouch="off"; fi
+if pkg-config --exists twolame; then do_twolame="system"; else do_twolame="off"; fi
+if pkg-config --exists vamp-hostsdk; then do_vamp="system"; else do_vamp="off"; fi
+if $(pkg-config --exists lilv-0) && $(pkg-config --exists suil-0); then do_lv2="system"; else do_lv2="off"; fi
set -e
@@ -78,12 +77,15 @@ cd $TMP
rm -rf $PRGNAM-$SRCNAM-$VERSION
tar xvf $CWD/$PRGNAM-$SRCNAM-$VERSION.tar.gz
cd $PRGNAM-$SRCNAM-$VERSION
+mkdir -p build/cmake-proxies/wxWidgets
+( cd build/cmake-proxies/wxWidgets
+ tar xvf $CWD/wxwidgets-audacity-$VERSION.tar.xz )
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# fix vamp plugin search path on x86_64 - thanks to B. Watson
sed -i "s,lib/vamp,lib$LIBDIRSUFFIX/vamp,g" \
@@ -92,43 +94,35 @@ 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 || exit 1
-autoreconf -fi
-
-# libsoxr is the new default resampling library
-LDFLAGS="-L/usr/lib$LIBDIRSUFFIX" \
-CFLAGS="$SLKCFLAGS -fcommon" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --enable-unicode \
- --enable-nyquist \
- --with-expat=system \
- --with-lame=system \
- --with-libvorbis=system \
- --with-libmad=system \
- --with-libflac=system \
- --with-libsndfile=system \
- --with-libid3tag=system \
- --with-libsoxr \
- --with-portaudio \
- $do_ladspa \
- --with$do_ffmpeg \
- --with$do_lv2 \
- --with$do_soundtouch \
- --with$do_twolame \
- --with$do_vamp \
- --without-libresample \
- --without-libsamplerate
-
-# ensure we use the system headers for these: note that we do this after the
-# configure as this last wants to run sub-configures in these dirs
-for i in ffmpeg expat lame libid3tag libflac libmad libresample libsndfile libvamp lv2 soundtouch twolame; do
- rm -rf lib-src/$i
-done
-
-make
-make install DESTDIR=$PKG
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DMAN_INSTALL_DIR=/usr/man \
+ -Daudacity_use_sndfile=system \
+ -Daudacity_use_soxr=system \
+ -Daudacity_use_lame=system \
+ -Daudacity_use_twolame=$do_twolame \
+ -Daudacity_use_flac=system \
+ -Daudacity_use_ladspa=$do_ladspa \
+ -Daudacity_use_vorbis=system \
+ -Daudacity_use_id3tag=system \
+ -Daudacity_use_expat=system \
+ -Daudacity_use_soundtouch=$do_soundtouch \
+ -Daudacity_use_vamp=$do_vamp \
+ -Daudacity_use_lv2=$do_lv2 \
+ -Daudacity_use_midi=system \
+ -Daudacity_use_ogg=system \
+ -Daudacity_use_ffmpeg=loaded \
+ -Daudacity_use_wxwidgets=local \
+ -Daudacity_use_portaudio=local \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true