aboutsummaryrefslogtreecommitdiff
path: root/audio/volumeicon/volumeicon.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/volumeicon/volumeicon.SlackBuild')
-rw-r--r--audio/volumeicon/volumeicon.SlackBuild16
1 files changed, 13 insertions, 3 deletions
diff --git a/audio/volumeicon/volumeicon.SlackBuild b/audio/volumeicon/volumeicon.SlackBuild
index f8b84ce2c222..34482764c705 100644
--- a/audio/volumeicon/volumeicon.SlackBuild
+++ b/audio/volumeicon/volumeicon.SlackBuild
@@ -5,7 +5,7 @@
# Written by Daniel Cash
PRGNAM=volumeicon
-VERSION=${VERSION:-0.2.1}
+VERSION=${VERSION:-0.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -18,7 +18,6 @@ if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export ARCH=i486 ;;
arm*) export ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;;
esac
fi
@@ -37,8 +36,18 @@ else
LIBDIRSUFFIX=""
fi
+# Pass OSS=yes if you want to build with OSS support. Enabling this will
+# disable ALSA support.
+OSS=${OSS:-"NO"}
+
set -e
+if [ "${OSS:-yes}" = "yes" ]; then
+ oss_params="--enable-oss"
+else
+ oss_params=""
+fi
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -61,6 +70,7 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
+ $oss_params \
--build=$ARCH-slackware-linux
make
@@ -68,7 +78,7 @@ make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING \
+ AUTHORS COPYING ChangeLog NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild