From aa4a6a4a046a1edbf88d9c6b52e43830c0fba491 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 1 Jan 2011 13:59:44 +0100 Subject: [PATCH] Additional fixes for quickbuild. --- qb/config.params.sh | 1 + qb/qb.params.sh | 17 +++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/qb/config.params.sh b/qb/config.params.sh index 3bf0d3305e..34dc9a88d2 100644 --- a/qb/config.params.sh +++ b/qb/config.params.sh @@ -16,3 +16,4 @@ add_command_line_enable OSS "Enable OSS support" auto add_command_line_enable RSOUND "Enable RSound support" auto add_command_line_enable ROAR "Enable RoarAudio support" auto add_command_line_enable AL "Enable OpenAL support" auto +add_command_line_enable JACK "Enable JACK support" auto diff --git a/qb/qb.params.sh b/qb/qb.params.sh index 74ad6645fa..231310d8e5 100644 --- a/qb/qb.params.sh +++ b/qb/qb.params.sh @@ -91,16 +91,17 @@ parse_input() while [ ! -z "$1" ] do - prefix="`echo $1 | sed -e 's|^--prefix=\(\S\S*\)$|\1|' -e 's|\(\S\S*\)/|\1|'`" - - if [ "$prefix" != "$1" ]; then - PREFIX="$prefix" - shift - continue - fi - + case "$1" in + --prefix=*) + prefix="`echo $1 | sed -e 's|^--prefix=\(\S\S*\)$|\1|' -e 's|\(\S\S*\)/$|\1|'`" + + if [ "$prefix" != "$1" ]; then + PREFIX="$prefix" + fi + ;; + --enable-*) enable=`echo $1 | sed 's|^--enable-||'` if [ -z "`echo $COMMAND_LINE_OPTS_ENABLE | grep -i $enable`" ]; then