]> git.sesse.net Git - vlc/blob - build-vlc
Cleanup gnutls detection
[vlc] / 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 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 CDIO libcdio
32 VCDX vcdx
33 CDDAX cddax
34 CDDB libcddb
35 X11 x11
36 XVIDEO xvideo
37 GLX glx
38 FB fb
39 MGA mga
40 SDL sdl
41 FREETYPE freetype
42 FRIBIDI fribidi
43 SVG svg
44 QTE qte
45 HD1000V hd1000v
46 DIRECTX directx
47 WINGDI wingdi
48 SVGALIB svgalib
49 GGI ggi
50 GLIDE glide
51 AA aa
52 CACA caca
53 OSS oss
54 ESD esd
55 ARTS arts
56 ALSA alsa
57 WAVEOUT waveout
58 COREAUDIO coreaudio
59 HD1000A hd1000a
60 MAD mad
61 FFMPEG ffmpeg
62 FAAD faad
63 QUICKTIME quicktime
64 A52 a52
65 DTS dts
66 FLAC flac
67 LIBMPEG2 libmpeg2
68 VORBIS vorbis
69 TREMOR tremor
70 SPEEX speex
71 TARKIN tarkin
72 THEORA theora
73 CMML cmml
74 UTF8 utf8
75 PTH pth
76 ST st
77 GPROF gprof
78 CPROF cprof
79 MOZILLA mozilla
80 TESTSUITE testsuite
81 OPTIMIZATIONS optimizations
82 ALTIVEC altivec
83 DEBUG debug
84 RELEASE release
85 SOUT sout
86 WITHFFMPEGMP3LAME ffmpeg-mp3lame
87 WITHFFMPEGFAAC ffmpeg-faac
88 GALAKTOS galaktos
89 HTTPD httpd
90 JACK jack
91 "
92 PATHS="
93 WITHXML2CONFIGPATH xml2-config-path
94 WITHWXCONFIGPATH wx-config-path
95 WITHWXCONFIG wx-config
96 WITHQTE qte
97 WITHGOOMTREE goom-tree
98 WITHSLP slp
99 WITHLIVEDOTCOMTREE livedotcom-tree
100 WITHDVDREAD dvdread
101 WITHDVDREADTREEE dvdread-tree
102 WITHDVDNAVCONFIGPATH dvdnav-config-path
103 WITHDVBPSI dvbpsi
104 WITHDVBPSITREE dvbpsi-tree
105 WITHV4L v4l
106 WITHDVB dvb
107 WITHSDLCONFIGPATH sdl-config-path
108 WITHSDLPREFIX sdl-prefix
109 WITHFREETYPECONFIGPATH freetype-config-path
110 WITHFRIBIDICONFIGPATH fribidi-config-path
111 WITHQTE qte
112 WITHDIRECTX directx
113 WITHGGI ggi
114 WITHGLIDE glide
115 WITHCACACONFIGPATH caca-config-path
116 WITHMAD mad
117 WITHMADTREE mad-tree
118 WITHFFMPEGTREE ffmpeg-tree
119 WITHFAADTREE faad-tree
120 WITHA52 a52
121 WITHA52TREE a52-tree
122 WITHDTSTREE dts-tree
123 WITHLIBMPEG2TREE libmpeg2-tree
124 WITHTARKINTREE tarkin-tree
125 WITHMOZILLASDKPATH mozilla-sdk-path
126 ENDIANNESS words
127 "
128 if [ ! -e .config ]
129 then
130    ./menuconfig
131 fi
132
133 if [ -e .cmd ]
134 then
135    echo ".cmd still exist. Removing it."
136    rm -f .cmd
137 fi
138
139 echo -n "./configure " > .cmd
140 source .config
141
142 check_features () {
143 while [ -n "$1" ]
144 do
145    eval x="\$CONFIG_$1"
146    if [ "$x" == "y" ]
147    then
148       if [ "$1" == "WITHFFMPEGMP3LAME" ] || [ "$1" == "WITHFFMPEGFAAC" ]
149       then
150          echo -n "--with-$2 " >> .cmd
151       else
152          echo -n "--enable-$2 " >> .cmd
153       fi
154    else
155       if [ "$1" != "WITHFFMPEGMP3LAME" ] && [ "$1" != "WITHFFMPEGFAAC" ]
156       then
157          echo -n "--disable-$2 " >> .cmd
158       fi
159    fi
160    shift; shift
161 done
162 }
163
164 check_paths () {
165 while [ -n "$1" ]
166 do
167    if [ -n $1 ]
168    then
169       eval x="\$CONFIG_$1"
170       if [ "$x" != "" ]
171       then
172          echo -n "--with-$2=$x " >> .cmd
173       fi
174    fi
175    shift; shift
176 done
177 }
178
179 check_features $FEATURES
180 check_paths $PATHS
181
182 #XXX
183 echo "--enable-maintainer-mode " >> .cmd
184
185 if [ ! -e configure ]
186 then
187    ./bootstrap
188 fi
189
190 source .cmd
191 make
192 rm -f .cmd