build-vlc 2.88 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 18
VISUAL visual
GOOM goom
SLP slp
LIRC lirc
JOYSTICK joystick
CORBA corba
LIVEDOTCOM livedotcom
19
DVDREAD dvdread
20 21
DVDNAV dvdnav
DSHOW dshow
22
DVBPSI dvbpsi
23
V4L v4l
24 25 26 27 28 29 30
PVR pvr
VCD vcd
SATELLITE satellite
DVB dvb
OGG ogg
MKV mkv
MOD mod
31
CDIO libcdio
32 33 34
VCDX vcdx
CDDAX cddax
CDDB libcddb
35 36
X11 x11
XVIDEO xvideo
37
GLX glx
38
FB fb
39 40
MGA mga
SDL sdl
41
FREETYPE freetype
42 43
FRIBIDI fribidi
SVG svg
44
QTE qte
45 46 47
HD1000V hd1000v
DIRECTX directx
WINGDI wingdi
48 49 50 51
SVGALIB svgalib
GGI ggi
GLIDE glide
AA aa
52
CACA caca
53 54
OSS oss
ESD esd
55 56 57 58
ARTS arts
ALSA alsa
WAVEOUT waveout
COREAUDIO coreaudio
59
HD1000A hd1000a
60 61
MAD mad
FFMPEG ffmpeg
62
FAAD faad
63 64 65
QUICKTIME quicktime
A52 a52
DTS dts
66 67 68 69
FLAC flac
LIBMPEG2 libmpeg2
VORBIS vorbis
TREMOR tremor
70
SPEEX speex
71
TARKIN tarkin
Cyril Deguet's avatar
Cyril Deguet committed
72
THEORA theora
73 74 75 76 77 78 79 80 81 82
CMML cmml
UTF8 utf8
PTH pth
ST st
GPROF gprof
CPROF cprof
MOZILLA mozilla
TESTSUITE testsuite
OPTIMIZATIONS optimizations
ALTIVEC altivec
83
DEBUG debug
84 85 86 87
RELEASE release
SOUT sout
WITHFFMPEGMP3LAME ffmpeg-mp3lame
WITHFFMPEGFAAC ffmpeg-faac
88
GALAKTOS galaktos
89
HTTPD httpd
90
JACK jack
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 140 141 142 143 144 145 146 147
echo -n "./configure " > .cmd
source .config

check_features () {
while [ -n "$1" ]
do
   eval x="\$CONFIG_$1"
   if [ "$x" == "y" ]
   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 190 191 192
if [ ! -e configure ]
then
   ./bootstrap
fi

source .cmd
make
rm -f .cmd