network/linphone: Added support for libupnp.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Euan Thoms 2014-08-17 06:53:03 +07:00 committed by Willy Sudiarto Raharjo
parent ef896bae37
commit c97a007b6a
3 changed files with 18 additions and 7 deletions

View file

@ -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.

View file

@ -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 {} \;

View file

@ -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"