curl -ks https://gist.github.com/rnix/4958168/raw/build.sh | bash
Then remember to add the following to the JVM's environment that'll be importing gdal:
export LD_LIBRARY_PATH=${PWD}/.libs:${LD_LIBRARY_PATH}
export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${LD_LIBRARY_PATH}
where ${PWD}
is the gdal/swig/java
directory (unless you install the libraries).
DISCLAIMER
This has only been tested on:
$ sw_vers -productVersion
10.8.2
$ uname -a
Darwin 12.2.1 Darwin Kernel Version 12.2.1: Thu Oct 18 16:32:48 PDT 2012; root:xnu-2050.20.9~2/RELEASE_X86_64 x86_64