build-vlc 2.84 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
SVGALIB svgalib
GGI ggi
AA aa
50
CACA caca
51 52
OSS oss
ESD esd
53 54 55 56
ARTS arts
ALSA alsa
WAVEOUT waveout
COREAUDIO coreaudio
57
HD1000A hd1000a
58 59
MAD mad
FFMPEG ffmpeg
60
FAAD faad
61 62 63
QUICKTIME quicktime
A52 a52
DTS dts
64 65 66 67
FLAC flac
LIBMPEG2 libmpeg2
VORBIS vorbis
TREMOR tremor
68
SPEEX speex
69
TARKIN tarkin
Cyril Deguet's avatar
Cyril Deguet committed
70
THEORA theora
71 72 73 74 75 76 77 78 79 80
CMML cmml
UTF8 utf8
PTH pth
ST st
GPROF gprof
CPROF cprof
MOZILLA mozilla
TESTSUITE testsuite
OPTIMIZATIONS optimizations
ALTIVEC altivec
81
DEBUG debug
82 83 84 85
RELEASE release
SOUT sout
WITHFFMPEGMP3LAME ffmpeg-mp3lame
WITHFFMPEGFAAC ffmpeg-faac
86
GALAKTOS galaktos
87
HTTPD httpd
88
JACK jack
89
QT4 qt4
90 91
"
PATHS="
92 93
WITHXML2CONFIGPATH xml2-config-path
WITHWXCONFIGPATH wx-config-path
94
WITHWXCONFIG wx-config
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 121 122 123 124
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
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
125 126 127 128 129 130
"
if [ ! -e .config ]
then
   ./menuconfig
fi

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

137
echo -n "./configure " > .cmd
138
. ./.config
139 140 141 142 143

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

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

check_features $FEATURES
check_paths $PATHS

180 181 182
#XXX
echo "--enable-maintainer-mode " >> .cmd

183 184 185 186 187
if [ ! -e configure ]
then
   ./bootstrap
fi

188
. ./.cmd
189 190
make
rm -f .cmd