|
|
|
@ -35,7 +35,7 @@ def detect_kde(env):
|
|
|
|
|
libdir = env['ARGS'].get('libdir', None)
|
|
|
|
|
libsuffix = env['ARGS'].get('libsuffix', '')
|
|
|
|
|
kdeincludes = env['ARGS'].get('kdeincludes', None)
|
|
|
|
|
kdelibs = env['ARGS'].get('kdelibs', None)
|
|
|
|
|
tdelibs = env['ARGS'].get('tdelibs', None)
|
|
|
|
|
qtincludes = env['ARGS'].get('qtincludes', None)
|
|
|
|
|
qtlibs = env['ARGS'].get('qtlibs', None)
|
|
|
|
|
|
|
|
|
@ -50,7 +50,7 @@ def detect_kde(env):
|
|
|
|
|
else:
|
|
|
|
|
print RED+"kde-config was NOT found in your PATH"+NORMAL
|
|
|
|
|
print "Make sure kde is installed properly"
|
|
|
|
|
print "(missing package kdebase-devel?)"
|
|
|
|
|
print "(missing package tdebase-devel?)"
|
|
|
|
|
env.Exit(1)
|
|
|
|
|
env['KDEDIR'] = os.popen('kde-config -prefix').read().strip()
|
|
|
|
|
|
|
|
|
@ -209,9 +209,9 @@ def detect_kde(env):
|
|
|
|
|
|
|
|
|
|
## kde libs and includes
|
|
|
|
|
env['KDEINCLUDEPATH']=kdeincludes
|
|
|
|
|
if not kdelibs:
|
|
|
|
|
kdelibs=os.popen('kde-config --expandvars --install lib').read().strip()
|
|
|
|
|
env['KDELIBPATH']=kdelibs
|
|
|
|
|
if not tdelibs:
|
|
|
|
|
tdelibs=os.popen('kde-config --expandvars --install lib').read().strip()
|
|
|
|
|
env['KDELIBPATH']=tdelibs
|
|
|
|
|
|
|
|
|
|
## qt libs and includes
|
|
|
|
|
env['QTINCLUDEPATH']=qtincludes
|
|
|
|
@ -233,7 +233,7 @@ def generate(env):
|
|
|
|
|
"""+BOLD+"""* libsuffix """+NORMAL+""": suffix of libraries on amd64, ie: 64, 32
|
|
|
|
|
"""+BOLD+"""* kdeincludes"""+NORMAL+""": path to the kde includes (/usr/include/kde on debian, ...)
|
|
|
|
|
"""+BOLD+"""* qtincludes """+NORMAL+""": same punishment, for qt includes (/usr/include/qt on debian, ...)
|
|
|
|
|
"""+BOLD+"""* kdelibs """+NORMAL+""": path to the kde libs, for linking the programs
|
|
|
|
|
"""+BOLD+"""* tdelibs """+NORMAL+""": path to the kde libs, for linking the programs
|
|
|
|
|
"""+BOLD+"""* qtlibs """+NORMAL+""": same punishment, for qt libraries
|
|
|
|
|
ie: """+BOLD+"""scons configure libdir=/usr/local/lib qtincludes=/usr/include/qt
|
|
|
|
|
"""+NORMAL)
|
|
|
|
|