6 VERSION_MAJOR_MINOR
= ".".join(VERSION
.split(".")[0:2])
8 APPNAME_APPLET
= "jackpanel-applet"
14 autowaf
.set_options(opt
)
15 opt
.tool_options('compiler_cc')
18 autowaf
.configure(conf
)
19 conf
.check_tool('compiler_cc cc')
20 conf
.check_tool('vala')
22 min_vala_version
= (0, 5, 7)
23 if conf
.env
['VALAC_VERSION'] < min_vala_version
:
24 conf
.fatal('Your vala compiler version ' + str(conf
.env
['VALAC_VERSION']) +
25 ' is too old. The project requires at least version 0.5.7' );
27 autowaf
.check_pkg(conf
, 'jack', uselib_store
='JACK', atleast_version
='0.116.2', mandatory
=True)
28 autowaf
.check_pkg(conf
, 'libpanelapplet-2.0', uselib_store
='PANEL_APPLET', atleast_version
='2.22.2', mandatory
=True)
29 autowaf
.check_pkg(conf
, 'cairo', uselib_store
='CAIRO', atleast_version
='1.6.0', mandatory
=True)
30 autowaf
.check_pkg(conf
, 'gconf-2.0', uselib_store
='GCONF', atleast_version
='2.22.0', mandatory
=True)
31 autowaf
.check_pkg(conf
, 'prolooks', uselib_store
='PROLOOKS', atleast_version
='0.0.1', mandatory
=True)
33 conf
.env
['CCFLAGS'] = '-I./default -O0 -g -std=c99'
35 conf
.define('PACKAGE', APPNAME
)
36 conf
.define('PACKAGE_NAME', APPNAME
)
37 conf
.define('PACKAGE_STRING', APPNAME
+ '-' + VERSION
)
38 conf
.define('PACKAGE_VERSION', APPNAME
+ '-' + VERSION
)
40 conf
.define('VERSION', VERSION
)
41 conf
.define('VERSION_MAJOR_MINOR', VERSION_MAJOR_MINOR
)
42 conf
.define('APPNAME', APPNAME
)
43 conf
.define('APPNAME_APPLET', APPNAME_APPLET
)
46 bld
.add_subdirs('jackpanel')
48 # 'Desktop' file (menu entry, icon, etc)
49 obj
= bld
.new_task_gen('subst')
50 obj
.source
= 'jackpanel.desktop.in'
51 obj
.target
= 'jackpanel.desktop'
53 'BINDIR' : os
.path
.normpath(bld
.env
['BINDIR']),
54 'APP_INSTALL_NAME' : APPNAME
,
55 'APP_HUMAN_NAME' : APPNAME
,
57 obj
.install_path
= '${DATADIR}/applications'
59 # Panel Applet .server file
60 obj
= bld
.new_task_gen('subst')
61 obj
.source
= 'JackpanelApplet.server.in'
62 obj
.target
= 'JackpanelApplet.server'
64 'BINDIR' : os
.path
.normpath(bld
.env
['BINDIR']),
65 'APP_INSTALL_NAME' : APPNAME_APPLET
,
66 'APP_HUMAN_NAME' : "Jackpanel Applet",
68 obj
.install_path
= '${LIBDIR}/bonobo/servers'
70 # icon cache is updated using:
71 # gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
72 icon_sizes
= ['16x16', '22x22', '24x24', '32x32', '48x48']
75 os
.path
.normpath(bld
.env
['DATADIR'] + '/icons/hicolor/' + s
+ '/apps/'
77 'icons/' + s
+ '/jackpanel.png')
79 bld
.install_as(os
.path
.normpath(bld
.env
['DATADIR'] + '/pixmaps/' + APPNAME
+ '.xpm'),
80 'icons/16x16/jackpanel.xpm')