diff --git a/osx/config_framework.py b/osx/config_framework.py new file mode 100644 index 000000000..99c8dda16 --- /dev/null +++ b/osx/config_framework.py @@ -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 diff --git a/osx/scripts/setup.sh b/osx/scripts/setup.sh index e8742b6d4..59e5ac70f 100644 --- a/osx/scripts/setup.sh +++ b/osx/scripts/setup.sh @@ -5,7 +5,7 @@ cd osx/sources # build icu and boost for packaging up within Mapnik Framework # 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 export DYLD_LIBRARY_PATH=$PREFIX/lib # final resting place @@ -320,6 +320,8 @@ tar xvf sqlite-autoconf-3070701.tar.gz cd sqlite-autoconf-3070701 export CFLAGS="-DSQLITE_ENABLE_RTREE=1 -O3 "$CFLAGS ./configure --prefix=$PREFIX --enable-static=yes --enable-shared=no --disable-dependency-tracking +make -j4 && make install + ### MAPNIK ###