From f3fffb2dc5f216c76207268f9f46b8db3d8437ac Mon Sep 17 00:00:00 2001 From: Damien Goutte-Gattat Date: Fri, 20 May 2016 18:17:02 +0200 Subject: [PATCH] xap/linphone: Upgraded to linphone-3.9.1. --- xap/linphone/checksums | 3 ++ xap/linphone/linphone-3.7.0.tar.gz.sha1 | 1 - xap/linphone/linphone.SlackBuild | 37 ++++++++++++++++++------- 3 files changed, 30 insertions(+), 11 deletions(-) create mode 100644 xap/linphone/checksums delete mode 100644 xap/linphone/linphone-3.7.0.tar.gz.sha1 diff --git a/xap/linphone/checksums b/xap/linphone/checksums new file mode 100644 index 00000000..935cc84c --- /dev/null +++ b/xap/linphone/checksums @@ -0,0 +1,3 @@ +f3924f15a2cd03df17b9a8dbdfa35abf73c608d5 linphone-3.9.1.tar.gz +f2467b2ffcaa63bfdfc7ac51c40ac50c38ad6289 mediastreamer-2.12.1.tar.gz +ac4e4ed7a67bef1a57c0c2c8168f4f0bc470d7c4 ortp-0.25.0.tar.gz diff --git a/xap/linphone/linphone-3.7.0.tar.gz.sha1 b/xap/linphone/linphone-3.7.0.tar.gz.sha1 deleted file mode 100644 index f0d264c2..00000000 --- a/xap/linphone/linphone-3.7.0.tar.gz.sha1 +++ /dev/null @@ -1 +0,0 @@ -19e8e8c047a8b74aa06c73d70b2aeac851203e47 linphone-3.7.0.tar.gz diff --git a/xap/linphone/linphone.SlackBuild b/xap/linphone/linphone.SlackBuild index bc299676..ea5a6f86 100755 --- a/xap/linphone/linphone.SlackBuild +++ b/xap/linphone/linphone.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash # Build script for Slackware -# Copyright (C) 2010,2011,2012,2013,2014 Damien Goutte-Gattat +# Copyright (C) 2010,2011,2012,2013,2014,2016 Damien Goutte-Gattat # # Redistribution and use of this script, with or without modifications, # is permitted provided that the following conditions are met: @@ -25,14 +25,22 @@ # Latest linphone sourcecode is available at: # . # -# Depends: l/belle-sip, l/zrtpcpp +# Depends: l/belle-sip, l/bzrtp # Recommends: xap/ffmpeg -# Source package infos +# Source packages info NAMESRC=${NAMESRC:-linphone} -VERSION=${VERSION:-3.7.0} +VERSION=${VERSION:-3.9.1} ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} -WGET=${WGET:-http://download.savannah.gnu.org/releases/linphone/3.7.x/sources/$ARCHIVE} +WGET=${WGET:-http://download.savannah.gnu.org/releases/linphone/3.9.x/sources/$ARCHIVE} + +ORTP_VERSION=0.25.0 +ORTP_ARCHIVE=ortp-$ORTP_VERSION.tar.gz +ORTP_WGET=http://download.savannah.gnu.org/releases/linphone/ortp/sources/$ORTP_ARCHIVE + +MEDIASTREAMER_VERSION=2.12.1 +MEDIASTREAMER_ARCHIVE=mediastreamer-$MEDIASTREAMER_VERSION.tar.gz +MEDIASTREAMER_WGET=http://download.savannah.gnu.org/releases/linphone/mediastreamer/$MEDIASTREAMER_ARCHIVE # Build infos NAMEPKG=${NAMEPKG:-linphone} @@ -74,12 +82,20 @@ x86_64) ;; esac -# Get and verify the source archive +# Get and verify the source archives if [ ! -r $ARCHIVE ]; then wget -c -O $ARCHIVE.part "$WGET" mv $ARCHIVE.part $ARCHIVE fi -sha1sum -c $ARCHIVE.sha1 +if [ ! -r $ORTP_ARCHIVE ]; then + wget -c -O $ORTP_ARCHIVE.part "$ORTP_WGET" + mv $ORTP_ARCHIVE.part $ORTP_ARCHIVE +fi +if [ ! -r $MEDIASTREAMER_ARCHIVE ]; then + wget -c -O $MEDIASTREAMER_ARCHIVE.part "$MEDIASTREAMER_WGET" + mv $MEDIASTREAMER_ARCHIVE.part $MEDIASTREAMER_ARCHIVE +fi +sha1sum -c checksums NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1) # Get forked srtp library @@ -108,6 +124,10 @@ cd $TMP echo "Building $ARCHIVE..." tar xf $CWD/$ARCHIVE cd $NAME +tar xf $CWD/$ORTP_ARCHIVE +mv ortp-$ORTP_VERSION oRTP +tar xf $CWD/$MEDIASTREAMER_ARCHIVE +mv mediastreamer-$MEDIASTREAMER_VERSION mediastreamer2 CFLAGS=$CPUOPT \ CXXFLAGS=$CPUOPT \ ./configure \ @@ -131,9 +151,6 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; # Install the documentation mv $PKG/usr/share/doc $PKG/usr/doc -mv $PKG/usr/doc/mediastreamer-*/html $PKG/usr/doc/$NAME/mediastreamer -mv $PKG/usr/doc/ortp-*/html $PKG/usr/doc/$NAME/ortp -rmdir $PKG/usr/doc/mediastreamer-* $PKG/usr/doc/ortp-* rm -rf $PKG/usr/share/gnome/help install -m 644 AUTHORS BUGS COPYING ChangeLog NEWS README TODO \ $PKG/usr/doc/$NAME