2
0

debian_min_build.sh 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/sh
  2. apt-get clean && apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade
  3. apt-get install -y wget git
  4. wget -O - https://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub | apt-key add -
  5. echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie main" > /etc/apt/sources.list.d/freeswitch.list
  6. 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
  7. cd /usr/src
  8. git clone https://github.com/signalwire/freeswitch.git freeswitch.git
  9. cd freeswitch.git
  10. # The -j argument spawns multiple threads to speed the build process, but causes trouble on some systems
  11. ./bootstrap.sh -j
  12. ./configure -C --enable-portable-binary --enable-sctp\
  13. --prefix=/usr --localstatedir=/var --sysconfdir=/etc \
  14. --with-gnu-ld --with-openssl \
  15. --enable-core-odbc-support \
  16. --enable-core-pgsql-support \
  17. --enable-static-v8 --disable-parallel-build-v8 --enable-amr $@
  18. #CC=clang-3.6 CXX=clang++-3.6 ./configure -C --enable-portable-binary \
  19. # --prefix=/usr --localstatedir=/var --sysconfdir=/etc \
  20. # --with-gnu-ld --with-openssl \
  21. # --enable-core-odbc-support \
  22. # --enable-core-pgsql-support \
  23. # --enable-static-v8 --disable-parallel-build-v8 --enable-address-sanitizer
  24. make
  25. make -j install