shithub: aubio

Download patch

ref: 004b43111a7845fdff5e06266f37c9e920e21f22
parent: 288c193c1ae42b733aab160da1fc0cd25a74d68e
author: Paul Brossier <piem@piem.org>
date: Wed Jul 20 21:38:01 EDT 2016

wscript: update

--- a/wscript
+++ b/wscript
@@ -10,6 +10,8 @@
 # have Python installed, you do *not* need to install anything to build aubio.
 # For more info about waf, see http://code.google.com/p/waf/ .
 
+import sys
+
 APPNAME = 'aubio'
 
 # source VERSION
@@ -111,7 +113,7 @@
     ctx.check(header_name='getopt.h', mandatory = False)
     ctx.check(header_name='unistd.h', mandatory = False)
 
-    target_platform = Options.platform
+    target_platform = sys.platform
     if ctx.options.target_platform:
         target_platform = ctx.options.target_platform
     ctx.env['DEST_OS'] = target_platform
@@ -359,7 +361,7 @@
     if bld.env['DOXYGEN']:
         bld( name = 'doxygen', rule = 'doxygen ${SRC} > /dev/null',
                 source = 'doc/web.cfg',
-                cwd = 'doc')
+                cwd = bld.path.find_dir('doc'))
         bld.install_files( '${PREFIX}' + '/share/doc/libaubio-doc',
                 bld.path.ant_glob('doc/web/html/**'),
                 cwd = bld.path.find_dir ('doc/web'),