Ticket #278: ffado-2.0.0-sconinstall.patch

File ffado-2.0.0-sconinstall.patch, 3.4 kB (added by plater, 2 years ago)
  • libffado-2.0.0/SConstruct

    old new  
    4444Toggle debug-build. DEBUG means \"-g -Wall\" and more, otherwise we will use 
    4545  \"-O2\" to optimize.""", False ), 
    4646        BoolOption( "PROFILE", "Build with symbols and other profiling info", False ), 
    47         PathOption( "PREFIX", "The prefix where ffado will be installed to.", "/usr/local", PathOption.PathAccept ), 
    48         PathOption( "BINDIR", "Overwrite the directory where apps are installed to.", "$PREFIX/bin", PathOption.PathAccept ), 
    49         PathOption( "LIBDIR", "Overwrite the directory where libs are installed to.", "$PREFIX/lib", PathOption.PathAccept ), 
    50         PathOption( "INCLUDEDIR", "Overwrite the directory where headers are installed to.", "$PREFIX/include", PathOption.PathAccept ), 
    51         PathOption( "SHAREDIR", "Overwrite the directory where misc shared files are installed to.", "$PREFIX/share/libffado", PathOption.PathAccept ), 
     47        PathOption( "PREFIX", "The prefix which will be used in the build.", "/usr/local", PathOption.PathAccept ), 
     48        PathOption( "BINDIR", "Path used for substitutions in the build.", "$PREFIX/bin", PathOption.PathAccept ), 
     49        PathOption( "LIBDIR", "Path used for substitutions in the build.", "$PREFIX/lib", PathOption.PathAccept ), 
     50        PathOption( "INCLUDEDIR", "Path used for substitutions in the build.", "$PREFIX/include", PathOption.PathAccept ), 
     51        PathOption( "SHAREDIR", "Path used for substitutions in the build.", "$PREFIX/share/libffado", PathOption.PathAccept ), 
     52        PathOption( "prefix", "The prefix where ffado will be installed to.", "/usr", PathOption.PathAccept ), 
     53        PathOption( "bindir", "Overwrite the directory where apps are installed to.", "$prefix/bin", PathOption.PathAccept ), 
     54        PathOption( "libdir", "Overwrite the directory where libs are installed to.", "$prefix/lib", PathOption.PathAccept ), 
     55        PathOption( "includedir", "Overwrite the directory where headers are installed to.", "$prefix/include", PathOption.PathAccept ), 
     56        PathOption( "sharedir", "Overwrite the directory where misc shared files are installed to.", "$prefix/share/libffado", PathOption.PathAccept ), 
    5257        BoolOption( "ENABLE_BEBOB", "Enable/Disable the bebob part.", True ), 
    5358        BoolOption( "ENABLE_FIREWORKS", "Enable/Disable the ECHO Audio FireWorks AV/C part.", True ), 
    5459        BoolOption( "ENABLE_MOTU", "Enable/Disable the MOTU part.", True ), 
     
    334339env['LIBDIR'] = Template( env['LIBDIR'] ).safe_substitute( env ) 
    335340env['INCLUDEDIR'] = Template( env['INCLUDEDIR'] ).safe_substitute( env ) 
    336341env['SHAREDIR'] = Template( env['SHAREDIR'] ).safe_substitute( env ) 
    337 env['bindir'] = Template( env.destdir + env['BINDIR'] ).safe_substitute( env ) 
    338 env['libdir'] = Template( env.destdir + env['LIBDIR'] ).safe_substitute( env ) 
    339 env['includedir'] = Template( env.destdir + env['INCLUDEDIR'] ).safe_substitute( env ) 
    340 env['sharedir'] = Template( env.destdir + env['SHAREDIR'] ).safe_substitute( env ) 
     342env['bindir'] = Template( env.destdir + env['bindir'] ).safe_substitute( env ) 
     343env['libdir'] = Template( env.destdir + env['libdir'] ).safe_substitute( env ) 
     344env['includedir'] = Template( env.destdir + env['includedir'] ).safe_substitute( env ) 
     345env['sharedir'] = Template( env.destdir + env['sharedir'] ).safe_substitute( env ) 
    341346 
    342347env.Command( target=env['sharedir'], source="", action=Mkdir( env['sharedir'] ) ) 
    343348