17
|
1 #!/bin/bash
|
|
2
|
|
3 echo "==========================================="
|
|
4 echo " Welcome to the MPlayer configuration tool "
|
|
5 echo "==========================================="
|
|
6 echo " We'll ask you some questions on how you "
|
|
7 echo " want your mplayer to be compiled. "
|
|
8 echo "==========================================="
|
|
9 echo ""
|
|
10 echo ""
|
|
11
|
|
12 echo "Where should the X11 libraries be found?"
|
|
13 echo "[enter=auto]"
|
|
14 read X11L
|
|
15
|
|
16 echo "Where should the win32 Codecs be fould?"
|
|
17 echo "[enter=auto]"
|
|
18 read W32
|
|
19
|
|
20 echo "Which default screen width would you like?"
|
|
21 echo "[enter=default]"
|
|
22 read X
|
|
23
|
|
24 echo "Which default screen height would you like?"
|
|
25 echo "[enter=default]"
|
|
26 read Y
|
|
27
|
|
28 echo "Would you like MMX support enabled?"
|
|
29 echo "[Y/A(auto)]"
|
|
30 read MMX
|
|
31
|
|
32 echo "Would you like 3dnow support enabled?"
|
|
33 echo "[Y/A(auto)]"
|
|
34 read DNOW
|
|
35
|
|
36 echo "Would you like SSE support enabled?"
|
|
37 echo "[Y/A(auto)]"
|
|
38 read SSE
|
|
39
|
|
40 echo "Would you like OpenGL support enabled?"
|
|
41 echo "[Y/A(auto)]"
|
|
42 read GL
|
|
43
|
|
44 echo "Would you like SDL support enabled?"
|
|
45 echo "[Y/A(auto)]"
|
|
46 read SDL
|
|
47
|
|
48 echo "Would you like MGA support enabled?"
|
|
49 echo "[Y/A(auto)]"
|
|
50 read MGA
|
|
51
|
|
52 echo "Would you like XMGA support enabled?"
|
|
53 echo "[Y/A(auto)]"
|
|
54 read XMGA
|
|
55
|
|
56 echo "Would you like XV support enabled?"
|
|
57 echo "[Y/A(auto)]"
|
|
58 read XV
|
|
59
|
|
60 echo "Would you like X11 support enabled?"
|
|
61 echo "[Y/A(auto)]"
|
|
62 read X11
|
|
63
|
|
64 echo "Would you like MLIB support enabled? (ONLY Solaris)"
|
|
65 echo "[Y/A(auto)]"
|
|
66 read MLIB
|
|
67
|
|
68 echo "Would you like to use the termcap database for key codes?"
|
|
69 echo "[Y/N]"
|
|
70 read TERMCAP
|
|
71
|
|
72 echo "Would you like to use the XMMP audio drivers?"
|
|
73 echo "[Y/N]"
|
|
74 read XMMP
|
|
75
|
|
76 echo "Would you like to enable LIRC support?"
|
|
77 echo "[Y/N]"
|
|
78 read LIRC
|
|
79
|
|
80 CMD=" "
|
|
81
|
|
82 if [ "$MMX" = "Y" ]; then
|
|
83 CMD="$CMD --enable-mmx"
|
|
84 fi
|
|
85
|
|
86 if [ "$DNOW" = "Y" ]; then
|
|
87 CMD="$CMD --enable-3dnow"
|
|
88 fi
|
|
89
|
|
90 if [ "$SSE" = "Y" ]; then
|
|
91 CMD="$CMD --enable-sse"
|
|
92 fi
|
|
93
|
|
94 if [ "$GL" = "Y" ]; then
|
|
95 CMD="$CMD --enable-gl"
|
|
96 fi
|
|
97
|
|
98 if [ "$SDL" = "Y" ]; then
|
|
99 CMD="$CMD --enable-sdl"
|
|
100 fi
|
|
101
|
|
102 if [ "$MGA" = "Y" ]; then
|
|
103 CMD="$CMD --enable-mga"
|
|
104 fi
|
|
105
|
|
106 if [ "$XMGA" = "Y" ]; then
|
|
107 CMD="$CMD --enable-xmga"
|
|
108 fi
|
|
109
|
|
110 if [ "$XV" = "Y" ]; then
|
|
111 CMD="$CMD --enable-xv"
|
|
112 fi
|
|
113
|
|
114 if [ "$X11" = "Y" ]; then
|
|
115 CMD="$CMD --enable-x11"
|
|
116 fi
|
|
117
|
|
118 if [ "$TERMCAP" = "Y" ]; then
|
|
119 CMD="$CMD --enable-termcap"
|
|
120 fi
|
|
121
|
|
122 if [ "$XMMP" = "Y" ]; then
|
|
123 CMD="$CMD --enable-xmmp"
|
|
124 fi
|
|
125
|
|
126 if [ "$LIRC" = "Y" ]; then
|
|
127 CMD="$CMD --enable-lirc"
|
|
128 fi
|
|
129
|
|
130 if [ "$X11L" != "" ]; then
|
|
131 CMD="$CMD --with-x11libdir=$X11L"
|
|
132 fi
|
|
133
|
|
134 if [ "$W32" != "" ]; then
|
|
135 CMD="$CMD --with-win32libdir=$W32"
|
|
136 fi
|
|
137
|
|
138 if [ "$X" != "" ]; then
|
|
139 CMD="$CMD --size-x=$X"
|
|
140 fi
|
|
141
|
|
142 if [ "$Y" != "" ]; then
|
|
143 CMD="$CMD --size-x=$Y"
|
|
144 fi
|
|
145
|
|
146 echo $CMD > setup.s
|
|
147
|
|
148 echo "Configuration ended, now please run"
|
|
149 echo " ./configure \`cat setup.s\`"
|
|
150
|
|
151 exit 0
|