Kyng Chaos
“The beast is actively interested only in now, and, as it is always now and always shall be, there is an eternity of time for the accomplishment of objects.”
- the wisdom of Tarzan

PostGIS Build

version: 1.4.0
source: postgis.refractions.net

Leopard

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

Tiger

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

Using Frameworks

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

Setup

See the Installation section of the README.postgis document.

macosx/build/postgis.txt (2191 views) · Last modified: 2009/08/08 11:14 by kyngchaos
Copyright © 2004-2009 William Kyngesburye Driven by DokuWiki Recent changes RSS feed