Lenard Lindstrom avatar Lenard Lindstrom committed d128f78

Windows prebuilts: Python 2.6 preparation

Comments (0)

Files changed (5)

MakePrebuilt.bat

-@echo off
-rem Make the prebuilt package from the libraries built with
-rem msys_build_deps.py. Takes one optional argument, the
-rem name of the output directory.
-rem
-rem This batch file needs python.exe, pexports.exe
-rem (found in altbinutils-pe at SourceForge,
-rem http://sourceforge.net/projects/mingwrep/) and
-rem Visual C's VCVARS32.BAT in the executables search path.
-rem Otherwise run make_prebuilt.py first, then the batch
-rem files MakeDefs.bat and MakeLibs.bat afterward.
-
-python.exe make_prebuilt.py %1
-if errorlevel 1 goto done
-if "%1"=="" goto useprebuilt
-cd "%1"
-goto domake
-:useprebuilt
-cd prebuilt
-:domake
-cd lib
-CALL Make32.bat
-cd ..\..
-:done
-
-

MakePrebuilt71.bat

+@echo off
+rem Make the prebuilt package from the libraries built with
+rem msys_build_deps.py. Takes one optional argument, the
+rem name of the output directory.
+rem
+rem This batch file needs python.exe, pexports.exe
+rem (found in altbinutils-pe at SourceForge,
+rem http://sourceforge.net/projects/mingwrep/) and
+rem Visual C's VCVARS32.BAT in the executables search path.
+rem Otherwise run make_prebuilt.py first, then the batch
+rem files MakeDefs.bat and MakeLibs.bat afterward.
+
+python.exe make_prebuilt.py %1
+if errorlevel 1 goto done
+if "%1"=="" goto useprebuilt
+copy /Y prebuilt-template\readme71.html "%1\readme.html"
+cd "%1"
+goto domake
+:useprebuilt
+copy /Y prebuilt-template\readme71.html prebuilt\readme.html
+cd prebuilt
+:domake
+cd lib
+CALL Make32.bat
+cd ..\..
+:done
+
+

msys_build_deps.py

 pt = porttime
 
 pmdll = portmidi.dll
+pmlib = libportmidi.a
 pmimplib = libportmidi.dll.a
-pmcomobj = $(pmcom)/portmidi.o $(pmcom)/pmutil.o
-pmwinobj = $(pmwin)/pmwin.o $(pmwin)/pmwinmm.o
-pmobj = $(pmcomobj) $(pmwinobj)
 pmcomsrc = $(pmcom)/portmidi.c $(pmcom)/pmutil.c
 pmwinsrc = $(pmwin)/pmwin.c $(pmwin)/pmwinmm.c
+pmobj = portmidi.o pmutil.o pmwin.o pmwinmm.o
 pmsrc = $(pmcomsrc) $(pmwinsrc)
 pmreqhdr = $(pmcom)/portmidi.h $(pmcom)/pmutil.h
 pmhdr = $(pmreqhdr) $(pmcom)/pminternal.h $(pmwin)/pmwinmm.h
 
-ptobj = $(pt)/porttime.o porttime/ptwinmm.o
 ptsrc = $(pt)/porttime.c porttime/ptwinmm.c
+ptobj = porttime.o ptwinmm.o
 ptreqhdr = $(pt)/porttime.h
 pthdr = $(ptreqhdr)
 
 def = portmidi.def
 
 IHDR := -I$(pmcom) -I$(pmwin) -I$(pt)
-FLAGS := -shared $(CPPFLAGS) $(IHDR) $(CFLAGS)
 LIBS := $(LOADLIBES) $(LDLIBS) -lwinmm
 
 all : $(pmdll)
 .PHONY : all
 
-$(pmdll) : $(src) $(hdr) $(def)
-\t$(CC) $(FLAGS) -Wl,--out-implib,$(pmimplib) $(src) $(def) $(LIBS) -o $@
+$(pmlib) : $(src) $(hdr)
+\t$(CC) $(CPPFLAGS) $(IHDR) -c $(CFLAGS) $(src)
+\tar rc $(pmlib) $(obj)
+\tranlib $(pmlib)
+
+$(pmdll) : $(pmlib) $(def)
+\t$(CC) -shared $(LDFLAGS) -def $(def) $(pmlib) $(LIBS) -o $@
+\tdlltool -D $(pmdll) -d $(def) -l $(pmimplib)
+\tranlib $(pmimplib)
 
 .PHONY : install
 
 install : $(pmdll)
 \tcp -f --target-directory=$(target)/bin $<
+\tcp -f --target-directory=$(target)/lib $(pmlib)
 \tcp -f --target-directory=$(target)/lib $(pmimplib)
 \tcp -f --target-directory=$(target)/include $(reqhdr)
 
 .PHONY : clean
 
 clean :
-\trm -f *.o $(pmdll) $(pmimplib)
+\trm -f $(obj) $(pmdll) $(pmimplib) $(pmlib)
 THE_END
 
   cat > portmidi.def << 'THE_END'

prebuilt-template/readme.html

-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
-<html>
-<head>
-    <title>Prebuilt library sources</title>
-    <style type='text/css'>
-    body {
-      font-family: arial, helvetica, sans-serif;
-      font-size: 1em;
-      color: black;
-      background-color: #aaeebb;
-    }
-
-    h1 {
-      font-size: 2em;
-      color: black;
-      background-color: #c2fc20;
-      text-align: center;
-      border: medium black solid;
-    }
-
-    h4 { 
-      font-size: 1.1em;
-    }
-
-    table { 
-      border-top: 1px solid #888888;
-      border-left: 1px solid #888888;
-      border-spacing: 0px; border-collapse: collapse;
-    }
-
-    td {
-      border-bottom: 1px solid #888888;
-      border-right: 1px solid #888888;
-      padding: 3px;
-    }
-
-    th {
-      background: #eeeeee;
-      border-bottom: 1px solid #888888;
-      border-right: 1px solid #888888;
-      padding: 3px;
-      }
-
-    .footnote { 
-      font-size: 0.9em;
-      font-style: italic;
-    }
-
-    .divider { 
-      line-height: 5;
-    }
-    </style>
-</head>
-<body>
-<h3>pygame dependencies on windows</h3>
-
-<p>
-These dependencies are built for Pygame 1.9.0 and Python 2.4 and later.
-They were built using the <tt>msys_build_deps.py</tt> script included with the Pygame source files.
-The dependencies were compiled and linked with MinGW.
-See the wiki at <a href="http://www.pygame.org/wiki/index">pygame.org</a> for details.
-Their size was reduced using <tt>strip --strip-all</tt>.
-They link to the Windows C library msvcr71.dll, which is provided with Python.
-This list of libraries shows the version used in the prebuilt as well as a link to the actual source bundle used.
-</p>
-
-<table>
-    <tr>
-        <td><a href="http://www.libsdl.org/">SDL 1.2(.13) revision 4114 from SVN</a></td>
-        <td>svn co -r 4114 http://svn.libsdl.org/branches/SDL-1.2</td>
-    </tr>
-    
-    <tr>
-        <td><a href="http://www.zlib.net/">zlib 1.2.3</a></td>
-        <td><a href="http://www.zlib.net/zlib-1.2.3.tar.gz">zlib-1.2.3.tar.gz</a></td>
-    </tr>
-    
-    <tr>
-        <td><a href="http://libpng.sourceforge.net/">libpng 1.2.32</a></td>
-        <td><a href="http://sourceforge.net/project/showfiles.php?group_id=5624">PNG reference library: libpng</a> at <a href="http://sourceforge.net/">SourceForge.net</a></td>
-    </tr>
-    
-    <tr>
-        <td><a href="http://www.ijg.org/">libjpeg 6b</a></td>
-        <td><a href="http://www.ijg.org/files/jpegsrc.v6b.tar.gz">jpegsrc.v6b.tar.gz</a></td>
-    </tr>
-    
-    <tr>
-        <td><a href="http://www.libtiff.org/">libtiff 3.8.2</a></td>
-        <td><a href="ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz">tiff-3.8.2.tar.gz</a></td>
-    </tr>
-    
-    <tr>
-        <td><a href="http://www.libsdl.org/projects/SDL_image/">SDL_image 1.2.6</a></td>
-        <td><a href="http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.6.zip">SDL_image-1.2.6.zip</a></td>
-    </tr>
-    
-    <tr>
-        <td><a href="http://www.freetype.org/">freetype 2.3.7</a></td>
-        <td><a href="http://sourceforge.net/project/showfiles.php?group_id=3157">The FreeType Project</a> at <a href="http://sourceforge.net/">SourceForge.net</a></td>
-    </tr>
-
-    <tr>
-        <td><a href="http://www.libsdl.org/projects/SDL_ttf/">SDL_ttf 2.0.9</a></td>
-        <td><a href="http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.9.zip">SDL_ttf-2.0.9.zip</a></td>
-    </tr>
-
-    <tr>
-        <td><a href="http://www.vorbis.com/">libvorbis 1.2.0</a></td>
-        <td><a href="http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.zip">libvorbis-1.2.0.zip</a></td>
-    </tr>
-
-    <tr>
-        <td><a href="http://www.vorbis.com/">libogg 1.1.3</a></td>
-        <td><a href="http://downloads.xiph.org/releases/ogg/libogg-1.1.3.zip">libogg-1.1.3.zip</a></td>
-    </tr>
-
-    <tr>
-        <td><a href="http://flac.sourceforge.net/">FLAC 1.2.1</a></td>
-        <td><a href="http://sourceforge.net/project/showfiles.php?group_id=13478&amp;package_id=12677">flac-1.2.1-src.tar.gz</a> at <a href="http://sourceforge.net">SourceForge.net</a></td>
-    </tr>
-
-    <tr>
-        <td><a href="http://www.libsdl.org/projects/SDL_mixer/">SDL_mixer (1.2.8) revision 3942 from SVN</a></td>
-        <td>svn co -r 3942 http://svn.libsdl.org/trunk/SDL_mixer SDL_mixer-1.2</td>
-    </tr>
-
-    <tr>
-        <td><a href="http://icculus.org/smpeg/">smpeg revision 370 from SVN</a></td>
-        <td>svn co -r 370 svn://svn.icculus.org/smpeg/trunk smpeg</td>
-    </tr>
-</table>
-</body>
-</html>

prebuilt-template/readme71.html

+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html>
+<head>
+    <title>Prebuilt library sources</title>
+    <style type='text/css'>
+    body {
+      font-family: arial, helvetica, sans-serif;
+      font-size: 1em;
+      color: black;
+      background-color: #aaeebb;
+    }
+
+    h1 {
+      font-size: 2em;
+      color: black;
+      background-color: #c2fc20;
+      text-align: center;
+      border: medium black solid;
+    }
+
+    h4 { 
+      font-size: 1.1em;
+    }
+
+    table { 
+      border-top: 1px solid #888888;
+      border-left: 1px solid #888888;
+      border-spacing: 0px; border-collapse: collapse;
+    }
+
+    td {
+      border-bottom: 1px solid #888888;
+      border-right: 1px solid #888888;
+      padding: 3px;
+    }
+
+    th {
+      background: #eeeeee;
+      border-bottom: 1px solid #888888;
+      border-right: 1px solid #888888;
+      padding: 3px;
+      }
+
+    .footnote { 
+      font-size: 0.9em;
+      font-style: italic;
+    }
+
+    .divider { 
+      line-height: 5;
+    }
+    </style>
+</head>
+<body>
+<h3>pygame dependencies on windows</h3>
+
+<p>
+These dependencies are built for Pygame 1.9.0 and Python 2.4 and later.
+They were built using the <tt>msys_build_deps.py</tt> script included with the Pygame source files.
+The dependencies were compiled and linked with MinGW.
+See the wiki at <a href="http://www.pygame.org/wiki/index">pygame.org</a> for details.
+Their size was reduced using <tt>strip --strip-all</tt>.
+They link to the Windows C library msvcr71.dll, which is provided with Python.
+This list of libraries shows the version used in the prebuilt as well as a link to the actual source bundle used.
+</p>
+
+<table>
+    <tr>
+        <td><a href="http://www.libsdl.org/">SDL 1.2(.13) revision 4114 from SVN</a></td>
+        <td>svn co -r 4114 http://svn.libsdl.org/branches/SDL-1.2</td>
+    </tr>
+    
+    <tr>
+        <td><a href="http://www.zlib.net/">zlib 1.2.3</a></td>
+        <td><a href="http://www.zlib.net/zlib-1.2.3.tar.gz">zlib-1.2.3.tar.gz</a></td>
+    </tr>
+    
+    <tr>
+        <td><a href="http://libpng.sourceforge.net/">libpng 1.2.32</a></td>
+        <td><a href="http://sourceforge.net/project/showfiles.php?group_id=5624">PNG reference library: libpng</a> at <a href="http://sourceforge.net/">SourceForge.net</a></td>
+    </tr>
+    
+    <tr>
+        <td><a href="http://www.ijg.org/">libjpeg 6b</a></td>
+        <td><a href="http://www.ijg.org/files/jpegsrc.v6b.tar.gz">jpegsrc.v6b.tar.gz</a></td>
+    </tr>
+    
+    <tr>
+        <td><a href="http://www.libtiff.org/">libtiff 3.8.2</a></td>
+        <td><a href="ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz">tiff-3.8.2.tar.gz</a></td>
+    </tr>
+    
+    <tr>
+        <td><a href="http://www.libsdl.org/projects/SDL_image/">SDL_image 1.2.6</a></td>
+        <td><a href="http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.6.zip">SDL_image-1.2.6.zip</a></td>
+    </tr>
+    
+    <tr>
+        <td><a href="http://www.freetype.org/">freetype 2.3.7</a></td>
+        <td><a href="http://sourceforge.net/project/showfiles.php?group_id=3157">The FreeType Project</a> at <a href="http://sourceforge.net/">SourceForge.net</a></td>
+    </tr>
+
+    <tr>
+        <td><a href="http://www.libsdl.org/projects/SDL_ttf/">SDL_ttf 2.0.9</a></td>
+        <td><a href="http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.9.zip">SDL_ttf-2.0.9.zip</a></td>
+    </tr>
+
+    <tr>
+        <td><a href="http://www.vorbis.com/">libvorbis 1.2.0</a></td>
+        <td><a href="http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.zip">libvorbis-1.2.0.zip</a></td>
+    </tr>
+
+    <tr>
+        <td><a href="http://www.vorbis.com/">libogg 1.1.3</a></td>
+        <td><a href="http://downloads.xiph.org/releases/ogg/libogg-1.1.3.zip">libogg-1.1.3.zip</a></td>
+    </tr>
+
+    <tr>
+        <td><a href="http://flac.sourceforge.net/">FLAC 1.2.1</a></td>
+        <td><a href="http://sourceforge.net/project/showfiles.php?group_id=13478&amp;package_id=12677">flac-1.2.1-src.tar.gz</a> at <a href="http://sourceforge.net">SourceForge.net</a></td>
+    </tr>
+
+    <tr>
+        <td><a href="http://www.libsdl.org/projects/SDL_mixer/">SDL_mixer (1.2.8) revision 3942 from SVN</a></td>
+        <td>svn co -r 3942 http://svn.libsdl.org/trunk/SDL_mixer SDL_mixer-1.2</td>
+    </tr>
+
+    <tr>
+        <td><a href="http://icculus.org/smpeg/">smpeg revision 370 from SVN</a></td>
+        <td>svn co -r 370 svn://svn.icculus.org/smpeg/trunk smpeg</td>
+    </tr>
+
+    <tr>
+        <td><a href="http://portmedia.sourceforge.net/">PortMidi release 82</a></td>
+        <td><a href="http://sourceforge.net/project/showfiles.php?group_id=196750">portmidi-src-82.zip</a> at <a href="http://sourceforge.net">SourceForge.net</a></td>
+    </tr>
+</table>
+</body>
+</html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.