summaryrefslogtreecommitdiffstats
path: root/audio/listener/listener.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/listener/listener.SlackBuild')
-rw-r--r--audio/listener/listener.SlackBuild17
1 files changed, 13 insertions, 4 deletions
diff --git a/audio/listener/listener.SlackBuild b/audio/listener/listener.SlackBuild
index f31300b9de..95affdeeac 100644
--- a/audio/listener/listener.SlackBuild
+++ b/audio/listener/listener.SlackBuild
@@ -15,6 +15,7 @@
# Updated to version 2.0.1 09/10/2011
#
+# 20211224 bkw: BUILD=2, fix for latest portaudio.
# 20170813 bkw:
# - take over maintenance. If you want to buy me a beer too, I won't stop you!
# - update for v2.2 (which has been out for 4+ years now)
@@ -26,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=listener
VERSION=${VERSION:-2.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +39,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# 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
@@ -76,6 +74,17 @@ chown -R root:root .
find . -type f -exec chmod 644 {} +
find . -type d -exec chmod 755 {} +
+# 20211224 bkw: PortAudio API has changed: we have to call
+# Pa_GetDefaultInputDevice() to get the default input device,
+# it's no longer device #0. This matters because e.g. on my system,
+# device zero is the HDMI output to my monitor's speakers... which of
+# course doesn't have a microphone or line input. Ideally, listener
+# would let you list the input devices and choose the one you want,
+# but that's more work than I want to do right now. You could set
+# PA_RECOMMENDED_OUTPUT_DEVICE in the environment, but there's no
+# handy tool to list the available device numbers.
+patch -p1 < $CWD/portaudio_default_input_device.diff
+
# fix hardcoded config file path
sed -i 's,/usr/local/etc,/etc,g' $PRGNAM.h manual.html