aboutsummaryrefslogtreecommitdiff
path: root/libraries/OpenAL/OpenAL.SlackBuild
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2010-05-11 14:56:11 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 14:56:11 +0200
commit506fa67bb912568a65e34ecaf0e838337f30f2a2 (patch)
tree1f6ae64dc4975e67e42b793ea0b7f34dd3ca2593 /libraries/OpenAL/OpenAL.SlackBuild
parent7e17b0e28287ae6fda086f90ec3ca649727f90c6 (diff)
libraries/OpenAL: Initial import
Diffstat (limited to 'libraries/OpenAL/OpenAL.SlackBuild')
-rw-r--r--libraries/OpenAL/OpenAL.SlackBuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/libraries/OpenAL/OpenAL.SlackBuild b/libraries/OpenAL/OpenAL.SlackBuild
new file mode 100644
index 0000000000000..51e06baa017f9
--- /dev/null
+++ b/libraries/OpenAL/OpenAL.SlackBuild
@@ -0,0 +1,57 @@
+#!/bin/sh
+
+# Slackware build script for OpenAL
+# Written by Erik Hanson erik@slackbuilds.org
+# Modified by the SlackBuilds.org project
+
+CWD=`pwd`
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-OpenAL
+
+VERSION=0.0.8
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP || exit 1
+rm -rf openal-$VERSION
+tar -zxvf $CWD/openal-$VERSION.tar.gz || exit 1
+cd openal-$VERSION || exit 1
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var/lib || exit 1
+
+make || exit 1
+make install DESTDIR=$PKG || exit 1
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+# This package has no man pages or info pages
+
+mkdir -p $PKG/usr/doc/openal-$VERSION
+cp -a AUTHORS COPYING ChangeLog INSTALL NEWS NOTES README TODO \
+ $PKG/usr/doc/openal-$VERSION
+cat $CWD/OpenAL.SlackBuild > $PKG/usr/doc/openal-$VERSION/openal.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/OpenAL-$VERSION-$ARCH-$BUILD$TAG.tgz