aboutsummaryrefslogtreecommitdiff
path: root/audio/jack-keyboard
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-02-18 11:51:09 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-02-21 16:44:56 +0700
commit385d9bd71d68331c30f01549bc30eb428e1008a4 (patch)
tree58aa5a6ab15e99b177edfffcbebd0c3f6111dab5 /audio/jack-keyboard
parente2dc3d34b83dfe53a7fb4b0eecb0b5425ff9f8b8 (diff)
audio/jack-keyboard: Make lash optional again.
Diffstat (limited to 'audio/jack-keyboard')
-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 e5599e8e0506..66b560f1d048 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 7116c8010734..356c69176c61 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 ..