Skip to content

Commit 2da4663

Browse files
committed
tweaks to os x
svn path=/branches/v0_99_maint/; revision=7533
1 parent a4bd1ca commit 2da4663

File tree

3 files changed

+23
-9
lines changed

3 files changed

+23
-9
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff 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

3538
jdh_doc_snapshot:
3639
svn up;\

README.osx

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+

make.osx

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
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+
24
PYVERSION=2.6
35
PYTHON=python${PYVERSION}
4-
SRCDIR=${PWD}
56
ZLIBVERSION=1.2.3
67
PNGVERSION=1.2.33
78
FREETYPEVERSION=2.3.7
8-
MPLVERSION=0.99.0
9-
BDISTMPKGVERSION=0.4.4
10-
MPLSRC=matplotlib-${MPLVERSION}
119
MACOSX_DEPLOYMENT_TARGET=10.4
1210

1311
## You shouldn't need to configure past this point
@@ -26,9 +24,9 @@ clean:
2624
zlib-${ZLIBVERSION} libpng-${PNGVERSION} freetype-${FREETYPEVERSION}
2725

2826
fetch:
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

0 commit comments

Comments
 (0)