osx: add config.py sample for framework build

This commit is contained in:
Dane Springmeyer 2011-08-23 15:47:10 +00:00
parent 09df0f5ef1
commit 3b0b13257f
2 changed files with 32 additions and 1 deletions

29
osx/config_framework.py Normal file
View file

@ -0,0 +1,29 @@
CXX = 'clang++'
CC = 'clang'
CUSTOM_CXXFLAGS = '-arch i386 -arch x86_64 -mmacosx-version-min=10.6 -isysroot /Developer/SDKs/MacOSX10.6.sdk -isystem osx/sources/include'
CUSTOM_LDFLAGS = '-arch i386 -arch x86_64 -headerpad_max_install_names -Wl,-search_paths_first -Wl,-syslibroot,/Developer/SDKs/MacOSX10.6.sdk -Losx/sources/lib '
INPUT_PLUGINS = 'gdal,geos,ogr,osm,postgis,raster,shape,sqlite'
PREFIX = '/Library/Frameworks/Mapnik.framework/Versions/2.0/unix'
PYTHON_PREFIX = '/Library/Frameworks/Mapnik.framework/Versions/2.0/unix'
DESTDIR = '/Users/dane/projects/mapnik-dev/trunk-build/osx/'
PATH_INSERT = './osx/sources/bin/'
BOOST_INCLUDES = 'osx/sources/include'
BOOST_LIBS = 'osx/sources/lib'
BOOST_PYTHON_LIB = 'boost_python32'
PNG_INCLUDES = '/Library/Frameworks/UnixImageIO.framework/unix/include'
PNG_LIBS = '/Library/Frameworks/UnixImageIO.framework/unix/lib'
JPEG_INCLUDES = '/Library/Frameworks/UnixImageIO.framework/unix/include'
JPEG_LIBS = '/Library/Frameworks/UnixImageIO.framework/unix/lib'
TIFF_INCLUDES = '/Library/Frameworks/UnixImageIO.framework/unix/include'
TIFF_LIBS = '/Library/Frameworks/UnixImageIO.framework/unix/lib'
PROJ_INCLUDES = '/Library/Frameworks/PROJ.framework/unix/include'
PROJ_LIBS = '/Library/Frameworks/PROJ.framework/unix/lib'
PKG_CONFIG_PATH = './osx/sources/lib/pkgconfig'
GEOS_CONFIG = '/Library/Frameworks/GEOS.framework/unix/bin/geos-config'
SQLITE_INCLUDES = './osx/sources/include'
SQLITE_LIBS = './osx/sources/lib'
PYTHON = '/Library/Frameworks/Python.framework/Versions/3.2/bin/python3.2m'
PYTHON_DYNAMIC_LOOKUP = True
BINDINGS = 'all'
DEMO = True
PGSQL2SQLITE = True

View file

@ -5,7 +5,7 @@ cd osx/sources
# build icu and boost for packaging up within Mapnik Framework # build icu and boost for packaging up within Mapnik Framework
# local install location # local install location
PREFIX=/Users/dane/projects/mapnik-dev/trunk-build-static/osx/sources PREFIX=/Users/dane/projects/mapnik-dev/trunk-build/osx/sources
mkdir -p $PREFIX mkdir -p $PREFIX
export DYLD_LIBRARY_PATH=$PREFIX/lib export DYLD_LIBRARY_PATH=$PREFIX/lib
# final resting place # final resting place
@ -320,6 +320,8 @@ tar xvf sqlite-autoconf-3070701.tar.gz
cd sqlite-autoconf-3070701 cd sqlite-autoconf-3070701
export CFLAGS="-DSQLITE_ENABLE_RTREE=1 -O3 "$CFLAGS export CFLAGS="-DSQLITE_ENABLE_RTREE=1 -O3 "$CFLAGS
./configure --prefix=$PREFIX --enable-static=yes --enable-shared=no --disable-dependency-tracking ./configure --prefix=$PREFIX --enable-static=yes --enable-shared=no --disable-dependency-tracking
make -j4 && make install
### MAPNIK ### ### MAPNIK ###