diff --git a/libs/ardour/control_protocol_manager.cc b/libs/ardour/control_protocol_manager.cc index 495a66465e..de177d0e3d 100644 --- a/libs/ardour/control_protocol_manager.cc +++ b/libs/ardour/control_protocol_manager.cc @@ -154,9 +154,11 @@ ControlProtocolManager::teardown (ControlProtocolInfo& cpi) static bool protocol_filter (const string& str, void *arg) { - /* Not a dotfile, has a prefix before a period, suffix is "so" */ + /* Not a dotfile, has a prefix before a period, suffix is "so", or "dylib" */ - return str[0] != '.' && (str.length() > 3 && str.find (".so") == (str.length() - 3)); + return str[0] != '.' + && ((str.length() > 3 && str.find (".so") == (str.length() - 3)) + || (str.length() > 6 && str.find (".dylib") == (str.length() - 6))); } void @@ -180,7 +182,7 @@ ControlProtocolManager::discover_control_protocols (string path) vector *found; PathScanner scanner; - // info << string_compose (_("looking for control protocols in %1"), path) << endmsg; + info << string_compose (_("looking for control protocols in %1"), path) << endmsg; found = scanner (path, protocol_filter, 0, false, true); diff --git a/tools/osx_packaging/Ardour2.icns b/tools/osx_packaging/Ardour2.icns index 0e345fc120..2334fab13b 100644 Binary files a/tools/osx_packaging/Ardour2.icns and b/tools/osx_packaging/Ardour2.icns differ diff --git a/tools/osx_packaging/app_build.rb b/tools/osx_packaging/app_build.rb index 443b287c28..c81225024b 100755 --- a/tools/osx_packaging/app_build.rb +++ b/tools/osx_packaging/app_build.rb @@ -3,7 +3,10 @@ # Ruby script for pulling together a MacOSX app bundle. # it will be either powerpc or i386 -version = "beta9" +versionline = `grep -m 1 '^version =' ../../SConstruct` +version = versionline.split(" = ")[1].chomp().slice(1..-2) +$stdout.printf("Version is %s\n", version) + arch = `uname -p`.strip() libdir = "lib_" + arch bindir = "bin_" + arch @@ -180,7 +183,7 @@ if File.exist?(ppc_libdir) and File.exist?(i386_libdir) then $stdout.print("\nRunning Playtpus to create Ardour2.app ...\n"); - `/usr/local/bin/platypus -D -X 'ardour' -a 'Ardour2' -t 'shell' -o 'None' -u 'Paul Davis' -i '/bin/sh' -V '2.0' -s 'ArDr' -I 'org.ardour.Ardour2' -f 'bin' -f 'lib' -i 'Ardour2.icns' -f 'MenuBar.nib' -f 'ProgressWindow.nib' -f 'init' -f 'openDoc' 'script' 'Ardour2.app'` + `/usr/local/bin/platypus -D -X 'ardour' -a 'Ardour2' -t 'shell' -o 'None' -u 'Paul Davis' -i '/bin/sh' -V "#{version}" -s 'ArDr' -I 'org.ardour.Ardour2' -f 'bin' -f 'lib' -i 'Ardour2.icns' -f 'MenuBar.nib' -f 'ProgressWindow.nib' -f 'init' -f 'openDoc' 'script' 'Ardour2.app'` $stdout.print("\nCopying other stuff to Ardour2.app ...\n"); @@ -233,7 +236,7 @@ if File.exist?(ppc_libdir) and File.exist?(i386_libdir) then `rm -rf macdist` Dir.mkdir("macdist") `cp -r README.rtf COPYING Ardour2.app macdist/` - dmgname = "Ardour2-#{version}" + dmgname = "Ardour-#{version}" `rm -f #{dmgname}.dmg` $stdout.print("\nCreating DMG\n") `hdiutil create -fs HFS+ -volname #{dmgname} -srcfolder macdist #{dmgname}.dmg` @@ -244,9 +247,10 @@ if File.exist?(ppc_libdir) and File.exist?(i386_libdir) then else # zip up libdir and bindir zipfile = "binlib_"+`uname -p`.strip() + ".zip" - $stdout.print("\nZipping up #{libdir} and #{bindir} into #{zipfile}\n") - $stdout.print("Copy #{zipfile} to other platform's osx_packaging dir and run app_build.rb\nthere to complete universal build.\n") + $stdout.print("Zipping up #{libdir} and #{bindir} into #{zipfile}...\n") `zip -rq #{zipfile} #{libdir} #{bindir}` + $stdout.print("Copy #{zipfile} to other platform's osx_packaging dir and run app_build.rb\nthere to complete universal build.\n") + end diff --git a/tools/osx_packaging/bin/exporter b/tools/osx_packaging/bin/exporter index cf77284796..41a2904ff9 100755 --- a/tools/osx_packaging/bin/exporter +++ b/tools/osx_packaging/bin/exporter @@ -20,6 +20,7 @@ export LANG=`grep '\b'\`defaults read .GlobalPreferences AppleCollationOrder\`_\ export ARDOUR2_UI_RC=ardour2_ui.rc export ARDOUR_CONFIG_PATH="$TOP/etc" +export ARDOUR_MODULE_PATH="$TOP/lib/" export ARDOUR_DATA_PATH="$TOP/share" export ARDOUR_GLADE_PATH="$TOP/share/ardour2/glade"