forked from Mirrors/freeswitch
cd21b67c1d
Enhancements to trace logging, include threads and context ID. Changed default opal_conf.xml to allow more than just G.711 uLaw and not to clutter log file with debug logs. Added to opal_conf.xml item for "disable-transcoding". Updated build/buildopal.sh to use correct ./configure items for PTLib, allow for something other than standard install directory for PTLib/OPAL and be able to easily bind to a specific release of PTLib/OPAL.
62 lines
1.4 KiB
Bash
Executable File
62 lines
1.4 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ -z "$1" ]; then
|
|
INSTALLDIR=/usr/local
|
|
else
|
|
INSTALLDIR="$1"
|
|
fi
|
|
|
|
if [ -z `which svn` ]; then
|
|
echo "Need SVN installed!"
|
|
exit 1
|
|
fi
|
|
|
|
uname -a | grep -qi bsd && MAKE=gmake || MAKE=make
|
|
|
|
#Locate our script, then go up one directory to be in FreeSWITCH root
|
|
cd `dirname $0`
|
|
cd ..
|
|
FS_DIR=`pwd`
|
|
|
|
export PKG_CONFIG_PATH=$INSTALLDIR/lib/pkgconfig
|
|
|
|
|
|
# Version and patch for PTLib and OPAL. These are almost always in lock
|
|
# step so shoud be the same unless you really know ehat you are doing!
|
|
# The PATCH should be set to a specific"snapshot release" when things
|
|
# are nice and stable.
|
|
|
|
VERSION=10
|
|
#PATCH=6
|
|
|
|
if [ -z "$PATCH" ]; then
|
|
PTLIB_VERSION=branches/v2_$VERSION
|
|
OPAL_VERSION=branches/v3_$VERSION
|
|
else
|
|
PTLIB_VERSION=tags/v2_${VERSION}_$PATCH
|
|
OPAL_VERSION=tags/v3_${VERSION}_$PATCH
|
|
fi
|
|
|
|
|
|
cd $FS_DIR/libs
|
|
svn co https://opalvoip.svn.sourceforge.net/svnroot/opalvoip/ptlib/$PTLIB_VERSION ptlib
|
|
cd $FS_DIR/libs/ptlib
|
|
# LDAP disabled due to conflict wit libs in spidermonkey
|
|
./configure --disable-plugins --disable-openldap --prefix=$INSTALLDIR
|
|
${MAKE}
|
|
sudo ${MAKE} install
|
|
|
|
cd $FS_DIR/libs
|
|
svn co https://opalvoip.svn.sourceforge.net/svnroot/opalvoip/opal/$OPAL_VERSION opal
|
|
cd $FS_DIR/libs/opal
|
|
./configure --disable-plugins --prefix=$INSTALLDIR
|
|
$MAKE
|
|
sudo $MAKE install
|
|
|
|
echo "======================================"
|
|
echo "PTLib/OPAL build and install completed"
|
|
echo "======================================"
|
|
|
|
cd $FS_DIR
|
|
$MAKE mod_opal-install
|