summaryrefslogtreecommitdiffstats
path: root/audio/jack-keyboard/jack-keyboard.SlackBuild
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2017-02-18 11:51:09 -0500
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2017-02-21 16:44:56 +0700
commit385d9bd71d68331c30f01549bc30eb428e1008a4 (patch)
tree58aa5a6ab15e99b177edfffcbebd0c3f6111dab5 /audio/jack-keyboard/jack-keyboard.SlackBuild
parente2dc3d34b83dfe53a7fb4b0eecb0b5425ff9f8b8 (diff)
downloadslackbuilds-385d9bd71d68331c30f01549bc30eb428e1008a4.tar.gz
slackbuilds-385d9bd71d68331c30f01549bc30eb428e1008a4.tar.xz
audio/jack-keyboard: Make lash optional again.
Diffstat (limited to 'audio/jack-keyboard/jack-keyboard.SlackBuild')
-rw-r--r--audio/jack-keyboard/jack-keyboard.SlackBuild20
1 files changed, 19 insertions, 1 deletions
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 ..