#!/usr/bin/env bash if [[ "$EUID" -ne 0 ]]; then echo "Sorry, you need to run this as root" exit 1 fi set -e # apt-get update # apt-get install -y autoconf file gcc git libc-dev make pkg-config git git clone git://git.linphone.org/bctoolbox.git cd bctoolbox apt-get install -y cmake libmbedtls-dev cmake . -DENABLE_POLARSSL=NO -DENABLE_MBEDTLS=YES -DENABLE_TESTS=NO -DENABLE_TESTS_COMPONENT=NO make && make install cd .. git clone git://git.linphone.org/belle-sip.git cd belle-sip apt-get install -y libantlr3c-dev antlr3 zlib1g-dev cmake . -DENABLE_TESTS=NO make && make install cd .. git clone git://git.linphone.org/ortp.git cd ortp cmake . -DENABLE_TESTS=NO -DENABLE_DOC=NO make && make install cd .. git clone git://git.linphone.org/mediastreamer2.git cd mediastreamer2 apt-get install -y libasound2-dev libpulse-dev libsrtp0-dev libspeexdsp-dev libavdevice-dev libspeex-dev cmake . -DENABLE_UNIT_TESTS=NO -DENABLE_DOC=NO -DENABLE_V4L=NO -DENABLE_VIDEO=NO -DENABLE_SRTP=YES -DENABLE_PULSEAUDIO=YES -DENABLE_ALSA=YES -DENABLE_SPEEX_DSP=YES -DENABLE_SPEEX_CODEC=YES make && make install cd .. git clone git://git.linphone.org/belr.git cd belr cmake . make && make install cd .. git clone git://git.linphone.org/bzrtp.git cd bzrtp cmake . -DENABLE_TESTS=NO make && make install cd .. git clone git://git.linphone.org/linphone.git cd linphone apt-get install -y libxml2-dev libsqlite3-dev cmake . -DENABLE_VCARD=NO -DENABLE_TOOLS=NO -DENABLE_ASSISTANT=NO -DENABLE_UNIT_TESTS=NO -DENABLE_GTK_UI=NO -DENABLE_DOC=NO -DENABLE_VIDEO=NO -DENABLE_TUTORIALS=NO -DENABLE_JAVADOC=NO -DENABLE_CSHARP_WRAPPER=NO -DENABLE_CXX_WRAPPER=NO -DENABLE_SQLITE_STORAGE=YES make && make install cd ..