Remove CORBA module, which I is not used anymore (not even by me...)
[vlc.git] / build-vlc
1 #!/bin/sh
2
3 FEATURES="
4 SKINS skins2
5 PDA pda
6 WXWIDGETS wxwidgets
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 LIVEDOTCOM livedotcom
18 DVDREAD dvdread
19 DVDNAV dvdnav
20 DSHOW dshow
21 DVBPSI dvbpsi
22 V4L v4l
23 PVR pvr
24 VCD vcd
25 SATELLITE satellite
26 DVB dvb
27 OGG ogg
28 MKV mkv
29 MOD mod
30 CDIO libcdio
31 VCDX vcdx
32 CDDAX cddax
33 CDDB libcddb
34 X11 x11
35 XVIDEO xvideo
36 GLX glx
37 FB fb
38 MGA mga
39 SDL sdl
40 FREETYPE freetype
41 FRIBIDI fribidi
42 SVG svg
43 QTE qte
44 HD1000V hd1000v
45 DIRECTX directx
46 WINGDI wingdi
47 SVGALIB svgalib
48 GGI ggi
49 GLIDE glide
50 AA aa
51 CACA caca
52 OSS oss
53 ESD esd
54 ARTS arts
55 ALSA alsa
56 WAVEOUT waveout
57 COREAUDIO coreaudio
58 HD1000A hd1000a
59 MAD mad
60 FFMPEG ffmpeg
61 FAAD faad
62 QUICKTIME quicktime
63 A52 a52
64 DTS dts
65 FLAC flac
66 LIBMPEG2 libmpeg2
67 VORBIS vorbis
68 TREMOR tremor
69 SPEEX speex
70 TARKIN tarkin
71 THEORA theora
72 CMML cmml
73 UTF8 utf8
74 PTH pth
75 ST st
76 GPROF gprof
77 CPROF cprof
78 MOZILLA mozilla
79 TESTSUITE testsuite
80 OPTIMIZATIONS optimizations
81 ALTIVEC altivec
82 DEBUG debug
83 RELEASE release
84 SOUT sout
85 WITHFFMPEGMP3LAME ffmpeg-mp3lame
86 WITHFFMPEGFAAC ffmpeg-faac
87 GALAKTOS galaktos
88 HTTPD httpd
89 JACK jack
90 "
91 PATHS="
92 WITHXML2CONFIGPATH xml2-config-path
93 WITHWXCONFIGPATH wx-config-path
94 WITHWXCONFIG wx-config
95 WITHQTE qte
96 WITHGOOMTREE goom-tree
97 WITHSLP slp
98 WITHLIVEDOTCOMTREE livedotcom-tree
99 WITHDVDREAD dvdread
100 WITHDVDREADTREEE dvdread-tree
101 WITHDVDNAVCONFIGPATH dvdnav-config-path
102 WITHDVBPSI dvbpsi
103 WITHDVBPSITREE dvbpsi-tree
104 WITHV4L v4l
105 WITHDVB dvb
106 WITHSDLCONFIGPATH sdl-config-path
107 WITHSDLPREFIX sdl-prefix
108 WITHFREETYPECONFIGPATH freetype-config-path
109 WITHFRIBIDICONFIGPATH fribidi-config-path
110 WITHQTE qte
111 WITHDIRECTX directx
112 WITHGGI ggi
113 WITHGLIDE glide
114 WITHCACACONFIGPATH caca-config-path
115 WITHMAD mad
116 WITHMADTREE mad-tree
117 WITHFFMPEGTREE ffmpeg-tree
118 WITHFAADTREE faad-tree
119 WITHA52 a52
120 WITHA52TREE a52-tree
121 WITHDTSTREE dts-tree
122 WITHLIBMPEG2TREE libmpeg2-tree
123 WITHTARKINTREE tarkin-tree
124 WITHMOZILLASDKPATH mozilla-sdk-path
125 ENDIANNESS words
126 "
127 if [ ! -e .config ]
128 then
129    ./menuconfig
130 fi
131
132 if [ -e .cmd ]
133 then
134    echo ".cmd still exist. Removing it."
135    rm -f .cmd
136 fi
137
138 echo -n "./configure " > .cmd
139 source .config
140
141 check_features () {
142 while [ -n "$1" ]
143 do
144    eval x="\$CONFIG_$1"
145    if [ "$x" == "y" ]
146    then
147       if [ "$1" == "WITHFFMPEGMP3LAME" ] || [ "$1" == "WITHFFMPEGFAAC" ]
148       then
149          echo -n "--with-$2 " >> .cmd
150       else
151          echo -n "--enable-$2 " >> .cmd
152       fi
153    else
154       if [ "$1" != "WITHFFMPEGMP3LAME" ] && [ "$1" != "WITHFFMPEGFAAC" ]
155       then
156          echo -n "--disable-$2 " >> .cmd
157       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 #XXX
182 echo "--enable-maintainer-mode " >> .cmd
183
184 if [ ! -e configure ]
185 then
186    ./bootstrap
187 fi
188
189 source .cmd
190 make
191 rm -f .cmd