Skip to content

Commit

Permalink
more win32 build updates
Browse files Browse the repository at this point in the history
svn path=/trunk/matplotlib/; revision=7142
  • Loading branch information
cmoad committed May 25, 2009
1 parent 571c8bc commit e55e833
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions release/win32/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PYTHON=python
PYTHON=C:/Python26/python.exe
SRCDIR=${PWD}
ZLIBVERSION=1.2.3
PNGVERSION=1.2.33
Expand All @@ -23,12 +23,14 @@ fetch_deps:
wget http://download.savannah.gnu.org/releases/freetype/freetype-${FREETYPEVERSION}.tar.bz2

zlib:
rm -rf zlib-${ZLIBVERSION}
tar xvfz zlib-${ZLIBVERSION}.tar.gz
cd zlib-${ZLIBVERSION} &&\
./configure &&\
make -j3

png: zlib
rm -rf libpng-${PNGVERSION}
tar xvfj libpng-${PNGVERSION}.tar.bz2
cd libpng-${PNGVERSION} &&\
export CFLAGS=${CFLAGS} &&\
Expand All @@ -38,24 +40,23 @@ png: zlib
cp .libs/libpng.a .

freetype:
tar xvfj freetype-${FREETYPEVERSION}.tar.bz2 &&\
rm -rf freetype-${FREETYPEVERSION}
tar xvfj freetype-${FREETYPEVERSION}.tar.bz2
cd freetype-${FREETYPEVERSION} &&\
export GNUMAKE=mingw32-make &&\
./configure --disable-shared &&\
GNUMAKE=mingw32-make ./configure --disable-shared &&\
cp builds/win32/w32-mingw32.mk config.mk &&\
mingw32-make -j3 &&\
cp objs/libfreetype.a .

dependencies: png freetype

installers:
tar xvzf matplotlib-${MPLVERSION}.tar.gz &&\
rm -rf matplotlib-${MPLVERSION}
tar xvzf matplotlib-${MPLVERSION}.tar.gz
cd matplotlib-${MPLVERSION} &&\
rm -rf build &&\
cp ../data/setup.cfg . &&\
export CFLAGS=${CFLAGS} &&\
export LDFLAGS=${LDFLAGS} &&\
${PYTHON} setup.py build -c mingw32 bdist_wininst &&\
${PYTHON) setupegg.py build -c mingw32 bdist_egg
${PYTHON} setupegg.py build -c mingw32 bdist_egg

all: fetch_deps dependencies installers
2 changes: 1 addition & 1 deletion release/win32/data/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# build options.

[egg_info]
tag_svn_revision = 0
tag_svn_revision = 1

[status]
# To suppress display of the dependencies and their versions
Expand Down

0 comments on commit e55e833

Please sign in to comment.