Hungarian translation update by Gabor Kelemen
[vlc/vlc-skelet.git] / build-vlc
blobe6aa06aeaba933f1774fadc46c6782c70a424ac7
1 #!/bin/sh
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 QT4 qt4
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
128 if [ ! -e .config ]
129 then
130 ./menuconfig
133 if [ -e .cmd ]
134 then
135 echo ".cmd still exist. Removing it."
136 rm -f .cmd
139 echo -n "./configure " > .cmd
140 . ./.config
142 check_features () {
143 while [ -n "$1" ]
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
154 else
155 if [ "$1" != "WITHFFMPEGMP3LAME" ] && [ "$1" != "WITHFFMPEGFAAC" ]
156 then
157 echo -n "--disable-$2 " >> .cmd
160 shift; shift
161 done
164 check_paths () {
165 while [ -n "$1" ]
167 if [ -n $1 ]
168 then
169 eval x="\$CONFIG_$1"
170 if [ "$x" != "" ]
171 then
172 echo -n "--with-$2=$x " >> .cmd
175 shift; shift
176 done
179 check_features $FEATURES
180 check_paths $PATHS
182 #XXX
183 echo "--enable-maintainer-mode " >> .cmd
185 if [ ! -e configure ]
186 then
187 ./bootstrap
190 . ./.cmd
191 make
192 rm -f .cmd