Created
June 14, 2010 17:24
-
-
Save brantfaircloth/437978 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################################ | |
# see http://stackoverflow.com/questions/1477144/compile-matplotlib-for-python-on-snow-leopard # | |
################################################################################################ | |
PREFIX=/usr/local | |
PYTHON=python | |
ZLIBVERSION=1.2.3 | |
PNGVERSION=1.4.2 | |
FREETYPEVERSION=2.3.12 | |
MACOSX_DEPLOYMENT_TARGET=10.6 | |
## You shouldn't need to configure past this point | |
PKG_CONFIG_PATH="${PREFIX}/lib/pkgconfig" | |
CFLAGS="-Os -arch x86_64 -arch i386 -I${PREFIX}/include -I${PREFIX}/include/freetype2" | |
LDFLAGS="-arch x86_64 -arch i386 -L${PREFIX}/lib" | |
CFLAGS_DEPS="-arch i386 -arch x86_64 -I${PREFIX}/include -I${PREFIX}/include/freetype2 -isysroot /Developer/SDKs/MacOSX10.6.sdk" | |
LDFLAGS_DEPS="-arch i386 -arch x86_64 -L${PREFIX}/lib -syslibroot,/Developer/SDKs/MacOSX10.6.sdk" | |
mpl_build: | |
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH} &&\ | |
export MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} &&\ | |
export CFLAGS=${CFLAGS} &&\ | |
export LDFLAGS=${LDFLAGS} &&\ | |
${PYTHON} setup.py build | |
mpl_install: | |
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH} &&\ | |
export MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} &&\ | |
export CFLAGS=${CFLAGS} &&\ | |
export LDFLAGS=${LDFLAGS} &&\ | |
${PYTHON} setup.py install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment