2017-02-08 12:42:42 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
apt-get clean && apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade
|
|
|
|
|
|
|
|
apt-get install -y wget git
|
|
|
|
|
|
|
|
wget -O - https://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub | apt-key add -
|
|
|
|
|
|
|
|
echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie main" > /etc/apt/sources.list.d/freeswitch.list
|
|
|
|
|
2021-12-21 15:20:47 -05:00
|
|
|
apt-get update && apt-get install -y libtool libjpeg62-turbo-dev ntpdate libfreetype6-dev git-buildpackage doxygen yasm gdb git build-essential automake autoconf wget uuid-dev zlib1g-dev libncurses5-dev libssl-dev libpcre3-dev libcurl4-openssl-dev libldns-dev libedit-dev libspeexdsp-dev libsqlite3-dev perl libgdbm-dev libdb-dev bison pkg-config ccache libpng16-dev libpng12-dev libopenal-dev libbroadvoice-dev libcodec2-dev libflite-dev libg7221-dev libilbc-dev libsilk-dev liblua5.2-dev libopus-dev libsndfile-dev libavformat-dev libavcodec-extra libswscale-dev libx264-dev libperl-dev unixodbc-dev libpq-dev libsctp-dev
|
2017-02-08 12:42:42 -05:00
|
|
|
|
|
|
|
cd /usr/src
|
|
|
|
|
2019-10-01 11:57:25 -04:00
|
|
|
git clone https://github.com/signalwire/freeswitch.git freeswitch.git
|
2017-02-08 12:42:42 -05:00
|
|
|
|
|
|
|
cd freeswitch.git
|
|
|
|
|
|
|
|
# The -j argument spawns multiple threads to speed the build process, but causes trouble on some systems
|
|
|
|
./bootstrap.sh -j
|
|
|
|
|
2017-02-08 13:39:17 -05:00
|
|
|
./configure -C --enable-portable-binary --enable-sctp\
|
2017-02-08 12:42:42 -05:00
|
|
|
--prefix=/usr --localstatedir=/var --sysconfdir=/etc \
|
2017-02-08 14:11:58 -05:00
|
|
|
--with-gnu-ld --with-openssl \
|
2022-10-28 11:34:18 -04:00
|
|
|
--enable-core-odbc-support \
|
2017-02-08 12:42:42 -05:00
|
|
|
--enable-core-pgsql-support \
|
|
|
|
--enable-static-v8 --disable-parallel-build-v8 --enable-amr $@
|
|
|
|
|
|
|
|
#CC=clang-3.6 CXX=clang++-3.6 ./configure -C --enable-portable-binary \
|
|
|
|
# --prefix=/usr --localstatedir=/var --sysconfdir=/etc \
|
2017-02-08 14:11:58 -05:00
|
|
|
# --with-gnu-ld --with-openssl \
|
2022-10-28 11:34:18 -04:00
|
|
|
# --enable-core-odbc-support \
|
2017-02-08 12:42:42 -05:00
|
|
|
# --enable-core-pgsql-support \
|
|
|
|
# --enable-static-v8 --disable-parallel-build-v8 --enable-address-sanitizer
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
make -j install
|