summaryrefslogtreecommitdiff
path: root/network/linphone/linphone.SlackBuild
diff options
context:
space:
mode:
authorEuan Thoms <euan@potensol.com>2014-08-15 18:15:15 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-08-15 23:21:33 +0700
commitc9fbdbee2b97b94c8ee2059f457208c7dab41ea9 (patch)
treed4d9789ffa6431002cddeaaf2512298353747a43 /network/linphone/linphone.SlackBuild
parent3026bf827ebfa8a3d9645a99d08b0e01d0e57fb4 (diff)
downloadslackbuilds-c9fbdbee2b97b94c8ee2059f457208c7dab41ea9.tar.gz
network/linphone: Updated for version 3.7.0 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/linphone/linphone.SlackBuild')
-rw-r--r--network/linphone/linphone.SlackBuild45
1 files changed, 40 insertions, 5 deletions
diff --git a/network/linphone/linphone.SlackBuild b/network/linphone/linphone.SlackBuild
index 9bbf18d150..360f42b68b 100644
--- a/network/linphone/linphone.SlackBuild
+++ b/network/linphone/linphone.SlackBuild
@@ -1,10 +1,31 @@
#!/bin/sh
# Slackware build script for linphone
-# Was written by adev and modified by Eugene Wissner <belka.ew@gmail.com>
+# Was written by adev and modified by Eugene Wissner
+# Now maintained by Euan Thoms <euan at potensol dot com>
+
+# Copyright 2014 Euan Thoms United Kingdom
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=linphone
-VERSION=${VERSION:-3.6.1}
+VERSION=${VERSION:-3.7.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -38,13 +59,20 @@ fi
DOCS="ABOUT-NLS AUTHORS BUGS COPYING ChangeLog \
INSTALL NEWS README TODO $CWD/$PRGNAM.SlackBuild"
-# disable support for video and avoid the dependency on ffmpeg
-if [ "${VIDEO:-no}" = "yes" ]; then
+# enable support for video by default, requires ffmpeg
+if [ "${VIDEO:-yes}" = "yes" ]; then
do_video="--enable-video"
else
do_video="--disable-video"
fi
+# disable support for truespeech by default
+if [ "${TRUESPEECH:-no}" = "yes" ]; then
+ do_truespeech="--enable-truespeech"
+else
+ do_truespeech="--disable-truespeech"
+fi
+
set -e
rm -rf $PKG
@@ -60,6 +88,9 @@ find -L . \
\( -perm 666 -o -perm 664 -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) "
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -68,9 +99,13 @@ CXXFLAGS="$SLKCFLAGS" \
--docdir=/usr/doc \
--mandir=/usr/man \
--disable-static \
+ --disable-tests \
+ --disable-tutorials \
--enable-ipv6 \
--enable-alsa \
- --enable-truespeech \
+ --enable-ldap \
+ --enable-zrtp \
+ $do_truespeech \
$do_video \
--build=$ARCH-slackware-linux