summaryrefslogtreecommitdiffstats
path: root/network/linphone/linphone.SlackBuild
diff options
context:
space:
mode:
author Euan Thoms2014-08-17 01:53:03 +0200
committer Willy Sudiarto Raharjo2014-08-17 01:53:03 +0200
commitc97a007b6a1d1c1753ba5a60c12df147fdc79766 (patch)
tree339d84017a840c1e716db65c7fffdfc96186c2ee /network/linphone/linphone.SlackBuild
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/linphone.SlackBuild')
-rw-r--r--network/linphone/linphone.SlackBuild20
1 files changed, 14 insertions, 6 deletions
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 {} \;