OS X v10.9 Mavericks (x86_64) + fink-0.36.4

Install packages needed for "FLOW"
First, you have to run the following commands to install some packages.
[~]$ sudo apt-get lua52 lua52-dev cfitsio libpng16 libjpeg
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]$ export PKG_CONFIG_PATH=/sw/lib/pkgconfig
[~/tmp/flow-1.3]$ ./configure --prefix=/sw --with-lua-inc=/sw/include --with-lua-lib=/sw/lib --with-libpng --with-libjpeg=/sw --with-cfitsio=/sw --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