Rework port matrix to use Gtk notebook tabs to select visible groups.
[ardour.git] / wscript
diff --git a/wscript b/wscript
index fec8a11d05ac35ef67edb90974038a30a5560f11..41976d96277ed427b2c81369e47c91ea4cd6d293 100644 (file)
--- a/wscript
+++ b/wscript
@@ -529,12 +529,23 @@ def build(bld):
                bld.add_subdirs('libs/appleutility')
        for i in children:
                bld.add_subdirs(i)
+
+       # ideally, we'd like to use the OS-provided MIDI API
+       # for default ports. that doesn't work on at least
+       # Fedora (Nov 9th, 2009) so use JACK MIDI on linux.
        
-       rc_subst_dict = {
-               'MIDITAG'    : 'control',
-               'MIDITYPE'   : 'jack',
-               'JACK_INPUT' : 'auditioner'
-       }
+       if sys.platform == 'darwin':
+               rc_subst_dict = {
+                       'MIDITAG'    : 'control',
+                       'MIDITYPE'   : 'coremidi',
+                       'JACK_INPUT' : 'auditioner'
+                       }
+       else:
+               rc_subst_dict = {
+                       'MIDITAG'    : 'control',
+                       'MIDITYPE'   : 'jack',
+                       'JACK_INPUT' : 'auditioner'
+                       }
 
        obj              = bld.new_task_gen('subst')
        obj.source       = 'ardour.rc.in'