Mac OS X v10.7 Lion (x86_64) + MacPorts 2.1.2


Install packages needed for "FLOW"

First, you have to run the following commands as the administrator to install some packages.
[~]$ export PATH=/opt/local/bin:$PATH
[~]$ sudo port install pkgconfig libpng jpeg cfitsio
Install Lua
Lua must be installed from a source code tar-ball because header files are not installed via MacPorts.

important assuming the working directory is $HOME/tmp.

[~/tmp]$ curl -O http://www.lua.org/ftp/lua-5.2.1.tar.gz
[~/tmp]$ tar zxvf lua-5.2.1.tar.gz
[~/tmp]$ cd lua-5.2.1
[~/tmp/lua-5.2.1]$ make macosx
[~/tmp/lua-5.2.1]$ sudo make install INSTALL_TOP=/opt/local
[~/tmp/lua-5.2.1]$ cd ..

Install SPICE Toolkits for C
Download the SPICE toolkits for C (Mac/Intel, OSX, Apple C, 64bit) from the NAIF SPICE page (http://naif.jpl.nasa.gov/naif/toolkit_C.html), and compile it:
[~/tmp]$ curl -O ftp://naif.jpl.nasa.gov/pub/naif/toolkit/C/MacIntel_OSX_AppleC_64bit/packages/cspice.tar.Z
[~/tmp]$ tar zxvf cspice.tar.Z
[~/tmp]$ cd cspice
[~/tmp/cspice]$ csh makeall.csh
[~/tmp/cspice]$ cd ..

Install "FLOW"
[~/tmp]$ curl -O https://darts.isas.jaxa.jp/planet/tools/flow/flow-1.3.tar.gz
[~/tmp]$ tar zxvf flow-1.3.tar.gz
[~/tmp]$ cd flow-1.3
[~/tmp/flow-1.3]$ ./configure --with-lua-prefix=/opt/local --with-libjpeg=/opt/local --with-cfitsio=/opt/local \
--with-cspice=$HOME/tmp/cspice --enable-wms
[~/tmp/flow-1.3]$ make
[~/tmp/flow-1.3]$ sudo make install

license and policy

darts c-soda isas jaxa