aboutsummaryrefslogtreecommitdiffhomepage
path: root/setup.sh
blob: 2aee84e8c1bef15f39e4d0cd12736fc6442e634e (plain)
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
#!/bin/bash

echo "==========================================="
echo " Welcome to the MPlayer configuration tool "
echo "==========================================="
echo " We'll ask you some questions on how you   "
echo " want your mplayer to be compiled.	 "
echo "==========================================="
echo ""
echo ""

echo "Where should the X11 libraries be found?"
echo "[enter=auto]"
read X11L

echo "Where should the win32 Codecs be fould?"
echo "[enter=auto]"
read W32

echo "Which default screen width would you like?"
echo "[enter=default]"
read X

echo "Which default screen height would you like?"
echo "[enter=default]"
read Y

echo "Would you like MMX support enabled?"
echo "[Y/A(auto)]"
read MMX

echo "Would you like 3dnow support enabled?"
echo "[Y/A(auto)]"
read DNOW

echo "Would you like SSE support enabled?"
echo "[Y/A(auto)]"
read SSE

echo "Would you like OpenGL support enabled?"
echo "[Y/A(auto)]"
read GL

echo "Would you like SDL support enabled?"
echo "[Y/A(auto)]"
read SDL

echo "Would you like MGA support enabled?"
echo "[Y/A(auto)]"
read MGA

echo "Would you like XMGA support enabled?"
echo "[Y/A(auto)]"
read XMGA

echo "Would you like XV support enabled?"
echo "[Y/A(auto)]"
read XV

echo "Would you like X11 support enabled?"
echo "[Y/A(auto)]"
read X11

echo "Would you like MLIB support enabled? (ONLY Solaris)"
echo "[Y/A(auto)]"
read MLIB

echo "Would you like to use the termcap database for key codes?"
echo "[Y/N]"
read TERMCAP

echo "Would you like to use the XMMP audio drivers?"
echo "[Y/N]"
read XMMP

echo "Would you like to enable LIRC support?"
echo "[Y/N]"
read LIRC

CMD=" "

if [ "$MMX" = "Y" ]; then
 CMD="$CMD --enable-mmx"
fi

if [ "$DNOW" = "Y" ]; then
 CMD="$CMD --enable-3dnow"
fi

if [ "$SSE" = "Y" ]; then
 CMD="$CMD --enable-sse"
fi

if [ "$GL" = "Y" ]; then
 CMD="$CMD --enable-gl"
fi

if [ "$SDL" = "Y" ]; then
 CMD="$CMD --enable-sdl"
fi

if [ "$MGA" = "Y" ]; then
 CMD="$CMD --enable-mga"
fi

if [ "$XMGA" = "Y" ]; then
 CMD="$CMD --enable-xmga"
fi

if [ "$XV" = "Y" ]; then
 CMD="$CMD --enable-xv"
fi

if [ "$X11" = "Y" ]; then
 CMD="$CMD --enable-x11"
fi

if [ "$TERMCAP" = "Y" ]; then
 CMD="$CMD --enable-termcap"
fi

if [ "$XMMP" = "Y" ]; then
 CMD="$CMD --enable-xmmp"
fi

if [ "$LIRC" = "Y" ]; then
 CMD="$CMD --enable-lirc"
fi

if [ "$X11L" != "" ]; then
 CMD="$CMD --with-x11libdir=$X11L"
fi

if [ "$W32" != "" ]; then
 CMD="$CMD --with-win32libdir=$W32"
fi

if [ "$X" != "" ]; then
 CMD="$CMD --size-x=$X"
fi

if [ "$Y" != "" ]; then
 CMD="$CMD --size-x=$Y"
fi

echo $CMD > setup.s

echo "Configuration ended, now please run"
echo " ./configure \`cat setup.s\`"

exit 0