1- PYTHON =python
1+ PYTHON =C:/Python26/ python.exe
22SRCDIR =${PWD}
33ZLIBVERSION =1.2.3
44PNGVERSION =1.2.33
@@ -23,12 +23,14 @@ fetch_deps:
2323 wget http://download.savannah.gnu.org/releases/freetype/freetype-${FREETYPEVERSION} .tar.bz2
2424
2525zlib :
26+ rm -rf zlib-${ZLIBVERSION}
2627 tar xvfz zlib-${ZLIBVERSION} .tar.gz
2728 cd zlib-${ZLIBVERSION} && \
2829 ./configure && \
2930 make -j3
3031
3132png : 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
4042freetype :
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
4951dependencies : png freetype
5052
5153installers :
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
6162all : fetch_deps dependencies installers
0 commit comments