-
Notifications
You must be signed in to change notification settings - Fork 57
/
sdl+libogg+libvorbis+sdl_mixer+vorbis-tools.sh
78 lines (58 loc) · 2.04 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
#!/bin/sh
source ./0_append_distro_path.sh
untar_file SDL2-2.28.5.tar
untar_file libogg-1.3.5.tar
untar_file libvorbis-1.3.7.tar
untar_file SDL2_mixer-2.6.3.tar --exclude=SDL2_mixer-2.6.3/Xcode
untar_file vorbis-tools-1.4.2.tar
cd $X_WORK_DIR
mv SDL2-2.28.5 src
mkdir build dest
cd build
../src/configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 \
--prefix=$X_WORK_DIR/dest --disable-shared
make $X_MAKE_JOBS all "CFLAGS=-s -O3"
make $X_MAKE_JOBS install
cd $X_WORK_DIR
rm -rf build src
mv libogg-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=$X_WORK_DIR/dest --disable-shared
make $X_MAKE_JOBS all "CFLAGS=-s -O3"
make $X_MAKE_JOBS install
cd $X_WORK_DIR
rm -rf build src
mv libvorbis-1.3.7 src
mkdir build
cd build
../src/configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 \
--prefix=$X_WORK_DIR/dest --disable-shared
make $X_MAKE_JOBS all "CFLAGS=-s -O3"
make $X_MAKE_JOBS install
cd $X_WORK_DIR
rm -rf build src
mv SDL2_mixer-2.6.3 src
mkdir build
cd build
../src/configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 \
--prefix=$X_WORK_DIR/dest --disable-shared
# The `-I` options work around bugs in the build system: https://github.com/StephanTLavavej/mingw-distro/issues/98
make $X_MAKE_JOBS all "CFLAGS=-s -O3 -I$X_WORK_DIR/src/include -I$X_WORK_DIR/src/src -I$X_WORK_DIR/src/src/codecs"
make $X_MAKE_JOBS install
cd $X_WORK_DIR
rm -rf build src
mv vorbis-tools-1.4.2 src
mkdir build
cd build
../src/configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 \
--prefix=$X_WORK_DIR/dest --disable-nls
make $X_MAKE_JOBS all "CFLAGS=-s -O3"
make $X_MAKE_JOBS install
cd $X_WORK_DIR
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
7z -mx0 a ../SDL+libogg+libvorbis+SDL_mixer+vorbis-tools.7z *