summaryrefslogtreecommitdiffstats
path: root/libraries/audiere
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/audiere')
-rw-r--r--libraries/audiere/README5
-rw-r--r--libraries/audiere/audiere.SlackBuild26
2 files changed, 20 insertions, 11 deletions
diff --git a/libraries/audiere/README b/libraries/audiere/README
index 894bb41b0d..8221098ab6 100644
--- a/libraries/audiere/README
+++ b/libraries/audiere/README
@@ -1,9 +1,6 @@
-audiere (High-level audio API)
-
Audiere is a high-level audio API. It can play Ogg Vorbis, MP3,
FLAC, uncompressed WAV, AIFF, MOD, S3M, XM, and IT files. For
audio output, Audiere supports DirectSound or WinMM in Windows,
OSS on Linux and Cygwin, and SGI AL on IRIX.
-Optional dependencies are speex, libcdaudio and dumb (this one
-is not available in SlackBuilds).
+libcdaudio is an optional dependency.
diff --git a/libraries/audiere/audiere.SlackBuild b/libraries/audiere/audiere.SlackBuild
index ce8e65e88f..0fc869c336 100644
--- a/libraries/audiere/audiere.SlackBuild
+++ b/libraries/audiere/audiere.SlackBuild
@@ -1,30 +1,40 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for audiere
# Written by Pablo Santamaria (pablosantamaria@gmail.com)
# Maintained by Klaatu @member.fsf.org
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=audiere
VERSION=${VERSION:-1.9.4}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -83,8 +93,10 @@ cp -a doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc/$PRGNAM-$VERSION -type f | xargs chmod 644
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -f $PKG/usr/lib*/*.la
+
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.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE