2 -------------------------------------------------------------------------------
8 unzip zlib123-dll.zip -d zlib123-dll
10 sh install-zlib-1.2.3.sh
12 -------------------------------------------------------------------------------
15 http://www.gnu.org/software/libiconv/
17 # There is a circular dependency between gettext and libiconv. As
18 # suggested by the libiconv documentation, we'll have to build
19 # libiconv, then build gettext and then rebuild libiconv.
22 mingw-configure --disable-nls
23 mingw-make && mingw-make install
27 mingw-configure && mingw-make && mingw-make install
29 -------------------------------------------------------------------------------
32 http://www.gnu.org/software/gettext/
34 # gettext 0.16.1 fails to build with MinGW due to some conflicting
35 # macro definitions. This is fixed in 0.17, but for 0.16.1 you'll
36 # have to apply a patch to gettext-runtime/intl/localename.c[*].
38 # [*] http://cvs.savannah.gnu.org/viewvc/gettext/gettext-runtime/intl/localename.c?root=gettext&r1=1.15&r2=1.16&view=patch
40 # Only build DLLs, no tools nor documentation.
43 mingw-configure --disable-java
44 mingw-make && mingw-make install
46 -------------------------------------------------------------------------------
48 DirectX development headers
49 http://www.libsdl.org/extras/win32/common/
51 # These are not strictly necessary, however, making SDL use
52 # DirectSound significantly reduces audio latency which is
53 # unreasonably high with the WaveOut default.
54 tar -xzf directx-devel.tar.gz -C "$MINGW_PREFIX"
56 -------------------------------------------------------------------------------
59 http://www.libsdl.org/
61 mingw-configure && mingw-make && mingw-make install
63 -------------------------------------------------------------------------------
66 http://www.libsdl.org/projects/SDL_mixer/
68 mingw-configure --disable-music-mp3 --disable-music-ogg-shared
69 mingw-make && mingw-make install
71 -------------------------------------------------------------------------------
74 http://www.libsdl.org/projects/SDL_image/
77 --disable-jpg-shared \
78 --disable-png-shared \
81 mingw-make && mingw-make install
83 -------------------------------------------------------------------------------
86 http://www.libpng.org/pub/png/libpng.html
88 mingw-configure && mingw-make && mingw-make install-strip
90 -------------------------------------------------------------------------------
93 http://gnuwin32.sourceforge.net/packages/jpeg.htm
95 # The headers from upstream have conflicts with some of MinGW's
96 # own headers. After a couple of unsuccessful attempts I have
97 # given up on trying to build libjpeg manually and have decided to
98 # use a version from the GnuWin32 project.
100 # Get the "Binaries" (bin) and "Developer files" (lib) ZIP
103 unzip "$binarchive" bin/jpeg62.dll -d "$MINGW_PREFIX"
104 unzip "$libarchive" 'include/*.h' lib/libjpeg.dll.a -d "$MINGW_PREFIX"
106 -------------------------------------------------------------------------------
109 http://xiph.org/downloads/
111 mingw-configure && mingw-make && mingw-make install
113 -------------------------------------------------------------------------------
116 http://xiph.org/downloads/
118 # There is a bug in libvorbis 1.2.0 (currently fixed in
119 # development code) with library dependencies. Apply changes
120 # suggested in the respective bug report[*], comment out the
121 # ./configure bit in autogen.sh and then run autogen.sh to
122 # regenerate all necessary files.
124 # [*] https://trac.xiph.org/ticket/884#comment:3
126 mingw-configure && mingw-make && mingw-make install
128 -------------------------------------------------------------------------------
131 http://www.freetype.org/
133 # Same problem as libvorbis; fixed in FreeType > v2.3.5.
135 mingw-configure && mingw-make && mingw-make install
137 -------------------------------------------------------------------------------
140 http://www.libsdl.org/projects/SDL_ttf/
142 mingw-configure && mingw-make && mingw-make install
144 -------------------------------------------------------------------------------