Update source-release.sh

This commit is contained in:
FusionPBX 2017-05-21 03:00:15 -06:00 committed by GitHub
parent 06dffdc930
commit 9c24ce6c42
1 changed files with 6 additions and 2 deletions

View File

@ -14,7 +14,7 @@ echo "Installing the FreeSWITCH source"
#install minimum dependencies
pkg install --yes autoconf automake curl git gmake ldns libedit libtool openssl pcre pkgconf speex sqlite3
pkg install --yes wget sudo libsndfile lua52 opus libmemcached libvorbis libogg tiff memcached
pkg install --yes gcc49 wget sudo libsndfile lua52 opus libmemcached libvorbis libogg tiff memcached
#additional dependencies
#pkg install --yes libshout mpg123 lame
@ -37,7 +37,11 @@ sed -i' ' -e s:'#applications/mod_curl:applications/mod_curl:' /usr/src/freeswit
#sed -i' ' -e s:'#formats/mod_shout:formats/mod_shout:' /usr/src/freeswitch/modules.conf
#disable mod_fsv
sed -i '' -e s:'applications/mod_fsv:#applications/mod_fsv:' /usr/src/freeswitch/modules.conf
#sed -i '' -e s:'applications/mod_fsv:#applications/mod_fsv:' /usr/src/freeswitch/modules.conf
#set the variables
export CC=gcc49
export CFLAGS="-Wno-error -std=gnu99 -Wno-c11-extensions -Wno-deprecated-declarations -Wno-zero-length-array -Wno-incompatible-pointer-types"
#configure the source (additional option --enable-system-lua)
/usr/src/freeswitch/./configure --prefix=/usr/local/freeswitch --enable-core-pgsql-support --disable-fhs