6 VERSION_MAJOR_MINOR
= ".".join(VERSION
.split(".")[0:2])
13 autowaf
.set_options(opt
)
14 opt
.tool_options('compiler_cc')
17 autowaf
.configure(conf
)
18 conf
.check_tool('compiler_cc cc')
19 conf
.check_tool('vala')
21 min_vala_version
= (0, 5, 7)
22 if conf
.env
['VALAC_VERSION'] < min_vala_version
:
23 conf
.fatal('Your vala compiler version ' + str(conf
.env
['VALAC_VERSION']) +
24 ' is too old. The project requires at least version 0.5.7' );
26 autowaf
.check_pkg(conf
, 'jack', uselib_store
='JACK', atleast_version
='0.116.2', mandatory
=True)
27 # autowaf.check_pkg(conf, 'libpanelapplet-2.0', uselib_store='PANEL_APPLET', atleast_version='2.22.2', mandatory=True)
28 autowaf
.check_pkg(conf
, 'cairo', uselib_store
='CAIRO', atleast_version
='1.6.0', mandatory
=True)
29 autowaf
.check_pkg(conf
, 'gconf-2.0', uselib_store
='GCONF', atleast_version
='2.22.0', mandatory
=True)
30 autowaf
.check_pkg(conf
, 'prolooks', uselib_store
='PROLOOKS', atleast_version
='0.0.1', mandatory
=True)
32 conf
.env
['CCFLAGS'] = '-I./default -O0 -g -std=c99'
34 conf
.define('PACKAGE', APPNAME
)
35 conf
.define('PACKAGE_NAME', APPNAME
)
36 conf
.define('PACKAGE_STRING', APPNAME
+ '-' + VERSION
)
37 conf
.define('PACKAGE_VERSION', APPNAME
+ '-' + VERSION
)
39 conf
.define('VERSION', VERSION
)
40 conf
.define('VERSION_MAJOR_MINOR', VERSION_MAJOR_MINOR
)
43 bld
.add_subdirs('jackpanel')
45 # 'Desktop' file (menu entry, icon, etc)
46 obj
= bld
.new_task_gen('subst')
47 obj
.source
= 'jackpanel.desktop.in'
48 obj
.target
= 'jackpanel.desktop'
50 'BINDIR' : os
.path
.normpath(bld
.env
['BINDIR']),
51 'APP_INSTALL_NAME' : APPNAME
,
52 'APP_HUMAN_NAME' : APPNAME
,
54 obj
.install_path
= '${DATADIR}/applications'
56 # icon cache is updated using:
57 # gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
58 icon_sizes
= ['16x16', '22x22', '24x24', '32x32', '48x48']
61 os
.path
.normpath(bld
.env
['DATADIR'] + '/icons/hicolor/' + s
+ '/apps/'
63 'icons/' + s
+ '/jackpanel.png')