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

FEATURES="
4
SKINS skins
5 6
SKINS skins2
FAMILIAR familiar
7 8 9 10 11 12
WXWINDOWS wxwindows
OPIE opie
MACOSX macosx
QNX qnx
NCURSES ncurses
XOSD xosd
13 14 15 16 17 18 19
VISUAL visual
GOOM goom
SLP slp
LIRC lirc
JOYSTICK joystick
CORBA corba
LIVEDOTCOM livedotcom
20
DVDREAD dvdread
21 22
DVDNAV dvdnav
DSHOW dshow
23
DVBPSI dvbpsi
24
V4L v4l
25 26 27 28 29 30 31
PVR pvr
VCD vcd
SATELLITE satellite
DVB dvb
OGG ogg
MKV mkv
MOD mod
32 33
X11 x11
XVIDEO xvideo
34
GLX glx
35
FB fb
36 37
MGA mga
SDL sdl
38
FREETYPE freetype
39 40
FRIBIDI fribidi
SVG svg
41
QTE qte
42 43 44
HD1000V hd1000v
DIRECTX directx
WINGDI wingdi
45 46 47 48
SVGALIB svgalib
GGI ggi
GLIDE glide
AA aa
49
CACA caca
50 51
OSS oss
ESD esd
52 53 54 55
ARTS arts
ALSA alsa
WAVEOUT waveout
COREAUDIO coreaudio
56
HD1000A hd1000a
57 58
MAD mad
FFMPEG ffmpeg
59
FAAD faad
60 61 62
QUICKTIME quicktime
A52 a52
DTS dts
63 64 65 66
FLAC flac
LIBMPEG2 libmpeg2
VORBIS vorbis
TREMOR tremor
67
SPEEX speex
68
TARKIN tarkin
Cyril Deguet's avatar
Cyril Deguet committed
69
THEORA theora
70 71 72 73 74 75 76 77 78 79
CMML cmml
UTF8 utf8
PTH pth
ST st
GPROF gprof
CPROF cprof
MOZILLA mozilla
TESTSUITE testsuite
OPTIMIZATIONS optimizations
ALTIVEC altivec
80
DEBUG debug
81 82 83 84
RELEASE release
SOUT sout
WITHFFMPEGMP3LAME ffmpeg-mp3lame
WITHFFMPEGFAAC ffmpeg-faac
85
GALAKTOS galaktos
86 87
"
PATHS="
88 89 90 91 92 93 94 95 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
WITHXML2CONFIGPATH xml2-config-path
WITHWXCONFIGPATH wx-config-path
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
121 122 123 124 125 126
"
if [ ! -e .config ]
then
   ./menuconfig
fi

127 128 129 130 131 132
if [ -e .cmd ]
then
   echo ".cmd still exist. Removing it."
   rm -f .cmd
fi

133 134 135 136 137 138 139 140 141
echo -n "./configure " > .cmd
source .config

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

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

check_features $FEATURES
check_paths $PATHS

if [ ! -e configure ]
then
   ./bootstrap
fi

source .cmd
make
rm -f .cmd