summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-01-17 19:14:11 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-18 12:25:22 +0700
commit410e271147da7273accf46f16de8eab51bc9324e (patch)
tree096d1b304a8aa790882b4f9ee79d99f75ed8da96
parent8cdc95360034d2f44f19e2778b5baf7823b1c0c2 (diff)
downloadslackbuilds-410e271147da7273accf46f16de8eab51bc9324e.tar.gz
development/portaudio: Fix builds with jack/jack2.
Signed-off-by: B. Watson <yalhcru@gmail.com>
-rw-r--r--development/portaudio/portaudio.SlackBuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/development/portaudio/portaudio.SlackBuild b/development/portaudio/portaudio.SlackBuild
index 3800cb46da..14345e8b9e 100644
--- a/development/portaudio/portaudio.SlackBuild
+++ b/development/portaudio/portaudio.SlackBuild
@@ -73,6 +73,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# 20200117 bkw: If jack (either v1 or v2) is installed, parallel builds
+# of portaudio fail. Could just hardcode -j1 in make command, but let's not
+# penalize those who aren't affected by it.
+pkg-config --exists jack && JFLAG=-j1
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -84,7 +89,7 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-cxx \
--build=$ARCH-slackware-linux
-make
+make $JFLAG
make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \