src/aubiopitch~.c: refix aubiopitch_tilde_del
[pd-aubio.git] / wscript
diff --git a/wscript b/wscript
index 51124f6..e1afe5f 100644 (file)
--- a/wscript
+++ b/wscript
@@ -25,7 +25,7 @@ def configure(ctx):
         ctx.env.cshlib_PATTERN = '%s.pd_darwin'
         # add default include path for both pd and pd-extended
         # set CFLAGS for custom location
-        ctx.env.CFLAGS += ['-I/Applications/Pd-0.45-3.app/Contents/Resources/src']
+        ctx.env.CFLAGS += ['-I/Applications/Pd-0.47-1.app/Contents/Resources/src']
         ctx.env.CFLAGS += ['-I/Applications/Pd-extended.app/Contents/Resources/include']
         ctx.env.CFLAGS += ['-arch', 'i386', '-arch', 'x86_64']
         ctx.env.LINKFLAGS += ['-arch', 'i386', '-arch', 'x86_64']
@@ -36,7 +36,11 @@ def configure(ctx):
         ctx.env.CFLAGS_cshlib = []
         ctx.env.LINKFLAGS_cshlib +=  ['-export_dynamic', '-lpd']
     else:
-        ctx.fatal("Sorry, i don't know how to build for %s yet" % ctx.env['DEST_OS'])
+        ctx.start_msg("Checking for platform")
+        ctx.end_msg("no idea how to build for %s yet, assuming linux"
+                % ctx.env['DEST_OS'], 'YELLOW')
+        ctx.env.cshlib_PATTERN = '%s.pd_linux'
+        ctx.env.LINKFLAGS_cshlib += ['--export_dynamic']
 
     # check for puredata header
     ctx.check(header_name='m_pd.h')