Changeset 602

Show
Ignore:
Timestamp:
08/30/07 06:50:12 (15 years ago)
Author:
arnonym
Message:

Add options to overwrite bindir,libdir and so on. One TODO less on my list

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/SConstruct

    r601 r602  
    2929  \"-O2\" to optimise.""", True ), 
    3030        PathOption( "PREFIX", "The prefix where ffado will be installed to.", "/usr/local" ), 
     31        PathOption( "BINDIR", "Overwrite the directory where apps are installed to.", "$PREFIX/bin" ), 
     32        PathOption( "LIBDIR", "Overwrite the directory where libs are installed to.", "$PREFIX/lib" ), 
     33        PathOption( "INCLUDEDIR", "Overwrite the directory where headers are installed to.", "$PREFIX/include" ), 
     34        PathOption( "SHAREDIR", "Overwrite the directory where misc shared files are installed to.", "$PREFIX/share/libffado" ), 
    3135        BoolOption( "ENABLE_BEBOB", "Enable/Disable the bebob part.", True ), 
    3236        BoolOption( "ENABLE_FIREWORKS", "Enable/Disable the ECHO Audio FireWorks avc part.", True ), 
     
    178182env.AppendUnique( CPPPATH=["#/"] ) 
    179183 
    180 env['bindir'] = os.path.join( env['PREFIX'], "bin" ) 
    181 env['libdir'] = os.path.join( env['PREFIX'], "lib" ) 
    182 env['includedir'] = os.path.join( env['PREFIX'], "include" ) 
    183 env['sharedir'] = os.path.join( env['PREFIX'], "share/libffado" ) 
     184
     185# XXX: Maybe we can even drop these lower-case variables and only use the uppercase ones? 
     186
     187env['bindir'] = os.path.join( env['BINDIR'] ) 
     188env['libdir'] = os.path.join( env['LIBDIR'] ) 
     189env['includedir'] = os.path.join( env['INCLUDEDIR'] ) 
     190env['sharedir'] = os.path.join( env['SHAREDIR'] ) 
    184191env['cachedir'] = os.path.join( env['PREFIX'], "var/cache/libffado" ) 
    185192