summaryrefslogtreecommitdiff
path: root/tools/osx_packaging
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-11-14 21:24:25 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-11-14 21:24:25 +0000
commit323bd2918ecf0e827666a47bd1ffbe0ed4568ef2 (patch)
tree71ecf37cb68e95928c19f33f32383c54c54e53ba /tools/osx_packaging
parent2c2f7a2fcccac98401b533b98ea7a41dbca1cf57 (diff)
clean up OSX packaging tool
git-svn-id: svn://localhost/ardour2/branches/3.0@10594 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'tools/osx_packaging')
-rwxr-xr-xtools/osx_packaging/osx_build17
1 files changed, 7 insertions, 10 deletions
diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build
index 3af4c283f5..7bf06bcfca 100755
--- a/tools/osx_packaging/osx_build
+++ b/tools/osx_packaging/osx_build
@@ -320,10 +320,8 @@ while [ true ] ; do
if ! test -f $Frameworks/$base; then
if echo $dep | grep -sq '^libs' ; then
cp $BUILD_ROOT/$dep $Frameworks
- echo "$BUILD_ROOT/$dep => $Frameworks"
else
cp $dep $Frameworks
- echo "$dep => $Frameworks"
fi
missing=true
fi
@@ -396,10 +394,8 @@ echo "Fixing up library names ..."
# now do the same for all the libraries we include
for libdir in $Frameworks $Frameworks/modules $Surfaces $Panners ; do
- echo "Now working on libraries in $libdir ..."
-
libbase=`basename $libdir`
-
+
for dylib in $libdir/*.dylib $libdir/*.so ; do
# skip symlinks
@@ -410,12 +406,14 @@ for libdir in $Frameworks $Frameworks/modules $Surfaces $Panners ; do
# change all the dependencies
- echo "Looking at " $dylib
-
changes=""
for lib in `otool -L $dylib | egrep "($GTKQUARTZ_ROOT|/opt/|/local/|libs/)" | awk '{print $1}' | grep -v 'libjack\.'` ; do
base=`basename $lib`
- changes="$changes -change $lib @executable_path/../$libbase/$base"
+ if echo $lib | grep -s libbase; then
+ changes="$changes -change $lib @executable_path/../$libbase/$base"
+ else
+ changes="$changes -change $lib @executable_path/../Frameworks/$base"
+ fi
done
if test "x$changes" != x ; then
@@ -429,8 +427,7 @@ for libdir in $Frameworks $Frameworks/modules $Surfaces $Panners ; do
# now the change what the library thinks its own name is
base=`basename $dylib`
- install_name_tool -id @executable_path/../$libdir/$base $dylib
- echo "Updated linkage to self in $dylib to @executable_path/../$libbase/$base"
+ install_name_tool -id @executable_path/../$libbase/$base $dylib
done
done