- var = "CXXFLAGS=-I%s/include LINKFLAGS=-L%s/lib PKG_CONFIG_PATH=%s/lib/pkgconfig" % (dep_prefix, dep_prefix, dep_prefix)
-
- command('%s %s' % (var, configure))
- command('./waf build install')
+def build(target, options):
+ cmd = './waf configure --disable-examples --prefix=%s' % target.directory
+ if target.platform == 'linux':
+ cmd += ' --static'
+ if target.distro == 'centos':
+ cmd += ' --disable-tests'
+ elif target.platform == 'windows':
+ cmd += ' --target-windows'
+ elif target.platform == 'osx':
+ cmd += ' --target-osx'