Skip to content

Commit e55e833

Browse files
committed
more win32 build updates
svn path=/trunk/matplotlib/; revision=7142
1 parent 571c8bc commit e55e833

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

release/win32/Makefile

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PYTHON=python
1+
PYTHON=C:/Python26/python.exe
22
SRCDIR=${PWD}
33
ZLIBVERSION=1.2.3
44
PNGVERSION=1.2.33
@@ -23,12 +23,14 @@ fetch_deps:
2323
wget http://download.savannah.gnu.org/releases/freetype/freetype-${FREETYPEVERSION}.tar.bz2
2424

2525
zlib:
26+
rm -rf zlib-${ZLIBVERSION}
2627
tar xvfz zlib-${ZLIBVERSION}.tar.gz
2728
cd zlib-${ZLIBVERSION} &&\
2829
./configure &&\
2930
make -j3
3031

3132
png: zlib
33+
rm -rf libpng-${PNGVERSION}
3234
tar xvfj libpng-${PNGVERSION}.tar.bz2
3335
cd libpng-${PNGVERSION} &&\
3436
export CFLAGS=${CFLAGS} &&\
@@ -38,24 +40,23 @@ png: zlib
3840
cp .libs/libpng.a .
3941

4042
freetype:
41-
tar xvfj freetype-${FREETYPEVERSION}.tar.bz2 &&\
43+
rm -rf freetype-${FREETYPEVERSION}
44+
tar xvfj freetype-${FREETYPEVERSION}.tar.bz2
4245
cd freetype-${FREETYPEVERSION} &&\
43-
export GNUMAKE=mingw32-make &&\
44-
./configure --disable-shared &&\
46+
GNUMAKE=mingw32-make ./configure --disable-shared &&\
4547
cp builds/win32/w32-mingw32.mk config.mk &&\
4648
mingw32-make -j3 &&\
4749
cp objs/libfreetype.a .
4850

4951
dependencies: png freetype
5052

5153
installers:
52-
tar xvzf matplotlib-${MPLVERSION}.tar.gz &&\
54+
rm -rf matplotlib-${MPLVERSION}
55+
tar xvzf matplotlib-${MPLVERSION}.tar.gz
5356
cd matplotlib-${MPLVERSION} &&\
5457
rm -rf build &&\
5558
cp ../data/setup.cfg . &&\
56-
export CFLAGS=${CFLAGS} &&\
57-
export LDFLAGS=${LDFLAGS} &&\
5859
${PYTHON} setup.py build -c mingw32 bdist_wininst &&\
59-
${PYTHON) setupegg.py build -c mingw32 bdist_egg
60+
${PYTHON} setupegg.py build -c mingw32 bdist_egg
6061

6162
all: fetch_deps dependencies installers

release/win32/data/setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# build options.
33

44
[egg_info]
5-
tag_svn_revision = 0
5+
tag_svn_revision = 1
66

77
[status]
88
# To suppress display of the dependencies and their versions

0 commit comments

Comments
 (0)