Commit ac64ae1a authored by user's avatar user
Browse files

deploygstreamer

parent bb20ccc6
*.swp
*.swn
*.swo
ELEMENTS="faac faac x264"
for el in $ELEMENTS
do
printf "checking for $el "
if gst-inspect-1.0 $el 2&1> /dev/null
then
echo "$el was found."
else
echo "gstreamer-plugin: $el not found, things will not work"
fi
done
......@@ -7,9 +7,14 @@
# http://cgit.freedesktop.org/libva/tree/test/encode/h264encode.c
#
BDIR=$(realpath $1)
echo "Building in: $BDIR, is that ok? (press enter)"
read
#should we install debian packages?
checkdeps="true"
waitaftermodule="true"
checkdeps="false"
#waitaftermodule="true"
#plugins-bad
DEPS_BAD="ladspa-sdk libass-dev libbz2-dev libcdaudio-dev libcdaudio1 libchromaprint-dev libcurl4-gnutls-dev libcv-dev libcvaux-dev libdc1394-22-dev libdca-dev libdirectfb-dev libdirectfb-extra libdjvulibre-dev libdvdnav-dev libdvdread-dev libegl1-mesa-dev libenca-dev libexempi-dev libexempi3 libexif-dev libfaad-dev libflac-dev libfluidsynth-dev libfluidsynth1 libfribidi-dev libgles2-mesa-dev libglib2.0-doc libgme-dev libgme0 libgraphviz-dev libgsm1-dev libgtkglext1 libhighgui-dev libilmbase-dev libiptcdata0 libiptcdata0-dev libjasper-dev libkate-dev liblavfile-2.1-0 liblavjpeg-2.1-0 liblavplay-2.1-0 liblcms2-dev liblqr-1-0-dev libmagick++-6-headers libmagick++-6.q16-5 libmagick++-6.q16-dev libmagick++-dev libmagickcore-6-arch-config libmagickcore-6-headers libmagickcore-6.q16-2 libmagickcore-6.q16-2-extra libmagickcore-6.q16-dev libmagickwand-6-headers libmagickwand-6.q16-2 libmagickwand-6.q16-dev libmimic-dev libmimic0 libmjpegtools-dev libmjpegutils-2.1-0 libmms-dev libmms0 libmodplug-dev libmpcdec-dev libmpeg2encpp-2.1-0 libmpg123-dev libmplex2-2.1-0 libofa0 libofa0-dev libopenal-data libopenal-dev libopenal1 libopencv-calib3d-dev libopencv-calib3d2.4 libopencv-contrib-dev libopencv-contrib2.4 libopencv-core-dev libopencv-dev libopencv-features2d-dev libopencv-features2d2.4 libopencv-flann-dev libopencv-flann2.4 libopencv-gpu-dev libopencv-gpu2.4 libopencv-highgui-dev libopencv-highgui2.4 libopencv-imgproc-dev libopencv-legacy-dev libopencv-legacy2.4 libopencv-ml-dev libopencv-ml2.4 libopencv-objdetect-dev libopencv-objdetect2.4 libopencv-ocl-dev libopencv-ocl2.4 libopencv-photo-dev libopencv-photo2.4 libopencv-stitching-dev libopencv-stitching2.4 libopencv-superres-dev libopencv-superres2.4 libopencv-ts-dev libopencv-ts2.4 libopencv-video-dev libopencv-video2.4 libopencv-videostab-dev libopencv-videostab2.4 libopencv2.4-java libopencv2.4-jni libopenexr-dev libopenjpeg-dev libopus-dev liborc-0.4-dev libquicktime2 libraw1394-dev librsvg2-dev librtmp-dev libsbc-dev libsbc1 libschroedinger-dev libsndfile1-dev libsoundtouch-dev libspandsp-dev libsrtp0-dev libswscale-dev libvo-aacenc-dev libvo-aacenc0 libvo-amrwbenc-dev libvo-amrwbenc0 libwebp-dev libwildmidi-config libwildmidi-dev libwildmidi1 libwmf-dev libxvidcore-dev libzbar-dev libzbar0 libzvbi-dev"
......@@ -34,9 +39,12 @@ DEPS="libxv-dev liborc-0.4-dev librtmp-dev libsrtp0-dev libswscale-dev libcaca-
DEPS="jackd $DEPS $DEPS_GOOD $DEPS_BASE $DEPS_UGLY $DEPS_BAD"
GIT_URL="git://anongit.freedesktop.org/gstreamer/"
MODULES="orc gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav gst-rtsp-server"
if [[ -z $1 ]];
#MODULES="orc gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav gst-rtsp-server"
MODULES="gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav gst-rtsp-server"
if [[ -z $BDIR ]];
then
echo "This script will check if git versions of the following modules are present and up to date"
for module in $MODULES
......@@ -47,7 +55,7 @@ then
exit
fi
if [ checkdeps == "true" ]
if [ $checkdeps == "true" ]
then
export DEBIAN_FRONTEND=noninteractive
for dep in $DEPS
......@@ -68,7 +76,7 @@ fi
for module in $MODULES
do
cd $1
cd $BDIR
echo "checking for $module"
if [[ -d $module ]];
then
......@@ -84,7 +92,7 @@ do
# if [[ -z $GIT_UP_TO_DATE ]]
# then
# echo "git for module $module is up to date."
# cd ..
# cd $BDIR
# else
echo "Building module: $module"
if git pull && ./autogen.sh || ./configure && make $MAKE_FLAGS && sudo make install && sudo ldconfig
......@@ -93,7 +101,7 @@ do
else
echo "Building $module failed, no idea why"
fi
cd ..
cd $BDIR
if [ $waitaftermodule == "true" ]
then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment