Notes by John Nelson G4KLA
9 August 2009
(with acknowledgment to Joe Large W6CQZ for breaking the ground.)
This guide is intended for use with Mac OS X 10.4 or 10.5 on either PowerPC or Intel CPUs.  There is a separate guide for Snow Leopard (10.6)
Current Macs arrive with Python 2.5 already installed but with old versions of other infrastructure. 
We will come to this later.   Hint:  I suggest you ensure that your path environment parameter contains 
the current directory as "."  Please note that you will most likely find later versions of software than those mentioned here.  Use them.
Step 1. You need to install the Mac Developer Tool - Xcode.   Visit 
http://developer.apple.com/support/mac/tools  and create a (free) ADC account
then visit the Developer Tools in the downloads section and get the latest release 
of Xcode Developer Tools.  You now have most compilers, but not Fortran.
Step 2. There are several versions that are available but I recommend
http://r.research.att.com/tools.   At the time of writing the latest version is 
gfortan-4.2-5566-darwin9.tar.gz.   Download this and copy to the root directory / 
and, after logging in as root (type su), untar the file.  Exit from root (type exit).
Step 3. Now you have the basic Mac infrastructure.  Next you need support for
python and WSJT code. I suggest you make an installation directory such as WSJT/Installation
into which these various downloads will be kept. 
Fast Fourier Transform library  Visit http://www.fftw.org and get the 
latest release which is currently fftw-3.2.2.tar.gz. A useful way to untar a file and  to keep the 
original download is:  "gzip -dc fftw-3.2.2.tar.gz | tar -xvf -" (without the quotes, of course). 
Then: 
   cd  fftw-3.2.2
  configure --enable-float
 make
  sudo make install
Numpy  Change back to the Installation directory and get numpy as follows: 
Visit http://www.scipy.org/Download and get the official release from SourceForge. 
This is 1.3.0 and select numpy-1.3.0.tar.gz.  Untar this and then:
cd numpy
 python setup.py build
  sudo python setup.py install  
This will create /Library/Python/2.5/site-packages/numpy.
Scipy  Before you install scipy, there is a fix that needs to be made to the basic Mac OS X 
installation.  An older version of numpy (1.0.1) is installed in the /System/Library and scipy cannot be
built against this version.   Login as root (type su) cd to /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python 
and rename the numpy directory:  mv numpy numpy_old  and then link to the new version like this: 
"ln -s /Library/Python/2.5/site-packages/numpy numpy" without the quotes.  Exit from root (type exit).
Now you can get scipy.  Change back to the Installation directory. 
Visit http://www.scipy.org/Download and get the official release from SourceForge.
This is scipy-0.7.1.tar.gz.  Untar this and then: 
cd scipy
 setenv MACOSX_DEPLOYMENT_TARGET 10.5 
python setup.py build_src build_clib --fcompiler=gnu95 build_ext --fcompiler=gnu95; 
sudo python setup.py install 
(Other advice can be found at http://www.scipy.org/Installing_SciPy/Mac_OS_X)
Imaging Change back to the Installation directory and visit http://www.pythonware.com/products/pil/ and download  the Imaging library (version 0.1.6) for all platforms.   Untar this file and then: 
cd Imaging-1.1.6
 python setup.py build
 sudo python setup.py install 
libsamplerate Change back to the Installation directory and visit http://www.mega-nerd.com/SRC/download.html and download libsamplerate-0.1.7.tar.gz.  Untar this file and then: 
cd libsamplerate-0.1.7
 configure
 make
 sudo make install 
portaudio Change back to the Installation directory and visit http://www.portaudio.com/archives/ and download pa_snapshot_v19.tar.gz 
This is the version I use.   There is another v19 issue at http://www.portaudio.com/download.html but I havn't tested this.
Untar this file and then: 
 cd portaudio
 configure
 make
 sudo make install 
Step 4 Hopefully you will not have to repeat these procedures again.  Next step is to compile WSJT code.
To get the latest version change back to the Installation directory and then  svn co svn://svn.berlios.de/wsjt/trunk 
I suggest you use an editor (e.g.vi) to look at trunk/wsjt.py and find Version.  This is currently 7.04 revsion 1316 and then rename trunk:
mv trunk wsjt-v7.04-r1316
  
Now
 cd wsjt-v7.04-r1316
 configure --with-portaudio-lib-dir=/usr/local/lib --with-portaudio-include-dir=/usr/local/include
 make 
This should generate the complete package without errors.  If you are successful, the final line will read:  mv Audio.so WsjtMod 
Finally (!!!!) type    python wsjt.py and you should be in business. 
I use the SignaLink USB interface to a TS870 (for HF) and TS790 (for 2m EME) and this works perfectly with WSJT/WSPR
Last point If you find errors or omissions in this document, or improvements, please let me know.   g4kla at rmnjmn dot demon dot co dot uk