#! /usr/bin/python
+
# build puredata external
-srcdir = '.'
-blddir = 'build'
+top = '.'
+out = 'build'
+VERSION = '0.2'
-def set_options(opt):
- opt.tool_options('compiler_cc')
+def options(ctx):
+ ctx.load('compiler_c')
def configure(conf):
- conf.check_tool('compiler_cc')
- # required dependancies
- conf.check_cfg(package = 'aubio', atleast_version = '0.4.0',
- args = '--cflags --libs')
+ conf.load('compiler_c')
+ # required dependancies
+ conf.check_cfg(package = 'aubio', atleast_version = '0.4.0',
+ args = '--cflags --libs')
+ # check for puredata header
+ conf.check(header_name='m_pd.h')
def build(bld):
aubio_pd = bld.new_task_gen(
features = 'cc cshlib',
uselib = ['AUBIO'],
- defines = ['PD'],
+ defines = ['PD', 'PACKAGE_VERSION=\"'+repr(VERSION)+"\""],
install_path = '${PREFIX}/lib/pd/extra')
if bld.env['DEST_OS'] == 'win32':