1 --- SConstruct_old 2009-11-18 14:30:07.000000000 +0100
2 +++ SConstruct 2009-11-18 13:31:12.000000000 +0100
5 env = Environment(CPPFLAGS=' -I/usr/include/libxml2 -I/usr/include/lash-1.0',LIBS=['asound','pthread','xml2','jack'])
7 +# CONFIGURATION OPTIONS
8 +opts = Variables('tranches.conf')
9 +opts.Add(PathVariable('PREFIX', 'Directory to install under', '/usr/local', PathVariable.PathIsDir))
10 +opts.Add(PathVariable("DESTDIR", 'Root directory to install into', '/usr/local', PathVariable.PathIsDir))
12 +opts.Save('tranches.conf', env) # Save, so user doesn't have to specify PREFIX every time
14 +Help(opts.GenerateHelpText(env))
17 base = Glob('src/base/*.cpp')
18 audio = Glob('src/audio/*.cpp')
20 env['LINKCOMSTR'] = "Linking $TARGET"
23 -bin = env.Install('/usr/local/bin', 'tranches')
24 -desktop = env.Install('/usr/local/share/applications', 'data/tranches.desktop')
25 -icon = env.Install('/usr/local/share/pixmaps', 'data/tranches.png')
26 +bin = env.Install('$DESTDIR/$PREFIX/bin', 'tranches')
27 +desktop = env.Install('$DESTDIR/$PREFIX/share/applications', 'data/tranches.desktop')
28 +icon = env.Install('$DESTDIR/$PREFIX/share/pixmaps', 'data/tranches.png')
29 env.Alias('install', [bin,desktop,icon])
34 Si tout se passe bien, entrez 'scons install' en tant qu'administrateur
35 pour installer Tranches dans /usr/local/
36 + utilisez DESTDIR ou PREFIX pour installer dans d'autres endroits,
37 + p. ex. 'scons PREFIX="/usr" install'
39 Si vous voulez nettoyer la compilation, entrez 'scons -c'
40 Si vous voulez desinstaller Tranches, entrez 'scons -c install'
43 If everything went good, type 'scons install' as root
44 to install Tranches in /usr/local/
46 + use DESTDIR or PREFIX to install in other places,
47 + e.g. 'scons PREFIX="/usr" install'
49 If you want to clean the build, type 'scons -c'
50 If you want to uninstall Tranches, type 'scons -c install'