In the postgis source:
export MACOSX_DEPLOYMENT_TARGET=10.6 export CFLAGS="-Os -arch i386 -arch x86_64" export PG_CPPFLAGS="-arch i386 -arch x86_64" export SHLIB_LINK="-arch i386 -arch x86_64" export LDFLAGS="-arch i386 -arch x86_64" ./configure --with-pgconfig=/usr/local/pgsql/bin/pg_config --mandir=/usr/local/pgsql/man \ --with-geosconfig=/usr/local/bin/geos-config --with-projdir=/usr/local make sudo make install
In the postgis source:
export MACOSX_DEPLOYMENT_TARGET=10.5 export CFLAGS="-Os -arch ppc -arch i386 -arch ppc64 -arch x86_64" export PG_CPPFLAGS="-arch ppc -arch i386 -arch ppc64 -arch x86_64" export SHLIB_LINK="-arch ppc -arch i386 -arch ppc64 -arch x86_64" export LDFLAGS="-arch ppc -arch i386 -arch ppc64 -arch x86_64" ./configure --with-pgconfig=/usr/local/pgsql/bin/pg_config --mandir=/usr/local/pgsql/man \ --with-geosconfig=/usr/local/bin/geos-config --with-projdir=/usr/local make sudo make install
In the postgis source:
export MACOSX_DEPLOYMENT_TARGET=10.4 export CFLAGS="-Os -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" export PG_CPPFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" export SHLIB_LINK="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" export LDFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" ./configure --with-pgconfig=/usr/local/pgsql/bin/pg_config --mandir=/usr/local/pgsql/man \ --with-geosconfig=/usr/local/bin/geos-config --with-projdir=/usr/local make sudo make install
To use the GEOS and PROJ frameworks substitute the following for the geosconfig and prodirdir options:
--with-geosconfig=/Library/Frameworks/GEOS.framework/Programs/geos-config \ --with-projdir=/Library/Frameworks/PROJ.framework/unix
See the Installation section of the README.postgis document.