sci-libs/comedilib: update demo/Makefile patch and allow Python 3 bindings.
[wtk-overlay.git] / media-libs / aubio / files / aubio-9999-0004-Include-aubio.h-and-config.h-in-examples-sndfileio.c.patch
1 From 21524ae2a950c29edb87f78b8179027d43fa8916 Mon Sep 17 00:00:00 2001
2 From: W. Trevor King <wking@drexel.edu>
3 Date: Sat, 10 Mar 2012 13:50:42 -0500
4 Subject: [PATCH 4/4] Include aubio.h and config.h in examples/sndfileio.c.
5
6 This fixes:
7
8   $ make
9   /bin/sh ../libtool --tag=CC   --mode=link gcc -DAUBIO_PREFIX=\"/usr/local\" -DP\
10   ACKAGE=\"aubio\" -I../src  -Wall -Wextra     -g -O2 -L../src -laubio -lm   -o a\
11   ubioonset aubioonset.o utils.o jackio.o sndfileio.o -lsndfile    -lpthread -lm
12   libtool: link: gcc -DAUBIO_PREFIX=\"/usr/local\" -DPACKAGE=\"aubio\" -I../src -\
13   Wall -Wextra -g -O2 -o .libs/aubioonset aubioonset.o sndfileio.o jackio.o utils\
14   .o  -L../src /home/wking/src/aubio/src/.libs/libaubio.so /usr/lib/libfftw3f.so \
15   /usr/lib/libsamplerate.so /usr/lib/libsndfile.so -lFLAC -lvorbisenc -lvorbis -l\
16   ogg -lpthread -lm
17   utils.o: In function `examples_common_init':
18   /tmp/aubio/examples/utils.c:218: undefined reference to `new_aubio_sndfile_ro'
19   ...
20
21 when you have sndfile support, because `utils.o` was (correctly)
22 looking for the sndfile support that `sndfileio.o` was (incorrectly)
23 not supplying.
24
25 I'm not sure that `aubio.h` needs to be included, but it was in
26 `examples/jackio.c`, which I checked for inspiration, and including it
27 seemed like a good idea ;).  It certainly shouldn't hurt to include it.
28 ---
29  examples/sndfileio.c |    3 +++
30  1 files changed, 3 insertions(+), 0 deletions(-)
31
32 diff --git a/examples/sndfileio.c b/examples/sndfileio.c
33 index 808553b..9b01d95 100644
34 --- a/examples/sndfileio.c
35 +++ b/examples/sndfileio.c
36 @@ -18,6 +18,9 @@
37  
38  */
39  
40 +#include <aubio.h>
41 +#include "config.h"
42 +
43  #ifdef HAVE_SNDFILE
44  
45  #include <string.h>
46 -- 
47 1.7.3.4
48