scripts: Dynamically link to system-wide NTK, if found.
This commit is contained in:
parent
3c01a8a72a
commit
21ba2e35e5
2
lib/ntk
2
lib/ntk
|
@ -1 +1 @@
|
|||
Subproject commit e1d51cede393ab3993ccf3ec8d7b44ef801dc13b
|
||||
Subproject commit 2d774d43691316d27abb753bc7eb4859856690aa
|
|
@ -16,8 +16,7 @@ begin_tests
|
|||
|
||||
require_command ar ar
|
||||
require_command makedepend makedepend
|
||||
require_FLTK 1.3.0 images
|
||||
require_command FLUID lib/ntk/fluid/fluid
|
||||
require_NTK 1.3.0 images
|
||||
require_package JACK 0.103.0 jack
|
||||
require_package lrdf 0.4.0 lrdf
|
||||
require_package liblo 0.23 liblo
|
||||
|
|
|
@ -270,6 +270,7 @@ require_command ()
|
|||
fi
|
||||
|
||||
append "$1=$name"
|
||||
eval "${1}='${name}'"
|
||||
}
|
||||
|
||||
require_package ()
|
||||
|
@ -358,16 +359,27 @@ hostname_resolvable ()
|
|||
ping -c1 `hostname` >/dev/null 2>/dev/null
|
||||
}
|
||||
|
||||
require_FLTK ()
|
||||
require_NTK ()
|
||||
{
|
||||
local use
|
||||
local appendflags
|
||||
local is_local
|
||||
|
||||
is_local=
|
||||
|
||||
echo -n "Checking for ${BOLD}NTK${SGR0}..."
|
||||
|
||||
if [ -n "`which ntk-config`" ]
|
||||
then
|
||||
echo "found system NTK..."
|
||||
require_command ntk_config ntk-config
|
||||
else
|
||||
echo "no system NTK found... checking for bundled version..."
|
||||
require_command ntk_config lib/ntk/ntk-config
|
||||
is_local=yes
|
||||
fi
|
||||
|
||||
echo -n "Checking for ${BOLD}FLTK${SGR0}..."
|
||||
|
||||
FLTK_VERSION=`lib/ntk/ntk-config --version`
|
||||
FLTK_VERSION=`${ntk_config} --version`
|
||||
|
||||
if ! test_version $FLTK_VERSION $1
|
||||
then
|
||||
|
@ -377,6 +389,13 @@ require_FLTK ()
|
|||
ok $FLTK_VERSION
|
||||
fi
|
||||
|
||||
if [ "x$is_local" = "xyes" ]
|
||||
then
|
||||
require_command FLUID lib/ntk/fluid/ntk-fluid
|
||||
else
|
||||
require_command FLUID ntk-fluid
|
||||
fi
|
||||
|
||||
use=
|
||||
appendflags=
|
||||
|
||||
|
@ -389,7 +408,7 @@ require_FLTK ()
|
|||
use="$use --use-$1"
|
||||
done
|
||||
|
||||
append "FLTK_LIBS=`lib/ntk/ntk-config $use --libs | sed 's/,\\?--as-needed//g'`"
|
||||
append "FLTK_LDFLAGS=`lib/ntk/ntk-config $use --ldflags | sed 's/,\\?--as-needed//g'`"
|
||||
append "FLTK_CFLAGS=`lib/ntk/ntk-config $use --cflags` $appendflags"
|
||||
append "FLTK_LIBS=`${ntk_config} $use --libs | sed 's/,\\?--as-needed//g'`"
|
||||
append "FLTK_LDFLAGS=`${ntk_config} $use --ldflags | sed 's/,\\?--as-needed//g'`"
|
||||
append "FLTK_CFLAGS=`${ntk_config} $use --cflags` $appendflags"
|
||||
}
|
||||
|
|
|
@ -16,8 +16,7 @@ begin_tests
|
|||
|
||||
require_package JACK 0.103.0 jack
|
||||
suggest_package XPM 2.0.0 xpm
|
||||
require_FLTK 1.3.0 images
|
||||
require_command FLUID lib/ntk/fluid/fluid
|
||||
require_NTK 1.3.0 images
|
||||
test_version `version_of jack` 0.105.0 || append "JACK_MIDI_PROTO_API=yes"
|
||||
require_package liblo 0.23 liblo
|
||||
|
||||
|
|
|
@ -16,8 +16,7 @@ begin_tests
|
|||
|
||||
require_command ar ar
|
||||
require_command makedepend makedepend
|
||||
require_FLTK 1.3.0 images
|
||||
require_command FLUID lib/ntk/fluid/fluid
|
||||
require_NTK 1.3.0 images
|
||||
suggest_package JACK 0.103.0 jack
|
||||
require_package liblo 0.23 liblo
|
||||
suggest_package XPM 2.0.0 xpm
|
||||
|
|
|
@ -23,8 +23,7 @@ begin_tests
|
|||
|
||||
require_command ar ar
|
||||
require_command makedepend makedepend
|
||||
require_FLTK 1.3.0 images
|
||||
require_command FLUID lib/ntk/fluid/fluid
|
||||
require_NTK 1.3.0 images
|
||||
require_package JACK 0.103.0 jack
|
||||
require_package sndfile 1.0.17 sndfile
|
||||
require_package liblo 0.23 liblo
|
||||
|
|
Loading…
Reference in New Issue