Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 49 lines (38 sloc) 1.49 KB
#! /bin/sh
PKG=audacity
VERSION=2.4.2
WXVERSION=3.0.5
BUILD=0
# https://github.com/audacity/audacity/archive/refs/tags/Audacity-2.4.2.tar.gz
SRC=https://beehive.molgen.mpg.de/c3769b3ea7f92593c0b5ce0b31fe26f7/Audacity-2.4.2.tar.gz
# https://github.com/wxWidgets/wxWidgets/releases/download/v3.0.5/wxWidgets-3.0.5.tar.bz2
WXSRC=https://beehive.molgen.mpg.de/b4304777652acee8358066cdce5f6f27/wxWidgets-3.0.5.tar.bz2
set -xe
PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin
PREFIX=/pkg/$PKG-$VERSION-$BUILD
if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$VERSION-$BUILD ; fi
mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH} ; fi
EOF
source $PREFIX/profile
mkdir -p $PREFIX/build
cd $PREFIX/build
# start ignoring system wxwidgets, newer audacity uses an own patched version of wxwidgets.
# so if audacity 3+ is 'buildable', this script is ready :)
test -e wxWidgets-$WXVERSION.tar.bz2 || wget --no-verbose $WXSRC
test -d wxWidgets-$WXVERSION || tar -xf wxWidgets-$WXVERSION.tar.bz2
cd wxWidgets-$WXVERSION
./configure --prefix=$PREFIX
nice -12 make -j $(nproc)
make install
cd $PREFIX/build
test -e Audacity-$VERSION.tar.gz || wget --no-verbose $SRC
test -d audacity-Audacity-$VERSION || tar -xf Audacity-$VERSION.tar.gz
mkdir -p audacity-Audacity-$VERSION/build
cd audacity-Audacity-$VERSION/build
cmake -DCMAKE_INSTALL_PREFIX=$PREFIX ..
nice -12 make -j $(nproc)
make install
exit