# Little shell script that creates a fresh GStreamer uninstalled setup in
# your home directory.
#
+# This is the legacy uninstalled setup for autotools. There is also the
+# gst-build module which provides the same using the meson build system.
+#
# ----------------------------------------------------------------------------
#
-# Copyright (C) 2011-2012 Tim-Philipp Muller <tim centricular net>
+# Copyright (C) 2011-2015 Tim-Philipp Müller <tim centricular net>
#
# This script is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# set to "ssh" if you have a developer account and ssh access
GIT_ACCESS="anongit"
+# extra clone options
+#CLONE_OPTS="--depth=1 --no-single-branch"
+
# re-use and reference local master branch checkout if one already exists
# (saves network bandwidth)
REUSE_EXISTING_MASTER_CHECKOUT="true"
# git modules to clone
-MODULES="gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad"
-
-if test "$BRANCH" != "0.10"; then
- MODULES="$MODULES gst-libav"
-else
- MODULES="$MODULES gst-ffmpeg"
-fi
+MODULES="gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad gst-libav"
# note: we use ~/gst because that's what the gst-uninstalled script
# uses by default, so don't just change that to something else
DEPS_OK="no"
elif ! flex --version 2>/dev/null >/dev/null; then
DEPS_OK="no"
+elif ! git --version 2>/dev/null >/dev/null; then
+ DEPS_OK="no"
else
DEPS_OK="yes"
fi
echo ""
echo " Some very basic build tools or dependencies are missing."
echo ""
-echo " Please visit"
-echo ""
-echo " http://gstreamer.freedesktop.org/wiki/BuildDependenciesDebianUbuntu"
+echo " Please install the following tools: pkg-config, bison, flex, git"
echo ""
+echo " and the following libraries: GLib (libglib2.0-dev or glib2-devel)"
+echo " and Orc (liborc-0.4-dev or orc-devel)"
+#echo " Please visit"
+#echo ""
+#echo " http://gstreamer.freedesktop.org/wiki/BuildDependenciesDebianUbuntu"
+#echo ""
#echo " or"
#echo ""
#echo " http://gstreamer.freedesktop.org/wiki/Fedora"
#echo ""
-echo " for instructions how to install them on Debian/Ubuntu-based systems."
+#echo " for instructions how to install them on Debian/Ubuntu-based systems."
echo ""
echo "==========================================================================================="
+exit 1
fi
fi
if test "$GIT_ACCESS" = "ssh"; then
- git clone $REF ssh://git.freedesktop.org/git/gstreamer/$m
+ git clone $CLONE_OPTS $REF git@gitlab.freedesktop.org:gstreamer/$m
else
- git clone $REF git://anongit.freedesktop.org/gstreamer/$m
+ git clone $CLONE_OPTS $REF https://gitlab.freedesktop.org/gstreamer/$m.git
fi
cd $m
if test "$BRANCH" != "master"; then
git checkout -b $BRANCH origin/$BRANCH
fi
+ git submodule init && git submodule update
cd ..
done
echo "by autogen.sh/configure"
echo
echo "==========================================================================================="
-#echo
-#echo "Also see http://gstreamer.freedesktop.org/wiki/UninstalledSetup"
-#echo
-#echo "==========================================================================================="