#!/bin/bash [[ $downloadpath == "" ]] && downloadpath=. soundtoucharchive=soundtouch_v1.2.1.zip # portaudioarchive=portaudio-v19-snapshot-20040310.tar.gz portaudioarchive=pa_snapshot_v19.tar.gz wxarchive=wxGTK-2.5.3.tar.bz2 sndfilearchive=libsndfile-1.0.11.tar.gz wiredarchive=wired-0.1.tar.gz ( echo downloading source archives into $downloadpath cd $downloadpath [[ -f $soundtoucharchive ]] || wget http://sky.prohosting.com/oparviai/soundtouch/$soundtoucharchive [[ -f $portaudioarchive ]] || wget http://portaudio.com/archives/$portaudioarchive [[ -f $wxarchive ]] || wget http://heanet.dl.sf.net/sourceforge/wxwindows/$wxarchive [[ -f $sndfilearchive ]] || wget http://www.mega-nerd.com/libsndfile/$sndfilearchive [[ -f $wiredarchive ]] || wget http://heanet.dl.sf.net/sourceforge/wired/$wiredarchive echo downloading complete ) # setup to build into prefix... wiredprefix=/usr/local/wired-0.1 export LD_LIBRARY_PATH=$wiredprefix/lib:$LD_LIBRARY_PATH export PATH=$wiredprefix/bin:$PATH # extract and build everything... unzip $downloadpath/$soundtoucharchive patch -p0 < soundtouch-wired-float.patch ( soundtouchdir=`unzip -l $downloadpath/$soundtoucharchive | grep "^[^/]*/$" | sed 's/^[ 0-9:\-]*//'` cd $soundtouchdir ./configure --prefix=$wiredprefix make install ) tar xzf $downloadpath/$portaudioarchive ( cd portaudio ./configure --with-alsa --without-jack --prefix=$wiredprefix make install ) tar xjf $downloadpath/$wxarchive ( wxdir=`tar tjf $downloadpath/$wxarchive | head -n 1` cd $wxdir ./configure --enable-gtk2 --prefix=$wiredprefix make install ) tar xzf $downloadpath/$sndfilearchive ( sndfiledir=`tar tzf $downloadpath/$sndfilearchive | head -n 1` cd $sndfiledir ./configure --prefix=$wiredprefix make install ) tar xzf $downloadpath/$wiredarchive ( export INCLUDES=-I$wiredprefix/include/ cd wired ./configure --prefix=$wiredprefix make install )