Compiling FLAM3 on Mac OS X

See this blog.

I am looking for a way to make this easier, advice from Mac/Linux gurus welcome!

Or install this and then

Or install this

and then issue these commands:

export CFLAGS=-I/Library/Frameworks/UnixImageIO.framework/unix/include
export LDFLAGS=-L/Library/Frameworks/UnixImageIO.framework/unix/lib
./configure --prefix=/usr/local --enable-shared
make
make install

thanks Nick Thompson!