Lines 4-10
Link Here
|
4 |
clean -> scons -c |
4 |
clean -> scons -c |
5 |
install -> scons install |
5 |
install -> scons install |
6 |
uninstall -> scons -c install |
6 |
uninstall -> scons -c install |
7 |
configure -> scons configure prefix=/tmp/ita debug=full extraincludes=/usr/local/include:/tmp/include prefix=/usr/local |
7 |
configure -> scons configure prefix=/tmp/ita debug=full extraincludes=____PREFIX____usr/include:/tmp/include prefix=____PREFIX____usr |
8 |
|
8 |
|
9 |
Run from a subdirectory -> scons -u |
9 |
Run from a subdirectory -> scons -u |
10 |
The variables are saved automatically after the first run (look at cache/kde.cache.py, ..) |
10 |
The variables are saved automatically after the first run (look at cache/kde.cache.py, ..) |
Lines 16-22
Link Here
|
16 |
EnsureSConsVersion(0, 96) |
16 |
EnsureSConsVersion(0, 96) |
17 |
|
17 |
|
18 |
if os.path.isfile("/etc/debian_version"): |
18 |
if os.path.isfile("/etc/debian_version"): |
19 |
os.environ['QTDIR'] = "/usr/share/qt3" |
19 |
os.environ['QTDIR'] = "/usr/share/qt4" |
20 |
|
20 |
|
21 |
env = Environment(tools=['default', 'generic', 'qt'], toolpath=['admin']) |
21 |
env = Environment(tools=['default', 'generic', 'qt'], toolpath=['admin']) |
22 |
env['QT_LIB'] = 'qt-mt' |
22 |
env['QT_LIB'] = 'qt-mt' |
Lines 26-39
Link Here
|
26 |
|
26 |
|
27 |
# FIXME not for for 32 bit mandriva ! |
27 |
# FIXME not for for 32 bit mandriva ! |
28 |
if os.path.isfile("/etc/mandriva-release"): |
28 |
if os.path.isfile("/etc/mandriva-release"): |
29 |
# FIXME should remove /usr/lib/qt3/lib from path (now warning ...) |
29 |
# FIXME should remove /usr/lib/qt4 from path (now warning ...) |
30 |
env.Append(LIBPATH=['/usr/lib/qt3/lib64']) |
30 |
env.Append(LIBPATH=['/usr/lib/qt4']) |
31 |
|
31 |
|
32 |
env['PREFIX'] = ARGUMENTS.get('prefix', '/usr/local') |
32 |
env['PREFIX'] = ARGUMENTS.get('prefix', '____PREFIX____usr') |
33 |
# FIXME: the confdir is hardcoded to /usr/local/etc, as is done in the sources |
33 |
# FIXME: the confdir is hardcoded to ____PREFIX____etc/beid, as is done in the sources |
34 |
#env['CONFDIR'] = ARGUMENTS.get('confdir', '/usr/local/etc') |
34 |
#env['CONFDIR'] = ARGUMENTS.get('confdir', '____PREFIX____etc/beid') |
35 |
env['CONFDIR'] = '/usr/local/etc' |
35 |
env['CONFDIR'] = '____PREFIX____etc/beid' |
36 |
env['LIBDIR'] = ARGUMENTS.get('libdir', '/usr/local/lib') |
36 |
env['LIBDIR'] = ARGUMENTS.get('libdir', '____PREFIX____usr/lib') |
37 |
|
37 |
|
38 |
def CheckPKGConfig(context, version): |
38 |
def CheckPKGConfig(context, version): |
39 |
context.Message( 'Checking for pkg-config... ' ) |
39 |
context.Message( 'Checking for pkg-config... ' ) |