multimedia/amrnb: Added to 12.0 repository

This commit is contained in:
Heinz Wiesinger 2010-05-11 20:01:12 +02:00 committed by Robby Workman
parent eb5b5c1127
commit 96e232939b
4 changed files with 100 additions and 0 deletions

15
multimedia/amrnb/README Normal file
View File

@ -0,0 +1,15 @@
amrnb - AMR Narrow Band Speech Codec
This library is an effort to link against the amrnb-codec,
standardized by the 3GPP, and used in modern mobile-phones
when recording video or speech, for example.
The library itself is actually just a wrapper around the original
code released by 3GPP.
You will need to get the 26104-700.zip file and place it in the same
directory as the SlackBuild script *before* attempting to build this.
See the following page for more information:
http://www.3gpp.org/ftp/Specs/html-info/26104.htm
A direct link to the zip file is here:
http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-700.zip

View File

@ -0,0 +1,65 @@
#!/bin/sh
# Slackware build script for amrnb
# Written by ppr:kut <hmwiesinger@gmx.at>
# Modified by Robby Workman <rworkman@slackbuilds.org>
PRGNAM=amrnb
VERSION=7.0.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"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--enable-shared \
--disable-static \
--localstatedir=/var
if [ -e $CWD/26104-700.zip ]; then
cp $CWD/26104-700.zip .
else
echo
echo "$CWD/26104-700.zip was not found."
echo "Go back and read $CWD/README again."
echo
exit 1
fi
make
make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
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

View File

@ -0,0 +1,8 @@
PRGNAM="amrnb"
VERSION="7.0.0.0"
HOMEPAGE="http://www.penguin.cz/~utx/amr"
DOWNLOAD="http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.0.tar.bz2"
MD5SUM="c89d657b75c936a061a8eaf12decadf8"
MAINTAINER="ppr:kut"
EMAIL="HMWiesinger@gmx.at"
APPROVED="rworkman"

View File

@ -0,0 +1,12 @@
|-----handy-ruler-----------------------------------------------------|
amrnb: amrnb (AMR Narrow Band Speech Codec)
amrnb:
amrnb: 3GPP Adaptive Multi-Rate Floating-point (AMR)
amrnb: Speech Codec Shared Library. This codec is for
amrnb: example used in mobile-phones.
amrnb:
amrnb: Homepage: http://www.penguin.cz/~utx/amr
amrnb:
amrnb:
amrnb:
amrnb: