diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-01-11 20:33:47 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-01-11 20:33:47 +0000 |
commit | 5c3ba06c8dc8f695f3bacf929e0b598cad83b04c (patch) | |
tree | d00c8ba89648785989c2c79124dbaa13c64d7495 /tools | |
parent | cec81ceb3c143a110b0a53edc59d742b59467b17 (diff) |
enable packaging for OSX native without jack; use which_page() everywhere in NSD; fix bad use of set_filename() in NSD; do not offer non-duplex devices in ardour's own audio setup dialog
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2896 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/osx_packaging/osx_build | 41 |
1 files changed, 31 insertions, 10 deletions
diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build index fdd7aaac3e..09d2e7a337 100755 --- a/tools/osx_packaging/osx_build +++ b/tools/osx_packaging/osx_build @@ -15,7 +15,7 @@ while [ $# -gt 0 ] ; do case $1 in --sae) SAE=1 ; shift ;; --nojack) WITH_JACK= ; shift ;; - --noladpsa) WITH_LADSPA= ; shift ;; + --noladspa) WITH_LADSPA= ; shift ;; --nostrip) STRIP= ; shift ;; --sysdeps) PRINT_SYSDEPS=1; shift ;; esac @@ -76,6 +76,8 @@ fi if test x$WITH_JACK != x ; then env="$env<key>ARDOUR_WITH_JACK</key><string>true</string>" +else + env="$env<key>PATH</key><string>/usr/local/bin:/opt/bin</string>" fi env="<key>LSEnvironment</key><dict><key>ARDOUR_BUNDLED</key><string>true</string>$env</dict>" @@ -142,7 +144,12 @@ while [ true ] ; do if ! file $file | grep -qs Mach-O ; then continue fi - deps=`otool -L $file | awk '{print $1}' | egrep "($GTKQUARTZ_ROOT|/local/|libs/)"` + if test x$WITH_JACK != x ; then + deps=`otool -L $file | awk '{print $1}' | egrep "($GTKQUARTZ_ROOT|/local/|libs/)"` + else + # do not include libjack + deps=`otool -L $file | awk '{print $1}' | egrep "($GTKQUARTZ_ROOT|/local/|libs/)" | grep -v 'libjack\.'` + fi echo -n "." for dep in $deps ; do base=`basename $dep` @@ -198,10 +205,17 @@ fi for exe in $executables; do EXE=$APPROOT/MacOS/$exe changes="" - for lib in `otool -L $EXE | egrep "($GTKQUARTZ_ROOT|/local/|libs/)" | awk '{print $1}'` ; do - base=`basename $lib` - changes="$changes -change $lib @executable_path/../Frameworks/$base" - done + if test x$WITH_JACK != x ; then + for lib in `otool -L $EXE | egrep "($GTKQUARTZ_ROOT|/local/|libs/)" | awk '{print $1}'` ; do + base=`basename $lib` + changes="$changes -change $lib @executable_path/../Frameworks/$base" + done + else + for lib in `otool -L $EXE | egrep "($GTKQUARTZ_ROOT|/local/|libs/)" | awk '{print $1}' | grep -v 'libjack\.'` ; do + base=`basename $lib` + changes="$changes -change $lib @executable_path/../Frameworks/$base" + done + fi if test "x$changes" != "x" ; then install_name_tool $changes $EXE fi @@ -216,10 +230,17 @@ for dylib in $Frameworks/*.dylib $Frameworks/modules/*.so ; do # change all the dependencies changes="" - for lib in `otool -L $dylib | egrep "($GTKQUARTZ_ROOT|/local/|libs/)" | awk '{print $1}'` ; do - base=`basename $lib` - changes="$changes -change $lib @executable_path/../Frameworks/$base" - done + if test x$WITH_JACK != x ; then + for lib in `otool -L $dylib | egrep "($GTKQUARTZ_ROOT|/local/|libs/)" | awk '{print $1}'` ; do + base=`basename $lib` + changes="$changes -change $lib @executable_path/../Frameworks/$base" + done + else + for lib in `otool -L $dylib | egrep "($GTKQUARTZ_ROOT|/local/|libs/)" | awk '{print $1}' | grep -v 'libjack\.'` ; do + base=`basename $lib` + changes="$changes -change $lib @executable_path/../Frameworks/$base" + done + fi if test "x$changes" != x ; then if install_name_tool $changes $dylib ; then |