#!/bin/bash

#
# install-dependencies-debian
#
# Copyright (C) 2009-11 by RStudio, Inc.
#
# This program is licensed to you under the terms of version 3 of the
# GNU Affero General Public License. This program is distributed WITHOUT
# ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the
# AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.
#
#

set -e

# build/development tools
sudo apt-get -y install build-essential
sudo apt-get -y install pkg-config
sudo apt-get -y install fakeroot
sudo apt-get -y install cmake

# core system libraries
sudo apt-get -y install uuid-dev
sudo apt-get -y install libssl-dev
sudo apt-get -y install libbz2-dev
sudo apt-get -y install libpam-dev

# boost
sudo apt-get -y install libboost-all-dev

# pango cairo
sudo apt-get -y install libpango1.0-dev

# gwt prereqs
sudo apt-get -y install openjdk-6-jdk 
sudo apt-get -y install ant

# gwt
sudo apt-get -y install unzip
cd ../common
./install-gwt
cd ../linux

# desktop dependencies (qt)
if [ "$1" != "--server-only" ]
then
   sudo apt-get -y install qt4-dev-tools
fi







