Sox
- First, create a debian wheezy chrootsudo debootstrap --arch=amd64 wheezy ./wheezy/ \ http://ftp.de.debian.org/debian/# enter it, thussudo mount -o bind /dev wheezy/devsudo mount -t proc none wheezy/procsudo chroot wheezycd /tmp # somewhere to do this# update our debian system, and install libmad, # which is what we need for mp3 support in soxapt-get updateapt-get install build-essentialapt-get install libmad0-devapt-get install realpath# now grab sox and its dependenciesmkdir -p depsmkdir -p deps/unpackedmkdir -p deps/builtmkdir -p deps/built/libmadmkdir -p deps/built/soxmkdir -p deps/built/lamewget -O deps/sox-14.4.1.tar.bz2 "http://downloads.sourceforge.net/project/sox/sox/14.4.1/sox-14.4.1.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fsox%2Ffiles%2Fsox%2F14.4.1%2F&ts=1416316415&use_mirror=heanet"wget -O deps/libmad-0.15.1b.tar.gz "http://downloads.sourceforge.net/project/mad/libmad/0.15.1b/libmad-0.15.1b.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmad%2Ffiles%2Flibmad%2F0.15.1b%2F&ts=1416316482&use_mirror=heanet"wget -O deps/lame-3.99.5.tar.gz "http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Flame%2Ffiles%2Flame%2F3.99%2F&ts=1416316457&use_mirror=kent"# unpack the dependenciespushd deps/unpackedtar xvfpj ../sox-14.4.1.tar.bz2tar xvfpz ../libmad-0.15.1b.tar.gztar xvfpz ../lame-3.99.5.tar.gzpopd# build libmad, staticallypushd deps/unpacked/libmad-0.15.1b./configure --disable-shared --enable-static --prefix=$(realpath ../../built/libmad)# Patch makefile to remove -fforce-memsed s/-fforce-mem//g < Makefile > Makefile.patchedcp Makefile.patched Makefilemakemake installpopd# build lame, staticallypushd deps/unpacked/lame-3.99.5./configure --disable-shared --enable-static --prefix=$(realpath ../../built/lame)makemake installpopd# build sox, staticallypushd deps/unpacked/sox-14.4.1./configure --disable-shared --enable-static --prefix=$(realpath ../../built/sox) \ LDFLAGS="-L$(realpath ../../built/libmad/lib) -L$(realpath ../../built/lame/lib)" \ CPPFLAGS="-I$(realpath ../../built/libmad/include) -I$(realpath ../../built/lame/include)" \ --with-mad --with-lame --without-oggvorbis --without-oss --without-sndfile --without-flac --without-gompmake -smake installpopdcp deps/built/sox/bin/sox .rm -rf deps/builtrm -rf deps/unpacked