summaryrefslogtreecommitdiff
path: root/network/linphone
diff options
context:
space:
mode:
authorEuan Thoms <euan@potensol.com>2014-08-17 06:53:03 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-08-17 06:53:03 +0700
commitc97a007b6a1d1c1753ba5a60c12df147fdc79766 (patch)
tree339d84017a840c1e716db65c7fffdfc96186c2ee /network/linphone
parentef896bae3797e50d308cf837f1ab53d658b3f977 (diff)
downloadslackbuilds-c97a007b6a1d1c1753ba5a60c12df147fdc79766.tar.gz
network/linphone: Added support for libupnp.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/linphone')
-rw-r--r--network/linphone/README3
-rw-r--r--network/linphone/linphone.SlackBuild20
-rw-r--r--network/linphone/linphone.info2
3 files changed, 18 insertions, 7 deletions
diff --git a/network/linphone/README b/network/linphone/README
index a424e3419b..0607e20ad7 100644
--- a/network/linphone/README
+++ b/network/linphone/README
@@ -7,5 +7,8 @@ MPEG4, VP8 and snow.
Video support is enabled by default, but can be disabled and thus negating the need for ffmpeg.
To disable support for video just pass VIDEO=no to the script.
+UPNP support is enabled by default, but can be disabled and thus negating the need for libupnp.
+To disable support for UPNP just pass UPNP=no to the script.
+
Truespeech is disabled by default, but can be enabled.
To enable support for Truespeech just pass TRUESPEECH=yes to the script.
diff --git a/network/linphone/linphone.SlackBuild b/network/linphone/linphone.SlackBuild
index 360f42b68b..a6145a2415 100644
--- a/network/linphone/linphone.SlackBuild
+++ b/network/linphone/linphone.SlackBuild
@@ -26,7 +26,7 @@
PRGNAM=linphone
VERSION=${VERSION:-3.7.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -66,6 +66,13 @@ else
do_video="--disable-video"
fi
+# enable support for UPNP by default, requires libupnp
+if [ "${UPNP:-yes}" = "yes" ]; then
+ do_upnp="--enable-upnp"
+else
+ do_upnp="--disable-upnp"
+fi
+
# disable support for truespeech by default
if [ "${TRUESPEECH:-no}" = "yes" ]; then
do_truespeech="--enable-truespeech"
@@ -83,10 +90,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -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) "
@@ -107,12 +114,13 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-zrtp \
$do_truespeech \
$do_video \
+ $do_upnp \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
diff --git a/network/linphone/linphone.info b/network/linphone/linphone.info
index 95f0066c9f..9130a733c1 100644
--- a/network/linphone/linphone.info
+++ b/network/linphone/linphone.info
@@ -5,6 +5,6 @@ DOWNLOAD="http://download-mirror.savannah.gnu.org/releases/linphone/3.7.x/source
MD5SUM="6978492712bdacd452e375254d6033ae"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="speex ffmpeg belle-sip linphone-srtp libzrtpcpp"
+REQUIRES="speex ffmpeg belle-sip linphone-srtp libzrtpcpp libupnp"
MAINTAINER="Euan Thoms"
EMAIL="euan at potensol dot com"