summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author B. Watson2017-02-18 17:51:09 +0100
committer Willy Sudiarto Raharjo2017-02-21 10:44:56 +0100
commit385d9bd71d68331c30f01549bc30eb428e1008a4 (patch)
tree58aa5a6ab15e99b177edfffcbebd0c3f6111dab5
parente2dc3d34b83dfe53a7fb4b0eecb0b5425ff9f8b8 (diff)
downloadslackbuilds-385d9bd71d68331c30f01549bc30eb428e1008a4.tar.gz
audio/jack-keyboard: Make lash optional again.
-rw-r--r--audio/jack-keyboard/README3
-rw-r--r--audio/jack-keyboard/jack-keyboard.SlackBuild20
2 files changed, 22 insertions, 1 deletions
diff --git a/audio/jack-keyboard/README b/audio/jack-keyboard/README
index e5599e8e05..66b560f1d0 100644
--- a/audio/jack-keyboard/README
+++ b/audio/jack-keyboard/README
@@ -7,6 +7,9 @@ default keyboard mapping is much better - it uses the same layout as
trackers (like Impulse Tracker) did, so you have two and half octaves
under your fingers.
+Optional dependency: lash. By default, this is autodetected. If you want
+to disable building with lash, set LASH=no in the script's environment.
+
This package uses POSIX filesystem capabilities to execute with
elevated privileges (required for realtime audio processing). This
may be considered a security/stability risk. Please read
diff --git a/audio/jack-keyboard/jack-keyboard.SlackBuild b/audio/jack-keyboard/jack-keyboard.SlackBuild
index 7116c80107..356c69176c 100644
--- a/audio/jack-keyboard/jack-keyboard.SlackBuild
+++ b/audio/jack-keyboard/jack-keyboard.SlackBuild
@@ -6,6 +6,9 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20170218 bkw:
+# - Make lash optional.
+
# 20170216 bkw:
# - Updated for v2.7.1. Apparently, upstream released 2.7.1 in 2012, but
# never got around to updating their web page, which still says that
@@ -62,6 +65,20 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+case "${LASH:-auto}" in
+ auto)
+ if pkg-config --exists lash-1.0; then
+ LASHOPT="ON"
+ else
+ LASHOPT="OFF"
+ fi ;;
+ y*|Y*|t*|T*|on|ON|1)
+ LASHOPT="ON" ;;
+ *) LASHOPT="OFF" ;;
+esac
+
+echo "LASHOPT=\"$LASHOPT\""
+
mkdir -p build
cd build
cmake \
@@ -70,7 +87,8 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \
- -DCMAKE_BUILD_TYPE=Release ..
+ -DCMAKE_BUILD_TYPE=Release .. \
+ -DLashEnable=$LASHOPT
make
make install DESTDIR=$PKG
cd ..