From 385d9bd71d68331c30f01549bc30eb428e1008a4 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 18 Feb 2017 11:51:09 -0500 Subject: audio/jack-keyboard: Make lash optional again. --- audio/jack-keyboard/README | 3 +++ audio/jack-keyboard/jack-keyboard.SlackBuild | 20 +++++++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) (limited to 'audio') 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 .. -- cgit v1.2.3