Non-ideal but functional fix for problems when adding processors which increase the...
[ardour.git] / wscript
diff --git a/wscript b/wscript
index a4dcb88622e78c906f966aa26f07bca41726b4d5..41976d96277ed427b2c81369e47c91ea4cd6d293 100644 (file)
--- a/wscript
+++ b/wscript
@@ -81,7 +81,7 @@ def create_stored_revision():
                sys.exit(-1)
 
        try:
-               text =  '#include <ardour/svn_revision.h>\n'
+               text =  '#include "ardour/svn_revision.h"\n'
                text += 'namespace ARDOUR { extern const char* svn_revision = \"' + rev + '\"; }\n'
                print 'Writing svn revision info to libs/ardour/svn_revision.cc'
                o = file('libs/ardour/svn_revision.cc', 'w')
@@ -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'