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