aboutsummaryrefslogtreecommitdiff
path: root/audio/aubio/files/patch-wscript
diff options
context:
space:
mode:
Diffstat (limited to 'audio/aubio/files/patch-wscript')
-rw-r--r--audio/aubio/files/patch-wscript13
1 files changed, 8 insertions, 5 deletions
diff --git a/audio/aubio/files/patch-wscript b/audio/aubio/files/patch-wscript
index a16ef61975bd..a7b232555581 100644
--- a/audio/aubio/files/patch-wscript
+++ b/audio/aubio/files/patch-wscript
@@ -1,6 +1,6 @@
---- wscript.orig 2017-01-08 15:44:05 UTC
+--- wscript.orig 2017-04-08 10:09:27 UTC
+++ wscript
-@@ -103,6 +103,9 @@ def options(ctx):
+@@ -94,6 +94,9 @@ def options(ctx):
help_str = 'build documentation (auto)',
help_disable_str = 'do not build documentation')
@@ -10,7 +10,7 @@
ctx.add_option('--with-target-platform', type='string',
help='set target platform for cross-compilation', dest='target_platform')
-@@ -376,6 +379,9 @@ def configure(ctx):
+@@ -388,6 +391,9 @@ def configure(ctx):
# check if doxygen is installed, optional
try:
ctx.find_program('doxygen', var='DOXYGEN')
@@ -20,13 +20,16 @@
except ctx.errors.ConfigurationError:
ctx.to_log('doxygen was not found (ignoring)')
-@@ -428,12 +434,12 @@ def txt2man(bld):
+@@ -440,7 +446,7 @@ def txt2man(bld):
def doxygen(bld):
# build documentation from source files using doxygen
- if bld.env['DOXYGEN']:
+ if bld.env['DOXYGEN'] and not bld.options.disable_doxygen:
- bld( name = 'doxygen', rule = 'doxygen ${SRC} > /dev/null',
+ bld.env.VERSION = VERSION
+ rule = '( cat ${SRC} && echo PROJECT_NUMBER=${VERSION}; )'
+ rule += ' | doxygen - > /dev/null'
+@@ -448,7 +454,7 @@ def doxygen(bld):
source = 'doc/web.cfg',
target = '../doc/web/html/index.html',
cwd = 'doc')