aboutsummaryrefslogtreecommitdiff
path: root/audio/pulseaudio/pulseaudio.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/pulseaudio/pulseaudio.SlackBuild')
-rw-r--r--audio/pulseaudio/pulseaudio.SlackBuild17
1 files changed, 12 insertions, 5 deletions
diff --git a/audio/pulseaudio/pulseaudio.SlackBuild b/audio/pulseaudio/pulseaudio.SlackBuild
index 3bb8d3b954c8a..299bb3c31866b 100644
--- a/audio/pulseaudio/pulseaudio.SlackBuild
+++ b/audio/pulseaudio/pulseaudio.SlackBuild
@@ -5,7 +5,7 @@
# Written by crocket (crockabiscuit@gmail.com)
PRGNAM=pulseaudio
-VERSION=1.1
+VERSION=${VERSION:-2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -46,7 +46,7 @@ elif ! grep -q ^pulse: /etc/passwd ; then
exit 1
fi
-set -e
+set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -61,6 +61,12 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+if pkg-config --exists orc-0.4 ; then
+ ORC=yes
+else
+ ORC=no
+fi
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -70,9 +76,10 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--disable-tcpwrap \
- --enable-orc=${ORC:-"no"} \
+ --enable-orc=${ORC} \
--disable-static \
- --disable-hal --disable-hal-compat \
+ --disable-hal \
+ --enable-hal-compat \
--disable-solaris \
--disable-waveout \
--with-system-user=pulse \
@@ -94,7 +101,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ABOUT-NLS *GPL LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a *GPL LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install