-
Notifications
You must be signed in to change notification settings - Fork 1
/
bakamplayer.sh
executable file
·157 lines (151 loc) · 4.73 KB
/
bakamplayer.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
#!/bin/bash
if [[ $1 == 'x86_64' ]]; then
arch=x86_64
elif [[ $1 == 'i686' ]]; then
arch=i686
else
echo "Please specify either x86_64 or i686 architecture."
exit;
fi
if [[ $arch == 'x86_64' ]]; then
PREFIX=/mingw64
LIBGCC=libgcc_s_seh-1.dll
else
PREFIX=/mingw32
LIBGCC=libgcc_s_dw2-1.dll
fi
# get baka-mplayer
rm -rf Baka-MPlayer.$arch
git clone https://github.com/u8sand/Baka-MPlayer Baka-MPlayer.$arch
cd Baka-MPlayer.$arch
git pull
# build baka-mplayer
QMAKE=$PREFIX/bin/qmake \
./configure \
CONFIG+=embed_translations \
lupdate=$PREFIX/bin/lupdate \
lrelease=$PREFIX/bin/lrelease
mingw32-make -j `grep -c ^processor /proc/cpuinfo`
#release dlls and exe to a new directory
mkdir Baka-MPlayer_$arch
cp build/baka-mplayer.exe Baka-MPlayer_$arch
cp $PREFIX/bin/avcodec-56.dll \
$PREFIX/bin/avdevice-56.dll \
$PREFIX/bin/avfilter-5.dll \
$PREFIX/bin/avformat-56.dll \
$PREFIX/bin/avresample-2.dll \
$PREFIX/bin/avutil-54.dll \
$PREFIX/bin/libass-5.dll \
$PREFIX/bin/libarchive-13.dll \
$PREFIX/bin/libbluray-1.dll \
$PREFIX/bin/libbz2-1.dll \
$PREFIX/bin/libcaca-0.dll \
$PREFIX/bin/libcelt0-2.dll \
$PREFIX/bin/libdvdcss-2.dll \
$PREFIX/bin/libdvdnav-4.dll \
$PREFIX/bin/libdvdread-4.dll \
$PREFIX/bin/libeay32.dll \
$PREFIX/bin/libenca-0.dll \
$PREFIX/bin/libexpat-1.dll \
$PREFIX/bin/libffi-6.dll \
$PREFIX/bin/libfftw3-3.dll \
$PREFIX/bin/libfontconfig-1.dll \
$PREFIX/bin/libfreetype-6.dll \
$PREFIX/bin/libfribidi-0.dll \
$PREFIX/bin/$LIBGCC \
$PREFIX/bin/libglib-2.0-0.dll \
$PREFIX/bin/libgmp-10.dll \
$PREFIX/bin/libgnutls-30.dll \
$PREFIX/bin/libgsm.dll \
$PREFIX/bin/libguess.dll \
$PREFIX/bin/libharfbuzz-0.dll \
$PREFIX/bin/libhogweed-4-1.dll \
$PREFIX/bin/libiconv-2.dll \
$PREFIX/bin/libicudt56.dll \
$PREFIX/bin/libicuin56.dll \
$PREFIX/bin/libicuuc56.dll \
$PREFIX/bin/libidn-11.dll \
$PREFIX/bin/libintl-8.dll \
$PREFIX/bin/libjasper-1.dll \
$PREFIX/bin/libjbig-0.dll \
$PREFIX/bin/libjpeg-8.dll \
$PREFIX/bin/liblcms2-2.dll \
$PREFIX/bin/liblzma-5.dll \
$PREFIX/bin/libmng-2.dll \
$PREFIX/bin/libmodplug-1.dll \
$PREFIX/bin/libmp3lame-0.dll \
$PREFIX/bin/libmpg123-0.dll \
$PREFIX/bin/libnettle-6-1.dll \
$PREFIX/bin/libogg-0.dll \
$PREFIX/bin/libopencore-amrnb-0.dll \
$PREFIX/bin/libopencore-amrwb-0.dll \
$PREFIX/bin/libopenjpeg-5.dll \
$PREFIX/bin/libopus-0.dll \
$PREFIX/bin/liborc-0.4-0.dll \
$PREFIX/bin/libp11-kit-0.dll \
$PREFIX/bin/libpcre16-0.dll \
$PREFIX/bin/libpng16-16.dll \
$PREFIX/bin/librubberband-2.dll \
$PREFIX/bin/librtmp-1.dll \
$PREFIX/bin/libschroedinger-1.0-0.dll \
$PREFIX/bin/libsamplerate-0.dll \
$PREFIX/bin/libspeex-1.dll \
$PREFIX/bin/libstdc++-6.dll \
$PREFIX/bin/libtasn1-6.dll \
$PREFIX/bin/libtheoradec-1.dll \
$PREFIX/bin/libtheoraenc-1.dll \
$PREFIX/bin/libtiff-5.dll \
$PREFIX/bin/libuchardet.dll \
$PREFIX/bin/libvorbis-0.dll \
$PREFIX/bin/libvorbisenc-2.dll \
$PREFIX/bin/libvpx-1.dll \
$PREFIX/bin/libwavpack-1.dll \
$PREFIX/bin/libwebp-5.dll \
$PREFIX/bin/libwinpthread-1.dll \
$PREFIX/bin/libx264-146.dll \
$PREFIX/bin/libx265.dll \
$PREFIX/bin/libxml2-2.dll \
$PREFIX/bin/libzip-4.dll \
$PREFIX/bin/lua51.dll \
$PREFIX/bin/mpv-1.dll \
$PREFIX/bin/libopenal-1.dll \
$PREFIX/bin/postproc-53.dll \
$PREFIX/bin/SDL.dll \
$PREFIX/bin/ssleay32.dll \
$PREFIX/bin/swresample-1.dll \
$PREFIX/bin/swscale-3.dll \
$PREFIX/bin/xvidcore.dll \
$PREFIX/bin/zlib1.dll \
$PREFIX/bin/Qt5Core.dll \
$PREFIX/bin/Qt5Gui.dll \
$PREFIX/bin/Qt5Network.dll \
$PREFIX/bin/Qt5Svg.dll \
$PREFIX/bin/Qt5Widgets.dll \
$PREFIX/bin/liblzo2-2.dll \
$PREFIX/bin/libdcadec-0.dll \
$PREFIX/bin/Qt5WinExtras.dll Baka-MPlayer_$arch
mkdir Baka-MPlayer_$arch/bearer
mkdir Baka-MPlayer_$arch/iconengines
mkdir Baka-MPlayer_$arch/imageformats
mkdir Baka-MPlayer_$arch/platforms
cp $PREFIX/share/qt5/plugins/imageformats/qdds.dll \
$PREFIX/share/qt5/plugins/imageformats/qgif.dll \
$PREFIX/share/qt5/plugins/imageformats/qicns.dll \
$PREFIX/share/qt5/plugins/imageformats/qico.dll \
$PREFIX/share/qt5/plugins/imageformats/qjp2.dll \
$PREFIX/share/qt5/plugins/imageformats/qjpeg.dll \
$PREFIX/share/qt5/plugins/imageformats/qmng.dll \
$PREFIX/share/qt5/plugins/imageformats/qsvg.dll \
$PREFIX/share/qt5/plugins/imageformats/qtga.dll \
$PREFIX/share/qt5/plugins/imageformats/qtiff.dll \
$PREFIX/share/qt5/plugins/imageformats/qwbmp.dll \
$PREFIX/share/qt5/plugins/imageformats/qwebp.dll Baka-MPlayer_$arch/imageformats
cp $PREFIX/share/qt5/plugins/bearer/qgenericbearer.dll \
$PREFIX/share/qt5/plugins/bearer/qnativewifibearer.dll Baka-MPlayer_$arch/bearer
cp $PREFIX/share/qt5/plugins/iconengines/qsvgicon.dll Baka-MPlayer_$arch/iconengines
cp $PREFIX/share/qt5/plugins/platforms/qwindows.dll Baka-MPlayer_$arch/platforms
mkdir Baka-MPlayer_$arch/etc
cp -r $PREFIX/etc/fonts Baka-MPlayer_$arch/etc
cp ../mpv/fonts.conf Baka-MPlayer_$arch/etc/fonts
cp -r ../fonts Baka-MPlayer_$arch
cp -r ../mpv Baka-MPlayer_$arch