mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-04 09:11:33 +02:00
![Cyril Deguet](/assets/img/avatar_default.png)
Only tested under linux; please give feedback if something is wrong Some help should be written in doc/Configure.help; if you know what to write there, please contribute !
109 lines
1.3 KiB
Bash
Executable File
109 lines
1.3 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
FEATURES="
|
|
GNOME gnome
|
|
GNOME2 gnome2
|
|
GTK gtk
|
|
GTK2 gtk2
|
|
SKINS skins
|
|
FAMILIAR familiar
|
|
WXWINDOWS wxwindows
|
|
QT qt
|
|
KDE kde
|
|
OPIE opie
|
|
MACOSX macosx
|
|
QNX qnx
|
|
INTFWIN intfwin
|
|
NCURSES ncurses
|
|
XOSD xosd
|
|
DVDOLD dvd
|
|
DVDREAD dvdread
|
|
DVDPLAY dvdplay
|
|
DVBPSI dvbpsi
|
|
VCD vcd
|
|
V4L v4l
|
|
SAT satellite
|
|
X11 x11
|
|
XVIDEO xvideo
|
|
SDL sdl
|
|
FB fb
|
|
DIRECTX directx
|
|
WINGDI wingdi
|
|
FREETYPE freetype
|
|
QTE qte
|
|
MGA mga
|
|
SVGALIB svgalib
|
|
GGI ggi
|
|
GLIDE glide
|
|
AA aa
|
|
OSS oss
|
|
ESD esd
|
|
ARTS arts
|
|
ALSA alsa
|
|
WAVEOUT waveout
|
|
COREAUDIO coreaudio
|
|
OGG ogg
|
|
A52 a52
|
|
MAD mad
|
|
FFMPEG ffmpeg
|
|
FAAD faad
|
|
XVID xvid
|
|
DV dv
|
|
FLAC flac
|
|
LIBMPEG2 libmpeg2
|
|
VORBIS vorbis
|
|
TREMOR tremor
|
|
TARKIN tarkin
|
|
THEORA theoea
|
|
SOUT sout
|
|
DEBUG debug
|
|
"
|
|
PATHS="
|
|
FFMPEG_TREE ffmpeg-tree
|
|
"
|
|
if [ ! -e .config ]
|
|
then
|
|
./menuconfig
|
|
fi
|
|
|
|
echo -n "./configure " > .cmd
|
|
source .config
|
|
|
|
check_features () {
|
|
while [ -n "$1" ]
|
|
do
|
|
eval x="\$CONFIG_$1"
|
|
if [ "$x" == "y" ]
|
|
then
|
|
echo -n "--enable-$2 " >> .cmd
|
|
else
|
|
echo -n "--disable-$2 " >> .cmd
|
|
fi
|
|
shift; shift
|
|
done
|
|
}
|
|
|
|
check_paths () {
|
|
while [ -n "$1" ]
|
|
do
|
|
if [ -n $1 ]
|
|
then
|
|
eval x="\$CONFIG_$1"
|
|
echo -n "--with-$2=$x" >> .cmd
|
|
fi
|
|
shift; shift
|
|
done
|
|
}
|
|
|
|
check_features $FEATURES
|
|
check_paths $PATHS
|
|
|
|
if [ ! -e configure ]
|
|
then
|
|
./bootstrap
|
|
fi
|
|
|
|
source .cmd
|
|
make
|
|
rm -f .cmd
|