summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-08-22 19:19:45 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-08-22 19:19:45 +0000
commit9781a708af4e687e9de3a38f83dfc2593c959cf8 (patch)
tree458789c5f67f599268e031fcbdc96535a05a3bf8 /tools
parent7b5573f1850902f22eeb17cbe2826b9536f87c7b (diff)
more work required to get OSX standalone package to work
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2339 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'tools')
-rwxr-xr-xtools/osx_packaging/osx_build36
1 files changed, 26 insertions, 10 deletions
diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build
index 44625a5234..4c8bbe0e36 100755
--- a/tools/osx_packaging/osx_build
+++ b/tools/osx_packaging/osx_build
@@ -30,15 +30,12 @@ Resources=$APPROOT/Resources
Shared=$Resources/share
Etc=$Resources/etc
-if test ! -d $Frameworks ; then
- mkdir -p $Frameworks
-fi
-if test ! -d $Shared/templates ; then
- mkdir -p $Shared/templates
-fi
-if test ! -d $Etc ; then
- mkdir -p $Etc
-fi
+# only bother to make the longest paths
+
+mkdir -p $Frameworks/modules
+mkdir -p $Shared/templates
+mkdir -p $Etc
+
# copy executable
echo "Copying Ardour executable ..."
@@ -48,6 +45,23 @@ cp ../../gtk2_ardour/ardour-$version $APPROOT/MacOS/Ardour2
echo "Copying GTK-Quartz tree ..."
cp -R /opt/gtk/lib/*.dylib $Frameworks/
cp -R /opt/gtk/etc/* $Etc
+echo "Copying all Pango modules ..."
+cp -R /opt/gtk/lib/pango/1.6.0/modules/*.so $Frameworks/modules
+echo "Copying all GDK Pixbuf loaders ..."
+cp -R /opt/gtk/lib/gtk-2.0/2.10.0/loaders/*.so $Frameworks/modules
+# charset alias file
+cp -R /opt/gtk/lib/charset.alias $Resources
+
+# generate new Pango module file
+cat > pangorc <<EOF
+[Pango]
+ModulesPath=/opt/gtk/lib/pango/1.6.0/modules
+EOF
+env PANGO_RC_FILE=pangorc /opt/gtk/bin/pango-querymodules | sed 's?/opt/gtk/lib/pango/1.6.0/modules/?@executable_path/../Frameworks/modules/?' > $Resources/pango.modules
+rm pangorc
+
+# generate a new GDK pixbufs loaders file
+sed 's?/opt/gtk/lib/gtk-2.0/2.10.0/loaders/?@executable_path/../Frameworks/modules/?' < /opt/gtk/etc/gtk-2.0/gdk-pixbuf.loaders > $Resources/gdk-pixbuf.loaders
echo "Copying Ardour libraries into .app ..."
cp ../../libs/pbd/libpbd.dylib $Frameworks
@@ -123,7 +137,7 @@ done
echo "Fixing up library names ..."
# now do the same for all the libraries we include
-for dylib in $Frameworks/*.dylib ; do
+for dylib in $Frameworks/*.dylib $Frameworks/modules/*.so ; do
# skip symlinks
if test ! -L $dylib ; then
@@ -150,6 +164,8 @@ for dylib in $Frameworks/*.dylib ; do
fi
done
+exit 0
+
# make DMG
rm -rf macdist
mkdir "macdist"