Added current changes in the menu.
[vlc.git] / build-vlc
1 #!/bin/sh
2
3 FEATURES="
4 SKINS skins
5 SKINS2 skins2
6 WXWINDOWS wxwindows
7 OPIE opie
8 MACOSX macosx
9 QNX qnx
10 NCURSES ncurses
11 XOSD xosd
12 VISUAL visual
13 GOOM goom
14 SLP slp
15 LIRC lirc
16 JOYSTICK joystick
17 CORBA corba
18 LIVEDOTCOM livedotcom
19 DVDREAD dvdread
20 DVDNAV dvdnav
21 DSHOW dshow
22 DVBPSI dvbpsi
23 V4L v4l
24 PVR pvr
25 VCD vcd
26 SATELLITE satellite
27 DVB dvb
28 OGG ogg
29 MKV mkv
30 MOD mod
31 X11 x11
32 XVIDEO xvideo
33 FB fb
34 MGA mga
35 SDL sdl
36 FREETYPE freetype
37 FRIBIDI fribidi
38 SVG svg
39 QTE qte
40 HD1000V hd1000v
41 DIRECTX directx
42 WINGDI wingdi
43 SVGALIB svgalib
44 GGI ggi
45 GLIDE glide
46 AA aa
47 CACA caca
48 OSS oss
49 ESD esd
50 ARTS arts
51 ALSA alsa
52 WAVEOUT waveout
53 COREAUDIO coreaudio
54 HD1000A hd1000a
55 MAD mad
56 FFMPEG ffmpeg
57 FAAD faad
58 QUICKTIME quicktime
59 A52 a52
60 DTS dts
61 FLAC flac
62 LIBMPEG2 libmpeg2
63 VORBIS vorbis
64 TREMOR tremor
65 SPEEX speex
66 TARKIN tarkin
67 THEORA theora
68 CMML cmml
69 UTF8 utf8
70 PTH pth
71 ST st
72 GPROF gprof
73 CPROF cprof
74 MOZILLA mozilla
75 TESTSUITE testsuite
76 OPTIMIZATIONS optimizations
77 ALTIVEC altivec
78 DEBUG debug
79 RELEASE release
80 SOUT sout
81 WITHFFMPEGMP3LAME ffmpeg-mp3lame
82 WITHFFMPEGFAAC ffmpeg-faac
83 "
84 PATHS="
85 WITHXML2CONFIGPATH xml2-config-path
86 WITHWXCONFIGPATH wx-config-path
87 WITHQTE qte
88 WITHGOOMTREE goom-tree
89 WITHSLP slp
90 WITHLIVEDOTCOMTREE livedotcom-tree
91 WITHDVDREAD dvdread
92 WITHDVDREADTREEE dvdread-tree
93 WITHDVDNAVCONFIGPATH dvdnav-config-path
94 WITHDVBPSI dvbpsi
95 WITHDVBPSITREE dvbpsi-tree
96 WITHV4L v4l
97 WITHDVB dvb
98 WITHSDLCONFIGPATH sdl-config-path
99 WITHSDLPREFIX sdl-prefix
100 WITHFREETYPECONFIGPATH freetype-config-path
101 WITHFRIBIDICONFIGPATH fribidi-config-path
102 WITHQTE qte
103 WITHDIRECTX directx
104 WITHGGI ggi
105 WITHGLIDE glide
106 WITHCACACONFIGPATH caca-config-path
107 WITHMAD mad
108 WITHMADTREE mad-tree
109 WITHFFMPEGTREE ffmpeg-tree
110 WITHFAADTREE faad-tree
111 WITHA52 a52
112 WITHA52TREE a52-tree
113 WITHDTSTREE dts-tree
114 WITHLIBMPEG2TREE libmpeg2-tree
115 WITHTARKINTREE tarkin-tree
116 WITHMOZILLASDKPATH mozilla-sdk-path
117 ENDIANNESS words
118 "
119 if [ ! -e .config ]
120 then
121    ./menuconfig
122 fi
123
124 if [ -e .cmd ]
125 then
126    echo ".cmd still exist. Removing it."
127    rm -f .cmd
128 fi
129
130 echo -n "./configure " > .cmd
131 source .config
132
133 check_features () {
134 while [ -n "$1" ]
135 do
136    eval x="\$CONFIG_$1"
137    if [ "$x" == "y" ]
138    then
139       if [ "$1" == "WITHFFMPEGMP3LAME" ]
140       then 
141          echo -n "--with-$2 " >> .cmd
142       else if [ "$1" == "WITHFFMPEGFAAC" ]
143       then
144          echo -n "--with-$2 " >> .cmd
145       else
146          echo -n "--enable-$2 " >> .cmd
147       fi fi
148    else
149       if [ "$1" == "WITHFFMPEGMP3LAME" ]
150       then 
151          echo -n "--without-$2 " >> .cmd
152       else if [ "$1" == "WITHFFMPEGFAAC" ]
153       then
154          echo -n "--without-$2 " >> .cmd
155       else
156          echo -n "--disable-$2 " >> .cmd
157       fi fi
158    fi
159    shift; shift
160 done
161 }
162
163 check_paths () {
164 while [ -n "$1" ]
165 do
166    if [ -n $1 ]
167    then
168       eval x="\$CONFIG_$1"
169       if [ "$x" != "" ]
170       then
171          echo -n "--with-$2=$x " >> .cmd
172       fi
173    fi
174    shift; shift
175 done
176 }
177
178 check_features $FEATURES
179 check_paths $PATHS
180
181 if [ ! -e configure ]
182 then
183    ./bootstrap
184 fi
185
186 source .cmd
187 make
188 rm -f .cmd