Ticket #21538: patch-Sconstruct.diff
File patch-Sconstruct.diff, 2.7 KB (added by xenith (Justin Seabrook-Rocha), 15 years ago) |
---|
-
Sconstruct
old new 41 41 42 42 43 43 def get_platform_flags( opts ): 44 includes = [ ]44 includes = [ '@PREFIX@/include' ] 45 45 cppflags = [] 46 ldflags = [ ]46 ldflags = [ '@LDFLAGS@' ] 47 47 48 48 env = Environment( options = opts ) 49 49 … … 70 70 if str(env['flac']) == "1": cppflags.append('-DFLAC_SUPPORT') 71 71 72 72 if sys.platform == "darwin" and str(env['coreaudio']) == "1": cppflags.append('-DCOREAUDIO_SUPPORT') 73 if sys.platform == "darwin" and str(env['coremidi']) == "1": cppflags.append('-DCOREMIDI_SUPPORT') 73 74 74 75 cppflags.append('-DLADSPA_SUPPORT') 75 76 … … 83 84 84 85 if sys.platform == "darwin": 85 86 ldflags.append( '-L/opt/local/lib' ) 87 includes.append( '/opt/local/include' ) 86 88 87 if sys.platform == 'linux2':89 elif sys.platform == 'linux2': 88 90 ldflags.append('-lasound') 89 91 90 92 elif sys.platform == "win32": … … 275 277 if sys.platform == "darwin" and str(env['coreaudio']) == "1": 276 278 env.Append( LINKFLAGS = ['-framework','ApplicationServices']) 277 279 env.Append( LINKFLAGS = ['-framework','AudioUnit']) 278 env.Append( LINKFLAGS = ['-framework','Core audio'])280 env.Append( LINKFLAGS = ['-framework','CoreAudio']) 279 281 282 if sys.platform == "darwin" and str(env['coremidi']) == "1": 283 env.Append( LINKFLAGS = ['-framework','CoreMIDI']) 280 284 281 285 282 286 app = env.Program(target = 'hydrogen', source = src ) … … 318 322 rv = "-DJACK_NO_BBT_OFFSET" 319 323 xenv.MergeFlags(rv) 320 324 321 opts = Options('scache.conf')325 opts = Variables('scache.conf') 322 326 323 327 #platform independent settings 324 328 opts.Add('debug', 'Set to 1 to build with debug informations', 0) … … 329 333 330 334 #platform dependent settings 331 335 if sys.platform == "darwin": 332 opts.Add('coreaudio', 'Set to 1 to enable Coreaudio',1) 336 opts.Add('coreaudio', 'Set to 1 to enable CoreAudio',1) 337 opts.Add('coremidi', 'Set to 1 to enable CoreMIDI',1) 338 opts.Add('portmidi', 'Set to 1 to enable portmidi',0) 339 opts.Add('portaudio', 'Set to 1 to enable portaudio',0) 340 opts.Add('oss', 'Set to 1 to enable oss',0) 341 opts.Add('alsa', 'Set to 1 to enable alsa',0) 342 opts.Add('jack', 'Set to 1 to enable jack',0) 343 opts.Add('flac', 'Set to 1 to enable flac',1) 344 opts.Add('lash', 'Set to 1 to enable lash',0) 345 opts.Add('lrdf', 'Set to 1 to enable lrdf',0) 333 346 334 if sys.platform != "win32":347 elif sys.platform != "win32": 335 348 opts.Add('oss', 'Set to 1 to enable oss',1) 336 349 337 350 opts.Add('portmidi', 'Set to 1 to enable portmidi',0) … … 482 495 print " portmidi: " + printStatus( env["portmidi"] ) 483 496 if sys.platform == "darwin": 484 497 print " coreaudio: " + printStatus( env["coreaudio"] ) 498 print " coremidi: " + printStatus( env["coremidi"] ) 485 499 486 500 print "\n=================================================================" 487 501 print ""