forked from StephanTLavavej/mingw-distro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sdl+libogg+libvorbis+sdl_mixer+vorbis-tools.sh
80 lines (59 loc) · 2.43 KB
/
sdl+libogg+libvorbis+sdl_mixer+vorbis-tools.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/sh
source ./0_append_distro_path.sh
extract_file SDL2-2.0.4.tar
extract_file libogg-1.3.2.tar
extract_file libvorbis-1.3.5.tar
extract_file SDL2_mixer-2.0.1.zip
extract_file vorbis-tools-1.4.0.tar
patch -d /c/temp/gcc/SDL2-2.0.4 -p1 < sdl-clipcursor.patch
cd /c/temp/gcc
mv SDL2-2.0.4 src
mkdir build dest
cd build
../src/configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 \
--prefix=/c/temp/gcc/dest --disable-shared --disable-render-d3d || fail_with SDL 1 - EPIC FAIL
make $X_MAKE_JOBS all "CFLAGS=-s -O3" || fail_with SDL 2 - EPIC FAIL
make install || fail_with SDL 3 - EPIC FAIL
cd /c/temp/gcc
rm -rf build src
mv libogg-1.3.2 src
mkdir build
cd build
../src/configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 \
--prefix=/c/temp/gcc/dest --disable-shared || fail_with libogg 1 - EPIC FAIL
make $X_MAKE_JOBS all "CFLAGS=-s -O3" || fail_with libogg 2 - EPIC FAIL
make install || fail_with libogg 3 - EPIC FAIL
cd /c/temp/gcc
rm -rf build src
mv libvorbis-1.3.5 src
mkdir build
cd build
../src/configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 \
--prefix=/c/temp/gcc/dest --disable-shared || fail_with libvorbis 1 - EPIC FAIL
make $X_MAKE_JOBS all "CFLAGS=-s -O3" || fail_with libvorbis 2 - EPIC FAIL
make install || fail_with libvorbis 3 - EPIC FAIL
cd /c/temp/gcc
rm -rf build src
mv SDL2_mixer-2.0.1 src
mkdir build
cd build
../src/configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 \
--prefix=/c/temp/gcc/dest --disable-shared || fail_with SDL_mixer 1 - EPIC FAIL
make $X_MAKE_JOBS all "CFLAGS=-s -O3" || fail_with SDL_mixer 2 - EPIC FAIL
make install || fail_with SDL_mixer 3 - EPIC FAIL
cd /c/temp/gcc
rm -rf build src
mv vorbis-tools-1.4.0 src
mkdir build
cd build
../src/configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 \
--prefix=/c/temp/gcc/dest --disable-nls || fail_with vorbis-tools 1 - EPIC FAIL
make $X_MAKE_JOBS all "CFLAGS=-s -O3" || fail_with vorbis-tools 2 - EPIC FAIL
make install || fail_with vorbis-tools 3 - EPIC FAIL
cd /c/temp/gcc
rm -rf build src
mv dest SDL+libogg+libvorbis+SDL_mixer+vorbis-tools
cd SDL+libogg+libvorbis+SDL_mixer+vorbis-tools
rm -rf bin/sdl2-config lib/cmake lib/pkgconfig lib/*.la share
for i in bin/*.exe; do mv $i ${i/x86_64-w64-mingw32-}; done
7z -mx0 a ../SDL+libogg+libvorbis+SDL_mixer+vorbis-tools.7z *