#!/bin/bash

#usefull
DOWND="moc wmctrl get-flash-videos quvi cclive youtube-dl"

#libav
LIBAV="ardour3 ebumeter meterbridge libavcodec-dev libavcodec-extra libavcodec-utils vlc mplayer x42-plugins zam-plugins mda-lv2 "

DEVD="gdb colorgcc git build-essential vim screen indent exuberant-ctags devhelp vim-syntax-gtk libgtk2.0-dev"
#to enable gtk-vim-syntax
#vim-addons install gtk-syntax
#cp /usr/share/doc/vim-syntax-gtk/examples/c.vim ~/.vim/syntax/c.vim


STUFF="python-pip dvgrab glibc-docs manpages-dev liquidsoap liquidsoap-* darkice"

#snowmix
SD="libosmesa6-dev bc tcl-dev libghc-pango-dev libcairo2-dev libsdl-dev libsdl1.2-dev"

DEPS="$DOWND $LIBAV $DEVD $SD $STUFF"

export DEBIAN_FRONTEND=noninteractive
for dep in $DEPS
do
  printf "checking for $dep "
  available=$(dpkg -s $dep | grep installed)
  if [[ -z $available ]]
  then
    echo "$dep not found, installing it (but you need sudo)"
    sudo apt-get -y install $dep
  else
    echo "found."
  fi
done

#livestreamer (https://github.com/chrippa/livestreamer.git)

sudo pip install livestreamer

echo "now some dependencies have been installed, there is a script to build gstreamer in: c-player/scripts/deployGstreamer-dev"
