File tree Expand file tree Collapse file tree 3 files changed +23
-9
lines changed
Expand file tree Collapse file tree 3 files changed +23
-9
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,12 @@ pyback:
2828 tar cvfz pyback.tar.gz * .py lib src examples/* .py unit/* .py
2929
3030
31- build_osx105 :
31+ _build_osx105 :
3232 CFLAGS=" -Os -arch i386 -arch ppc" LDFLAGS=" -Os -arch i386 -arch ppc" python setup.py build
3333
34+ build_osx105 :
35+ echo " Use 'make -f fetch deps mpl_install instead'"
36+
3437
3538jdh_doc_snapshot :
3639 svn up; \
Original file line number Diff line number Diff line change 1+ Build mpl on OSX has proven to be a nightmare because of all the
2+ different types of zlib, png and freetype that may be on your system.
3+ The recommended and supported way to build is to use the make.osx file
4+ in this directory. This script requires you to set a PREFIX
5+ environment variable where you want to the install to go. It will
6+ fetch the dependencies from a remove server and install them into your
7+ PREFIX dir, and then build mpl against them. It should ignore any
8+ lib, png or freetype on your system
9+
10+ Example usage::
11+
12+ PREFIX=/Users/jdhunter/dev make -f make.osx fetch deps mpl_install
13+
Original file line number Diff line number Diff line change 1- PREFIX=/Users/jdh2358/dev
1+ # build mpl into a local install dir with
2+ # PREFIX=/Users/jdhunter/dev make -f make.osx fetch deps mpl_install
3+
24PYVERSION=2.6
35PYTHON=python${PYVERSION}
4- SRCDIR=${PWD}
56ZLIBVERSION=1.2.3
67PNGVERSION=1.2.33
78FREETYPEVERSION=2.3.7
8- MPLVERSION=0.99.0
9- BDISTMPKGVERSION=0.4.4
10- MPLSRC=matplotlib-${MPLVERSION}
119MACOSX_DEPLOYMENT_TARGET=10.4
1210
1311## You shouldn't need to configure past this point
2624 zlib-${ZLIBVERSION} libpng-${PNGVERSION} freetype-${FREETYPEVERSION}
2725
2826fetch:
29- python -c 'import urllib; urllib.urlretrieve("http://www.zlib.net/zlib-${ZLIBVERSION}.tar.gz", "zlib-${ZLIBVERSION}.tar.gz")' &&\
30- python -c 'import urllib; urllib.urlretrieve("http://internap.dl.sourceforge.net/sourceforge/libpng/libpng-${PNGVERSION}.tar.bz2", "libpng-${PNGVERSION}.tar.bz2")' &&\
31- python -c 'import urllib; urllib.urlretrieve("http://download.savannah.gnu.org/releases/freetype/freetype-${FREETYPEVERSION}.tar.bz2", "freetype-${FREETYPEVERSION}.tar.bz2")'
27+ ${PYTHON} -c 'import urllib; urllib.urlretrieve("http://www.zlib.net/zlib-${ZLIBVERSION}.tar.gz", "zlib-${ZLIBVERSION}.tar.gz")' &&\
28+ ${PYTHON} -c 'import urllib; urllib.urlretrieve("http://internap.dl.sourceforge.net/sourceforge/libpng/libpng-${PNGVERSION}.tar.bz2", "libpng-${PNGVERSION}.tar.bz2")' &&\
29+ ${PYTHON} -c 'import urllib; urllib.urlretrieve("http://download.savannah.gnu.org/releases/freetype/freetype-${FREETYPEVERSION}.tar.bz2", "freetype-${FREETYPEVERSION}.tar.bz2")'
3230
3331
3432
You can’t perform that action at this time.
0 commit comments