* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 14:32:02 +02:00
|
|
|
#! /bin/sh
|
|
|
|
|
2003-02-02 05:01:29 +01:00
|
|
|
## bootstrap file for the VLC media player
|
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 14:32:02 +02:00
|
|
|
##
|
2008-03-23 20:43:06 +01:00
|
|
|
## Copyright (C) 2005-2008 the VideoLAN team
|
2005-08-13 10:12:37 +02:00
|
|
|
##
|
2006-03-04 21:24:19 +01:00
|
|
|
## Authors: Sam Hocevar <sam@zoy.org>
|
|
|
|
## Rémi Denis-Courmont <rem # videolan # org>
|
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 14:32:02 +02:00
|
|
|
|
2003-06-27 15:50:13 +02:00
|
|
|
if test "$#" != "0"; then
|
|
|
|
echo "Usage: $0"
|
2008-03-23 20:30:28 +01:00
|
|
|
echo " Calls autoreconf to generate m4 macros and prepare Makefiles."
|
2002-12-26 11:55:35 +01:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2002-07-21 17:27:09 +02:00
|
|
|
###
|
2002-11-19 18:38:07 +01:00
|
|
|
### Get a sane environment, just in case
|
2002-07-21 17:27:09 +02:00
|
|
|
###
|
2002-11-19 18:38:07 +01:00
|
|
|
CYGWIN=binmode
|
|
|
|
export CYGWIN
|
2002-07-21 17:27:09 +02:00
|
|
|
|
2003-07-05 16:47:53 +02:00
|
|
|
set -e
|
2003-10-23 17:30:22 +02:00
|
|
|
set -x
|
2003-07-05 16:47:53 +02:00
|
|
|
|
2008-11-24 17:28:50 +01:00
|
|
|
cd "$(dirname "$0")"
|
|
|
|
|
2002-11-13 21:51:05 +01:00
|
|
|
##
|
2003-10-23 17:30:22 +02:00
|
|
|
## Check for various tools
|
2002-11-13 21:51:05 +01:00
|
|
|
##
|
2002-11-10 19:04:24 +01:00
|
|
|
|
2007-03-14 22:34:22 +01:00
|
|
|
ACLOCAL_ARGS="-I m4 ${ACLOCAL_ARGS}"
|
2004-07-05 16:18:51 +02:00
|
|
|
|
2003-11-15 02:21:48 +01:00
|
|
|
# Check for contrib directory
|
2007-07-21 00:44:02 +02:00
|
|
|
if test -d extras/contrib/bin; then
|
2008-03-23 20:32:25 +01:00
|
|
|
PATH="`pwd`/extras/contrib/bin:$PATH"
|
2005-11-07 21:15:16 +01:00
|
|
|
if test -d extras/contrib/share/aclocal; then
|
|
|
|
ACLOCAL_ARGS="${ACLOCAL_ARGS} -I extras/contrib/share/aclocal"
|
|
|
|
fi
|
2004-07-22 18:48:38 +02:00
|
|
|
if test ".`uname -s`" = ".Darwin"; then
|
2008-03-23 20:32:25 +01:00
|
|
|
LD_LIBRARY_PATH=./extras/contrib/lib:$LD_LIBRARY_PATH
|
|
|
|
DYLD_LIBRARY_PATH=./extras/contrib/lib:$DYLD_LIBRARY_PATH
|
|
|
|
export LD_LIBRARY_PATH
|
|
|
|
export DYLD_LIBRARY_PATH
|
2004-07-22 18:48:38 +02:00
|
|
|
elif test ".`uname -s`" = ".BeOS"; then
|
2008-03-23 20:32:25 +01:00
|
|
|
LIBRARY_PATH=./extras/contrib/lib:$LIBRARY_PATH
|
|
|
|
BELIBRARIES=./extras/contrib/lib:$BELIBRARIES
|
|
|
|
export LIBRARY_PATH
|
|
|
|
export BELIBRARIES
|
2004-07-22 18:48:38 +02:00
|
|
|
fi
|
2007-06-20 23:01:26 +02:00
|
|
|
elif test ".`uname -s`" = ".Darwin"; then
|
2007-06-20 23:14:58 +02:00
|
|
|
set +x
|
|
|
|
echo ""
|
|
|
|
echo "ERR: Contribs haven't been built"
|
|
|
|
echo "ERR: Please run:"
|
|
|
|
echo "ERR: "
|
|
|
|
echo "ERR: 'cd extras/contrib && ./bootstrap && make && cd ../..'"
|
|
|
|
echo "ERR: "
|
|
|
|
echo "ERR: Make sure fink has been disabled too."
|
|
|
|
echo ""
|
|
|
|
set -x
|
|
|
|
exit 1
|
2003-11-15 02:21:48 +01:00
|
|
|
fi
|
|
|
|
|
2003-10-23 17:30:22 +02:00
|
|
|
# Check for pkg-config
|
|
|
|
if pkg-config --version >/dev/null 2>&1; then
|
|
|
|
# We have pkg-config, everything is cool.
|
|
|
|
PKGCONFIG=yes
|
|
|
|
else
|
|
|
|
PKGCONFIG=no
|
|
|
|
fi
|
|
|
|
|
2008-03-25 17:55:30 +01:00
|
|
|
# Check for autopoint (GNU gettext)
|
|
|
|
export AUTOPOINT
|
|
|
|
test "$AUTOPOINT" || AUTOPOINT=autopoint
|
|
|
|
if ! "$AUTOPOINT" --dry-run --force >/dev/null 2>&1; then
|
|
|
|
AUTOPOINT=true
|
|
|
|
echo > ABOUT-NLS
|
|
|
|
fi
|
|
|
|
|
2002-09-30 13:05:42 +02:00
|
|
|
##
|
|
|
|
## Generate the modules makefile, by parsing modules/**/Modules.am
|
|
|
|
##
|
|
|
|
|
2003-10-23 17:30:22 +02:00
|
|
|
set +x
|
2008-04-21 22:01:06 +02:00
|
|
|
echo "generating modules/**/Makefile.am"
|
2002-09-30 13:05:42 +02:00
|
|
|
|
2003-07-01 18:25:24 +02:00
|
|
|
# Prepare m4/private.m4
|
2003-06-27 15:50:13 +02:00
|
|
|
rm -f m4/private.m4 && cat > m4/private.m4 << EOF
|
2003-06-21 19:04:20 +02:00
|
|
|
dnl Private VLC macros - generated by bootstrap
|
2002-09-30 13:05:42 +02:00
|
|
|
|
|
|
|
EOF
|
2003-10-25 19:48:05 +02:00
|
|
|
|
|
|
|
if [ "${PKGCONFIG}" = "no" ]; then cat >> m4/private.m4 << EOF
|
2005-11-02 14:42:48 +01:00
|
|
|
dnl User does not have pkg-config, so assume package was not found
|
|
|
|
AC_DEFUN([PKG_CHECK_MODULES],[ifelse([\$4], , :, [\$4])])
|
2003-10-25 19:48:05 +02:00
|
|
|
|
|
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
2007-09-01 18:58:35 +02:00
|
|
|
modules/genmf `sed -ne 's,modules/\(.*\)/Makefile,\1,p' configure.ac`
|
2007-07-29 10:47:13 +02:00
|
|
|
|
2002-08-26 01:18:05 +02:00
|
|
|
###
|
2002-09-30 13:05:42 +02:00
|
|
|
### classic bootstrap stuff
|
2002-08-26 01:18:05 +02:00
|
|
|
###
|
2002-08-26 22:49:50 +02:00
|
|
|
set -x
|
2003-03-17 17:59:47 +01:00
|
|
|
|
2003-11-04 16:31:44 +01:00
|
|
|
# Automake complains if these are not present
|
2008-01-31 18:37:17 +01:00
|
|
|
echo > vlc-config.in
|
2008-03-24 03:02:56 +01:00
|
|
|
echo > ABOUT-NLS
|
2008-03-23 20:43:35 +01:00
|
|
|
cp -f INSTALL INSTALL.git
|
2003-06-27 15:50:13 +02:00
|
|
|
|
2008-03-25 17:55:30 +01:00
|
|
|
autoreconf --install --force --verbose ${ACLOCAL_ARGS}
|
|
|
|
rm -f po/Makevars.template ABOUT-NLS
|
|
|
|
echo > ABOUT-NLS
|
2008-03-23 20:43:35 +01:00
|
|
|
mv -f INSTALL.git INSTALL
|
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 14:32:02 +02:00
|
|
|
|
|
|
|
##
|
2003-06-27 15:50:13 +02:00
|
|
|
## files which need to be regenerated
|
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 14:32:02 +02:00
|
|
|
##
|
2003-06-27 15:50:13 +02:00
|
|
|
rm -f vlc-config.in vlc-config
|
2005-06-04 14:55:23 +02:00
|
|
|
rm -f src/misc/modules_builtin.h
|
2008-01-31 18:37:17 +01:00
|
|
|
rm -f stamp-builtin stamp-h* mozilla/stamp-pic
|
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 14:32:02 +02:00
|
|
|
|
2003-07-05 16:47:53 +02:00
|
|
|
# Shut up
|
2002-10-02 14:59:59 +02:00
|
|
|
set +x
|
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 14:32:02 +02:00
|
|
|
|
2002-08-28 14:50:13 +02:00
|
|
|
##
|
2003-03-20 11:27:35 +01:00
|
|
|
## Tell the user about gettext, pkg-config and sed
|
2002-08-28 14:50:13 +02:00
|
|
|
##
|
2008-03-25 17:55:30 +01:00
|
|
|
if [ "$AUTOPOINT" = "true" ]; then
|
|
|
|
cat << EOF
|
|
|
|
|
|
|
|
==============================================================
|
|
|
|
NOTE: GNU gettext appears to be missing or out-of-date.
|
|
|
|
Please install or update GNU gettext.
|
2008-04-22 18:20:34 +02:00
|
|
|
Also check if you have cvs, a dependency of autopoint.
|
2008-03-25 17:55:30 +01:00
|
|
|
Otherwise, you will not be able to build a source tarball.
|
|
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
2005-10-26 16:31:03 +02:00
|
|
|
if [ "$PKGCONFIG" = "no" ]; then
|
2005-09-23 13:47:52 +02:00
|
|
|
cat << EOF
|
2003-03-20 11:27:35 +01:00
|
|
|
|
|
|
|
==============================================================
|
2008-03-23 20:39:04 +01:00
|
|
|
NOTE: "pkg-config" is missing from your system. Certain
|
|
|
|
libraries may not be detected properly.
|
2003-03-20 11:27:35 +01:00
|
|
|
EOF
|
2005-09-23 13:47:52 +02:00
|
|
|
fi
|
2003-03-20 11:27:35 +01:00
|
|
|
|
2007-09-13 23:25:01 +02:00
|
|
|
echo "Successfully bootstrapped"
|