From: Paul Davis Date: Thu, 24 May 2012 17:59:09 +0000 (+0000) Subject: build script tweaks for OS X X-Git-Tag: 3.0~1372 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=f8f2b888ccccec1d5374983b6dcc5ddd67c3a194;hp=80095b7c9dbc489f5f6ac96fdec56397f9806e93;p=ardour.git build script tweaks for OS X git-svn-id: svn://localhost/ardour2/branches/3.0@12434 d708f5d6-7413-0410-9779-e7cbd77b26cf --- diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build index 5d8200913c..17e86d58b7 100755 --- a/tools/osx_packaging/osx_build +++ b/tools/osx_packaging/osx_build @@ -253,13 +253,24 @@ cp -R $GTKSTACK_ROOT/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so $Frameworks/modules # charset alias file cp -R $GTKSTACK_ROOT/lib/charset.alias $Resources +# generate new Pango module file +cat > pangorc < $Resources/pango.modules +rm pangorc + +# generate a new GDK pixbufs loaders file +gdk-pixbuf-query-loaders | sed "s?$GTKSTACK_ROOT/lib/gdk-pixbuf-2.0/2.10.0/loaders/?@executable_path/../lib/modules/?" > $Resources/gdk-pixbuf.loaders + # We rely on clearlooks, so include a version from our own build tree # this one is special - we will set GTK_PATH to $Libraries/clearlooks echo "Copying clearlooks ..." -cp $BUILD_ROOT/libs/clearlooks-newer/libclearlooks.so $Libraries -mkdir -p $Libraries/clearlooks/engines -(cd $Libraries/clearlooks/engines && ln -s ../../libclearlooks.so . ) +cp $BUILD_ROOT/libs/clearlooks-newer/libclearlooks.dylib $Frameworks +mkdir -p $Frameworks/clearlooks/engines +(cd $Frameworks/clearlooks/engines && ln -s ../../libclearlooks.dylib libclearlooks.dylib && ln -s ../../libclearlooks.dylib libclearlooks.so) if test x$WITH_LADSPA != x ; then if test x$SAE != x ; then @@ -269,32 +280,15 @@ if test x$WITH_LADSPA != x ; then else plugdir=ladspa fi - if [ -d $plugdir ] ; then + if [ -d $plugdir -a x`ls $plugdir` != x ] ; then echo "Copying `ls $plugdir | wc -l` plugins ..." cp -r $plugdir/* $Plugins fi fi -# generate new Pango module file -cat > pangorc < $Resources/pango.modules -rm pangorc - -# generate a new GDK pixbufs loaders file -gdk-pixbuf-query-loaders | sed "s?$GDKPIXBUF_LOADERS/?@executable_path/../lib/modules/?" > $Resources/gdk-pixbuf.loaders - -# this one is special - we will set GTK_PATH to $Frameworks/clearlooks -cp $BUILD_ROOT/libs/clearlooks-newer/libclearlooks.dylib $Frameworks -mkdir -p $Frameworks/clearlooks/engines -(cd $Frameworks/clearlooks/engines && ln -s $BUILD_ROOT/libclearlooks.dylib libclearlooks.dylib && ln -s ../../libclearlooks.dylib libclearlooks.so) - # Control Surface shared libraries cp $BUILD_ROOT/libs/surfaces/*/libardour_*.dylib $Surfaces -# hack ... move libardour_cp back into Frameworks -mv $Surfaces/libardourcp*.dylib $Frameworks +cp $BUILD_ROOT/libs/surfaces/control_protocol/libardourcp*.dylib $Frameworks # Panners cp $BUILD_ROOT/libs/panners/*/lib*.dylib $Panners @@ -302,14 +296,12 @@ cp $BUILD_ROOT/libs/panners/*/lib*.dylib $Panners # Export Formats/Presets for f in $BUILD_ROOT/../export/*.preset $BUILD_ROOT/../export/*.format ; do - echo ExportFormat: $f cp "$f" $ExportFormats ; done # Session and Route templates for f in $BUILD_ROOT/../templates/* ; do if [ -d "$f" ] ; then - echo Template: $f cp -r "$f" $Templates ; fi done @@ -318,21 +310,18 @@ done # got to be careful with names here for x in $BUILD_ROOT/../midi_maps/*.map ; do cp "$x" $MidiMaps - echo Copied MIDI map $x done # MIDNAM Patch Files # got to be careful with names here for x in $BUILD_ROOT/../patchfiles/*.midnam ; do cp "$x" $PatchFiles - echo Copied MIDNAM file "$x" done # MackieControl data # got to be careful with names here for x in $BUILD_ROOT/../mcp/*.device $BUILD_ROOT/../mcp/*.profile ; do cp "$x" $MackieControl - echo Copied Mackie Control file $x done # VAMP plugins that we use