1. portaudio

    Get portaudio-hotplug branch and apply the portaudio-hotplug-os patch:
    $ svn co https://subversion.assembla.com/svn/portaudio/portaudio/branches/hotplug/
    $ patch -p0 < portaudio-hotplug-os.patch
    $ autoreconf -i (OS X and Linux only)

    - Linux/FreeBSD
    pa_linux_alsa.c-by-Werner.patch (already in portaudio-hotplug-os.patch)
    pa_linux_alsa.c-fix-blocked-renderer.patch (already in portaudio-hotplug-os.patch)
    $ ./configure --disable-shared --enable-static --with-pic --with-jack=no && make/gmake 

    - Mac OS X
    $ export MACOSX_DEPLOYMENT_TARGET=10.4
    $ ./configure --disable-shared --enable-static --with-pic && make

    - Windows
    Download directx devpack for MinGW at http://www.dgrigoriadis.net/post/2004/06/26/DirectXDevPak-for-Dev-Cpp.aspx and
    extract it.
    
    $ DXDIR=/path/to/directx_dev_pack_directory
    $ ./configure --disable-shared --enable-static --with-pic --with-dxdir=$DXDIR --with-winapi=wmme,directx,wdmks && make

2. speex
    - Linux/FreeBSD, Windows
    $ ./configure --disable-shared --enable-static --with-pic && make/gmake

    - Mac OS X
    $ export MACOSX_DEPLOYMENT_TARGET=10.4
    $ export CC="gcc -arch i386 -arch x86_64 -mmacosx-version-min=10.4"
    $ export CPP="gcc -E"
    $ ./configure --disable-shared --enable-static --with-pic && make

3. jnportaudio
    - Linux/FreeBSD, Mac OS X, Windows
    $ make/gmake
