diff options
author | Euan Thoms <euan at potensol dot com> | 2017-11-17 22:22:20 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-11-18 12:40:36 +0700 |
commit | 6922e32a949f15a071342f048027902754693bf1 (patch) | |
tree | 86b153c085022da132b5bb7c6ce375a12f91910d /network/linphone/linphone.SlackBuild | |
parent | ba231f2ca5dfb38147f66285d003ae90199f6e30 (diff) | |
download | slackbuilds-6922e32a949f15a071342f048027902754693bf1.tar.gz |
network/linphone: Updated for version 3.12.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/linphone/linphone.SlackBuild')
-rw-r--r-- | network/linphone/linphone.SlackBuild | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/network/linphone/linphone.SlackBuild b/network/linphone/linphone.SlackBuild index de65b8bf6d..07eab0096e 100644 --- a/network/linphone/linphone.SlackBuild +++ b/network/linphone/linphone.SlackBuild @@ -25,23 +25,25 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=linphone -VERSION=${VERSION:-3.9.1} +VERSION=${VERSION:-3.12.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} MOD1NAME=ortp -MOD1VERSION=0.25.0 +MOD1VERSION=1.0.2 +MOD1SRCDIRNAME=${MOD1NAME}-${MOD1VERSION}-0 MOD1DIRNAME=oRTP MOD2NAME=mediastreamer -MOD2VERSION=2.12.1 +MOD2VERSION=2.16.1 +MOD2SRCDIRNAME=${MOD2NAME}-${MOD2VERSION} MOD2DIRNAME=mediastreamer2 if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; + *) ARCH=$( uname -m ) ;; esac fi @@ -50,8 +52,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -65,7 +67,7 @@ else fi DOCS="ABOUT-NLS AUTHORS BUGS COPYING ChangeLog \ - INSTALL NEWS README TODO $CWD/$PRGNAM.SlackBuild" + NEWS README.md TODO $CWD/$PRGNAM.SlackBuild" # enable support for video by default, requires ffmpeg if [ "${VIDEO:-yes}" = "yes" ]; then @@ -97,9 +99,14 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION tar xvf $CWD/$MOD1NAME-$MOD1VERSION.tar.gz -mv $MOD1NAME-$MOD1VERSION $MOD1DIRNAME +mv $MOD1SRCDIRNAME $MOD1DIRNAME tar xvf $CWD/$MOD2NAME-$MOD2VERSION.tar.gz -mv $MOD2NAME-$MOD2VERSION $MOD2DIRNAME +mv $MOD2SRCDIRNAME $MOD2DIRNAME + +# Some patching for silly build issues +sed -i 's|ms_message("Mediastreamer2 factory " MEDIASTREAMER_VERSION " (git: " MS2_GIT_VERSION ") initialized.");|ms_message("Mediastreamer2 factory " MEDIASTREAMER_VERSION " initialized.");|' $MOD2DIRNAME/src/base/msfactory.c +touch coreapi/gitversion.h + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -107,9 +114,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -export LIBZRTPCPP_LIBS="$(pkg-config --libs libzrtpcpp) " -export LIBZRTPCPP_CFLAGS="$(pkg-config --cflags libzrtpcpp) " - +./autogen.sh CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -123,6 +128,7 @@ CXXFLAGS="$SLKCFLAGS" \ --disable-tutorials \ --enable-ipv6 \ --enable-alsa \ + --enable-pulseaudio \ --enable-ldap \ --enable-zrtp \ --with-included-gettext \ @@ -144,6 +150,7 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION chmod 0644 $PKG/usr/doc/$PRGNAM-$VERSION/* +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |