~ubuntu-branches/ubuntu/lucid/ardour/lucid-proposed

« back to all changes in this revision

Viewing changes to SConstruct

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2008-07-29 11:27:04 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20080729112704-x1rmgb4tjotjyu5u
Tags: 1:2.5-0ubuntu1
* New upstream release.
* debian/patches/s390-FTBFS.patch: Dropped, as it fails to apply, and
  Ubuntu doesn't concern itself with s390.
* debian/control:
  - Fix package description, thanks to the patch in Debian bug #485892.
  - Metadata cleanup and sync control/control.in files.
  - Add libaubio-dev to Build-Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
SConsignFile()
21
21
EnsureSConsVersion(0, 96)
22
22
 
23
 
ardour_version = '2.4.1'
 
23
ardour_version = '2.5'
24
24
 
25
25
subst_dict = { }
26
26
 
57
57
    BoolOption('LV2', 'Compile with support for LV2 (if slv2 is available)', 0),
58
58
    BoolOption('GPROFILE', 'Compile with support for gprofile (Developers only)', 0),
59
59
    BoolOption('FREEDESKTOP', 'Install MIME type, icons and .desktop file as per the freedesktop.org spec (requires xdg-utils and shared-mime-info). "scons uninstall" removes associations in desktop database', 0),
60
 
    BoolOption('TRANZPORT', 'Compile with support for Frontier Designs (if libusb is available)', 1)
 
60
    BoolOption('TRANZPORT', 'Compile with support for Frontier Designs (if libusb is available)', 1),
 
61
    BoolOption('AUBIO', "Use Paul Brossier's aubio library for feature detection (if available)", 1)
 
62
    
61
63
)
62
64
 
63
65
#----------------------------------------------------------------------
450
452
        'raptor'               : '1.4.2',
451
453
        'lrdf'                 : '0.4.0',
452
454
        'jack'                 : '0.101.1',
453
 
        'libgnomecanvas-2.0'   : '2.0'
 
455
        'libgnomecanvas-2.0'   : '2.0',
 
456
        'aubio'                : '0.3.2'
454
457
}
455
458
 
456
459
def DependenciesRequiredMessage():
523
526
    libraries['fftw3'] = LibraryInfo()
524
527
    libraries['fftw3'].ParseConfig('pkg-config --cflags --libs fftw3')
525
528
 
 
529
if conf.CheckPKGExists ('aubio'):
 
530
    libraries['aubio'] = LibraryInfo()
 
531
    libraries['aubio'].ParseConfig('pkg-config --cflags --libs aubio')
 
532
 
526
533
env = conf.Finish ()
527
534
 
528
535
if env['FFT_ANALYSIS']:
537
544
            sys.exit (1)            
538
545
        conf.Finish()
539
546
 
 
547
if env['AUBIO']:
 
548
        #
 
549
        # Check for aubio header as well as the library
 
550
        #
 
551
 
 
552
        conf = Configure(libraries['aubio'])
 
553
 
 
554
        if conf.CheckHeader ('aubio/aubio.h') == False:
 
555
            print ('AUBIO-related features be compiled without the aubio headers, which do not seem to be installed')
 
556
            env['AUBIO'] = 0
 
557
        conf.Finish()
 
558
 
540
559
if env['FREESOUND']:
541
560
        #
542
561
        # Check for curl header as well as the library
918
937
libraries['boost'].Append(CPPPATH="/usr/local/include", LIBPATH="/usr/local/lib")
919
938
conf = Configure (libraries['boost'])
920
939
if conf.CheckHeader ('boost/shared_ptr.hpp', language='CXX') == False:
921
 
        print "Boost header files do not appear to be installed."
 
940
        print "Boost header files do not appear to be installed. You also might be running a buggy version of scons. Try scons 0.97 if you can."
922
941
        sys.exit (1)
923
942
    
924
943
libraries['boost'] = conf.Finish ()