build-vlc 2.86 KB
Newer Older
1 2 3
#!/bin/sh

FEATURES="
4
SKINS skins2
5
PDA pda
6
WXWIDGETS wxwidgets
7 8 9 10 11
OPIE opie
MACOSX macosx
QNX qnx
NCURSES ncurses
XOSD xosd
12 13 14 15 16 17
VISUAL visual
GOOM goom
SLP slp
LIRC lirc
JOYSTICK joystick
LIVEDOTCOM livedotcom
18
DVDREAD dvdread
19 20
DVDNAV dvdnav
DSHOW dshow
21
DVBPSI dvbpsi
22
V4L v4l
23 24 25 26 27 28 29
PVR pvr
VCD vcd
SATELLITE satellite
DVB dvb
OGG ogg
MKV mkv
MOD mod
30
CDIO libcdio
31 32 33
VCDX vcdx
CDDAX cddax
CDDB libcddb
34 35
X11 x11
XVIDEO xvideo
36
GLX glx
37
FB fb
38 39
MGA mga
SDL sdl
40
FREETYPE freetype
41 42
FRIBIDI fribidi
SVG svg
43
QTE qte
44 45 46
HD1000V hd1000v
DIRECTX directx
WINGDI wingdi
47 48 49 50
SVGALIB svgalib
GGI ggi
GLIDE glide
AA aa
51
CACA caca
52 53
OSS oss
ESD esd
54 55 56 57
ARTS arts
ALSA alsa
WAVEOUT waveout
COREAUDIO coreaudio
58
HD1000A hd1000a
59 60
MAD mad
FFMPEG ffmpeg
61
FAAD faad
62 63 64
QUICKTIME quicktime
A52 a52
DTS dts
65 66 67 68
FLAC flac
LIBMPEG2 libmpeg2
VORBIS vorbis
TREMOR tremor
69
SPEEX speex
70
TARKIN tarkin
Cyril Deguet's avatar
Cyril Deguet committed
71
THEORA theora
72 73 74 75 76 77 78 79 80 81
CMML cmml
UTF8 utf8
PTH pth
ST st
GPROF gprof
CPROF cprof
MOZILLA mozilla
TESTSUITE testsuite
OPTIMIZATIONS optimizations
ALTIVEC altivec
82
DEBUG debug
83 84 85 86
RELEASE release
SOUT sout
WITHFFMPEGMP3LAME ffmpeg-mp3lame
WITHFFMPEGFAAC ffmpeg-faac
87
GALAKTOS galaktos
88
HTTPD httpd
89
JACK jack
90
QT4 qt4
91 92
"
PATHS="
93 94
WITHXML2CONFIGPATH xml2-config-path
WITHWXCONFIGPATH wx-config-path
95
WITHWXCONFIG wx-config
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
WITHQTE qte
WITHGOOMTREE goom-tree
WITHSLP slp
WITHLIVEDOTCOMTREE livedotcom-tree
WITHDVDREAD dvdread
WITHDVDREADTREEE dvdread-tree
WITHDVDNAVCONFIGPATH dvdnav-config-path
WITHDVBPSI dvbpsi
WITHDVBPSITREE dvbpsi-tree
WITHV4L v4l
WITHDVB dvb
WITHSDLCONFIGPATH sdl-config-path
WITHSDLPREFIX sdl-prefix
WITHFREETYPECONFIGPATH freetype-config-path
WITHFRIBIDICONFIGPATH fribidi-config-path
WITHQTE qte
WITHDIRECTX directx
WITHGGI ggi
WITHGLIDE glide
WITHCACACONFIGPATH caca-config-path
WITHMAD mad
WITHMADTREE mad-tree
WITHFFMPEGTREE ffmpeg-tree
WITHFAADTREE faad-tree
WITHA52 a52
WITHA52TREE a52-tree
WITHDTSTREE dts-tree
WITHLIBMPEG2TREE libmpeg2-tree
WITHTARKINTREE tarkin-tree
WITHMOZILLASDKPATH mozilla-sdk-path
ENDIANNESS words
127 128 129 130 131 132
"
if [ ! -e .config ]
then
   ./menuconfig
fi

133 134 135 136 137 138
if [ -e .cmd ]
then
   echo ".cmd still exist. Removing it."
   rm -f .cmd
fi

139
echo -n "./configure " > .cmd
140
. ./.config
141 142 143 144 145

check_features () {
while [ -n "$1" ]
do
   eval x="\$CONFIG_$1"
146
   if [ "$x" = "y" ]
147
   then
148
      if [ "$1" = "WITHFFMPEGMP3LAME" ] || [ "$1" = "WITHFFMPEGFAAC" ]
149 150 151 152
      then
         echo -n "--with-$2 " >> .cmd
      else
         echo -n "--enable-$2 " >> .cmd
153
      fi
154
   else
155
      if [ "$1" != "WITHFFMPEGMP3LAME" ] && [ "$1" != "WITHFFMPEGFAAC" ]
156 157
      then
         echo -n "--disable-$2 " >> .cmd
158
      fi
159 160 161 162 163 164 165 166 167 168 169
   fi
   shift; shift
done
}

check_paths () {
while [ -n "$1" ]
do
   if [ -n $1 ]
   then
      eval x="\$CONFIG_$1"
170 171 172 173
      if [ "$x" != "" ]
      then
         echo -n "--with-$2=$x " >> .cmd
      fi
174 175 176 177 178 179 180 181
   fi
   shift; shift
done
}

check_features $FEATURES
check_paths $PATHS

182 183 184
#XXX
echo "--enable-maintainer-mode " >> .cmd

185 186 187 188 189
if [ ! -e configure ]
then
   ./bootstrap
fi

190
. ./.cmd
191 192
make
rm -f .cmd