aboutsummaryrefslogtreecommitdiff
path: root/network/linphone
diff options
context:
space:
mode:
authoradev <adev@linuxmail.org>2010-05-11 22:54:53 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:54:53 +0200
commit7b6e2e8bfed4dcfd7f4da3f82204c1a87e368343 (patch)
tree182d2609ef00c94507f7bafe174156b9b664c848 /network/linphone
parent85056eda73bd98e9ad573ca742ed8fa308c684cc (diff)
network/linphone: Added to 12.1 repository
Diffstat (limited to 'network/linphone')
-rw-r--r--network/linphone/README10
-rw-r--r--network/linphone/doinst.sh3
-rw-r--r--network/linphone/linphone.SlackBuild80
-rw-r--r--network/linphone/linphone.info8
-rw-r--r--network/linphone/slack-desc19
5 files changed, 120 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..bc155e86090cd
--- /dev/null
+++ b/network/linphone/linphone.SlackBuild
@@ -0,0 +1,80 @@
+#!/bin/bash
+
+# Slackware build script for linphone
+
+PRGNAM=linphone
+VERSION=${VERSION:-3.0.0}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+fi
+
+# disable support for video and avoid the dependency on ffmpeg
+if [ "${VIDEO:-yes}" = "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 {} \;
+
+./configure \
+ --prefix=/usr \
+ --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
+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..dae2374d51d4b
--- /dev/null
+++ b/network/linphone/linphone.info
@@ -0,0 +1,8 @@
+PRGNAM="linphone"
+VERSION="3.0.0"
+HOMEPAGE="http://www.linphone.org/"
+DOWNLOAD="http://download.savannah.gnu.org/releases/linphone/3.0.x/sources/linphone-3.0.0.tar.gz"
+MD5SUM="8c883bb267da5d2b6c7c2a5c52641a35"
+MAINTAINER="adev"
+EMAIL="adev@linuxmail.org"
+APPROVED="dsomero" \ No newline at end of file
diff --git a/network/linphone/slack-desc b/network/linphone/slack-desc
new file mode 100644
index 0000000000000..2c3c3755dd160
--- /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: