From 9781a708af4e687e9de3a38f83dfc2593c959cf8 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 22 Aug 2007 19:19:45 +0000 Subject: 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 --- tools/osx_packaging/osx_build | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) (limited to 'tools') 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 < $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" -- cgit v1.2.3