diff options
author | Eugene Wissner <belka.ew@gmail.com> | 2010-08-24 00:23:17 -0400 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-08-29 15:32:12 -0500 |
commit | 32376e2b76b9415697b832cf686ecb9b0b3b49fd (patch) | |
tree | 89bb2ddc2f3565fef35012b52c7d40801d6d1f5d /network/linphone | |
parent | 4996c7cae22065b510848c3054e4e79da0a36c87 (diff) |
network/linphone: Added (SIP video-phone)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/linphone')
-rw-r--r-- | network/linphone/README | 10 | ||||
-rw-r--r-- | network/linphone/doinst.sh | 3 | ||||
-rw-r--r-- | network/linphone/linphone.SlackBuild | 100 | ||||
-rw-r--r-- | network/linphone/linphone.info | 10 | ||||
-rw-r--r-- | network/linphone/slack-desc | 19 |
5 files changed, 142 insertions, 0 deletions
diff --git a/network/linphone/README b/network/linphone/README new file mode 100644 index 0000000000000..46658726eb25b --- /dev/null +++ b/network/linphone/README @@ -0,0 +1,10 @@ +Linphone is an audio and video Internet phone with GTK+ and +console interfaces. It uses the SIP protocol, and is compatible +with most SIP clients and gateways. It uses various audio and +video codecs such as Speex, GSM, G711, ilbc, Theora, H263-1998, +MPEG4, and snow. + +Linphone requires libosip2, libeXosip2 and speex. For video support +you'll also need ffmpeg. To disable support for video just pass +VIDEO=no to the script. +All depenencies are available from SlackBuilds.org diff --git a/network/linphone/doinst.sh b/network/linphone/doinst.sh new file mode 100644 index 0000000000000..5fb28930db0b9 --- /dev/null +++ b/network/linphone/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/network/linphone/linphone.SlackBuild b/network/linphone/linphone.SlackBuild new file mode 100644 index 0000000000000..f9bd243aaf62f --- /dev/null +++ b/network/linphone/linphone.SlackBuild @@ -0,0 +1,100 @@ +#!/bin/bash + +# Slackware build script for linphone +# was written by adev and modified +# by Eugene Wissner <belka.ew@gmail.com> + +PRGNAM=linphone +VERSION=${VERSION:-3.3.2} +BUILD=${BUILD:-2} +TAG=${TAG:-_SBo} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +# disable support for video and avoid the dependency on ffmpeg +if [ "${VIDEO:-no}" = "yes" ]; then + do_video="--enable-video" +else + do_video="--disable-video" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -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 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --docdir=/usr/doc \ + --mandir=/usr/man \ + --disable-static \ + --enable-ipv6 \ + --enable-alsa \ + --enable-truespeech \ + $do_video \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + +DOCS="ABOUT-NLS AUTHORS BUGS COPYING ChangeLog \ + INSTALL NEWS README TODO $CWD/$PRGNAM.SlackBuild" +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION +chmod 0644 $PKG/usr/doc/$PRGNAM-$VERSION/* + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/network/linphone/linphone.info b/network/linphone/linphone.info new file mode 100644 index 0000000000000..ad3e9f94c08b8 --- /dev/null +++ b/network/linphone/linphone.info @@ -0,0 +1,10 @@ +PRGNAM="linphone" +VERSION="3.3.2" +HOMEPAGE="http://www.linphone.org/" +DOWNLOAD="http://download.savannah.gnu.org/releases/linphone/3.3.x/sources/linphone-3.3.2.tar.gz" +DOWNLOAD_x86_64="" +MD5SUM="6ede06d2cd67aa8d495296afd4ba53cb" +MD5SUM_x86_64="" +MAINTAINER="Eugene Wissner" +EMAIL="belka.ew@gmail.com" +APPROVED="dsomero" diff --git a/network/linphone/slack-desc b/network/linphone/slack-desc new file mode 100644 index 0000000000000..a88dab7c7849d --- /dev/null +++ b/network/linphone/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler-------------------------------------------------| +linphone: linphone (SIP video-phone) +linphone: +linphone: Linphone is an audio and video Internet phone with GTK+ and +linphone: console interfaces. It uses the SIP protocol, and is compatible +linphone: with most SIP clients and gateways. It uses various audio and +linphone: video codecs such as Speex, GSM, G711, ilbc, Theora, H263-1998, +linphone: MPEG4, and snow. +linphone: +linphone: Homepage: http://www.linphone.org/index.php/eng +linphone: +linphone: |