From 70eb5f109f3e8e0906f54139677965735799ec36 Mon Sep 17 00:00:00 2001 From: Mauro Giachero Date: Wed, 12 May 2010 23:32:16 +0200 Subject: network/ilbc: Added to 12.2 repository --- network/ilbc/README | 4 ++ network/ilbc/configure | 70 ++++++++++++++++++++++++++++++++ network/ilbc/extract-code.sh | 81 +++++++++++++++++++++++++++++++++++++ network/ilbc/gips_iLBClicense.pdf | Bin 0 -> 47033 bytes network/ilbc/ilbc.SlackBuild | 83 ++++++++++++++++++++++++++++++++++++++ network/ilbc/ilbc.info | 8 ++++ network/ilbc/slack-desc | 19 +++++++++ 7 files changed, 265 insertions(+) create mode 100644 network/ilbc/README create mode 100644 network/ilbc/configure create mode 100644 network/ilbc/extract-code.sh create mode 100644 network/ilbc/gips_iLBClicense.pdf create mode 100644 network/ilbc/ilbc.SlackBuild create mode 100644 network/ilbc/ilbc.info create mode 100644 network/ilbc/slack-desc (limited to 'network/ilbc') diff --git a/network/ilbc/README b/network/ilbc/README new file mode 100644 index 0000000000000..bca15d2b9b181 --- /dev/null +++ b/network/ilbc/README @@ -0,0 +1,4 @@ +iLBC (internet Low Bitrate Codec) is a speech codec suitable for robust voice +communication over IP, and is designed for narrow band speech. The iLBC +codec enables graceful speech quality degradation in the case of lost frames, +which occurs in connection with lost or delayed IP packets. diff --git a/network/ilbc/configure b/network/ilbc/configure new file mode 100644 index 0000000000000..5efa4417fb8f7 --- /dev/null +++ b/network/ilbc/configure @@ -0,0 +1,70 @@ +#!/bin/sh + +# Copyright 2008 Mauro Giachero (mauro dot giachero at gmail dot com) +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# Prepare iLBC build environment + +set -e + +# [1/2] Prepare some basic documentation +cat >COPYING <Makefile <&2 + exit 1 + fi + + if [ "$LINE" = "APPENDIX A. Reference Implementation" ]; then + break + fi +done + +# Read the source code +while :; do + if ! IFS= read LINE ; then + break + fi + + if [ "${LINE:0:2}" = "A." ]; then # Source file begin + FILENAME=`echo ${LINE:6}` + if [ -e $FILENAME ]; then + echo "Error: file '$FILENAME' already exists!" + exit 2 + fi + echo "$FILENAME" + elif [ "${LINE:0:8}" = "Andersen" ]; then # Footer + continue + elif [ "${LINE:0:3}" = "RFC" ]; then # Header + continue + elif [ "$LINE" = "Authors' Addresses" ]; then # Appendix end + break + elif [ "$FILENAME" != "" ]; then # File content + echo "$LINE" >>$FILENAME + fi +done + +# One extra check, just in case +if [ "$FILENAME" = "" ]; then + echo "Error: no source file found!" + exit 3 +fi + +# Apparently everything went ok +exit 0 diff --git a/network/ilbc/gips_iLBClicense.pdf b/network/ilbc/gips_iLBClicense.pdf new file mode 100644 index 0000000000000..b3a40c6ba758b Binary files /dev/null and b/network/ilbc/gips_iLBClicense.pdf differ diff --git a/network/ilbc/ilbc.SlackBuild b/network/ilbc/ilbc.SlackBuild new file mode 100644 index 0000000000000..54de52d37de35 --- /dev/null +++ b/network/ilbc/ilbc.SlackBuild @@ -0,0 +1,83 @@ +#!/bin/sh + +# Slackware build script for ilbc + +# Copyright 2008 Mauro Giachero (mauro dot giachero at gmail dot com) +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=ilbc +VERSION=${VERSION:-rfc3951} +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 + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +# Code extraction is peculiar... +sh $CWD/extract-code.sh $PRGNAM-$VERSION < $CWD/$VERSION.txt +cp $CWD/configure $PRGNAM-$VERSION +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 + +make +make install DESTDIR=$PKG + +( cd $PKG + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING $PKG/usr/doc/$PRGNAM-$VERSION +for i in $PRGNAM.SlackBuild configure extract-code.sh gips_iLBClicense.pdf ; + do cat $CWD/$i > $PKG/usr/doc/$PRGNAM-$VERSION/$i ; +done +chown -R root:root $PKG/usr/doc/ + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/network/ilbc/ilbc.info b/network/ilbc/ilbc.info new file mode 100644 index 0000000000000..ee553727ba697 --- /dev/null +++ b/network/ilbc/ilbc.info @@ -0,0 +1,8 @@ +PRGNAM="ilbc" +VERSION="rfc3951" +HOMEPAGE="http://www.ilbcfreeware.org/" +DOWNLOAD="http://www.ietf.org/rfc/rfc3951.txt" +MD5SUM="984affd9bf2053064d744a2ccec82289" +MAINTAINER="Mauro Giachero" +EMAIL="mauro dot giachero at gmail dot com" +APPROVED="rworkman" diff --git a/network/ilbc/slack-desc b/network/ilbc/slack-desc new file mode 100644 index 0000000000000..a6c0a2801d535 --- /dev/null +++ b/network/ilbc/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------------------------------------------------------| +ilbc: iLBC (internet Low Bitrate Codec) +ilbc: +ilbc: iLBC is a speech codec suitable for robust voice communication over +ilbc: IP, and is designed for narrow band speech. The iLBC codec enables +ilbc: graceful speech quality degradation in the case of lost frames, which +ilbc: occurs in connection with lost or delayed IP packets. +ilbc: iLBC is free for non-commercial use. Please read the full license +ilbc: for details and how to use iLBC in commercial applications. +ilbc: +ilbc: Homepage: http://www.ilbcfreeware.org/ +ilbc: -- cgit v1.2.3