summarylogtreecommitdiffstats
path: root/brp-pacu.patch
blob: fafc138c8b2e3e0c63dcf46638f523f25c4213ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
diff -crB ./config.h.in ../BRP_PACU-2.1.1_patch/config.h.in
*** ./config.h.in	2010-01-24 04:59:28.000000000 +0100
--- ../BRP_PACU-2.1.1_patch/config.h.in	2015-07-14 14:44:34.796359026 +0200
***************
*** 1,6 ****
  /* config.h.in.  Generated from configure.ac by autoheader.  */
  
! /* Define to 1 if you have the `fftw' library (-lfftw). */
  #undef HAVE_LIBFFTW
  
  /* Define to 1 if you have the `m' library (-lm). */
--- 1,6 ----
  /* config.h.in.  Generated from configure.ac by autoheader.  */
  
! /* Define to 1 if you have the `fftw' library (-lsfftw). */
  #undef HAVE_LIBFFTW
  
  /* Define to 1 if you have the `m' library (-lm). */
diff -crB ./configure ../BRP_PACU-2.1.1_patch/configure
*** ./configure	2010-01-24 04:59:07.000000000 +0100
--- ../BRP_PACU-2.1.1_patch/configure	2015-07-14 14:23:43.547870476 +0200
***************
*** 4789,4801 ****
  fi
  
  
! { echo "$as_me:$LINENO: checking for fftw_create_plan in -lfftw" >&5
! echo $ECHO_N "checking for fftw_create_plan in -lfftw... $ECHO_C" >&6; }
! if test "${ac_cv_lib_fftw_fftw_create_plan+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    ac_check_lib_save_LIBS=$LIBS
! LIBS="-lfftw  $LIBS"
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
--- 4789,4801 ----
  fi
  
  
! { echo "$as_me:$LINENO: checking for fftw_create_plan in -lsfftw" >&5
! echo $ECHO_N "checking for fftw_create_plan in -lsfftw... $ECHO_C" >&6; }
! if test "${ac_cv_lib_sfftw_fftw_create_plan+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    ac_check_lib_save_LIBS=$LIBS
! LIBS="-lsfftw  $LIBS"
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
***************
*** 4836,4861 ****
  	 test ! -s conftest.err
         } && test -s conftest$ac_exeext &&
         $as_test_x conftest$ac_exeext; then
!   ac_cv_lib_fftw_fftw_create_plan=yes
  else
    echo "$as_me: failed program was:" >&5
  sed 's/^/| /' conftest.$ac_ext >&5
  
! 	ac_cv_lib_fftw_fftw_create_plan=no
  fi
  
  rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
        conftest$ac_exeext conftest.$ac_ext
  LIBS=$ac_check_lib_save_LIBS
  fi
! { echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_create_plan" >&5
! echo "${ECHO_T}$ac_cv_lib_fftw_fftw_create_plan" >&6; }
! if test $ac_cv_lib_fftw_fftw_create_plan = yes; then
    cat >>confdefs.h <<_ACEOF
  #define HAVE_LIBFFTW 1
  _ACEOF
  
!   LIBS="-lfftw $LIBS"
  
  else
    { { echo "$as_me:$LINENO: error: could not link to fftw please install the fftw package." >&5
--- 4836,4861 ----
  	 test ! -s conftest.err
         } && test -s conftest$ac_exeext &&
         $as_test_x conftest$ac_exeext; then
!   ac_cv_lib_sfftw_fftw_create_plan=yes
  else
    echo "$as_me: failed program was:" >&5
  sed 's/^/| /' conftest.$ac_ext >&5
  
! 	ac_cv_lib_sfftw_fftw_create_plan=no
  fi
  
  rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
        conftest$ac_exeext conftest.$ac_ext
  LIBS=$ac_check_lib_save_LIBS
  fi
! { echo "$as_me:$LINENO: result: $ac_cv_lib_sfftw_fftw_create_plan" >&5
! echo "${ECHO_T}$ac_cv_lib_sfftw_fftw_create_plan" >&6; }
! if test $ac_cv_lib_sfftw_fftw_create_plan = yes; then
    cat >>confdefs.h <<_ACEOF
  #define HAVE_LIBFFTW 1
  _ACEOF
  
!   LIBS="-lsfftw $LIBS"
  
  else
    { { echo "$as_me:$LINENO: error: could not link to fftw please install the fftw package." >&5
diff -crB ./configure.ac ../BRP_PACU-2.1.1_patch/configure.ac
*** ./configure.ac	2010-01-21 20:30:02.000000000 +0100
--- ../BRP_PACU-2.1.1_patch/configure.ac	2015-07-14 14:36:58.816933815 +0200
***************
*** 17,23 ****
  AC_CONFIG_FILES([Makefile])
  AC_OUTPUT
  AC_CHECK_LIB(m,cos,,AC_MSG_ERROR([could not link to mathlib.]))
! AC_CHECK_LIB(fftw,fftw_create_plan,,AC_MSG_ERROR([could not link to fftw please install the fftw package.]))
  PKG_CHECK_MODULES(GTK, gtk+-2.0,,exit)
  PKG_CHECK_MODULES(PANGO, pango,,exit)
  PKG_CHECK_MODULES(CAIRO, cairo,,exit)
--- 17,23 ----
  AC_CONFIG_FILES([Makefile])
  AC_OUTPUT
  AC_CHECK_LIB(m,cos,,AC_MSG_ERROR([could not link to mathlib.]))
! AC_CHECK_LIB(sfftw,fftw_create_plan,,AC_MSG_ERROR([could not link to fftw please install the fftw package.]))
  PKG_CHECK_MODULES(GTK, gtk+-2.0,,exit)
  PKG_CHECK_MODULES(PANGO, pango,,exit)
  PKG_CHECK_MODULES(CAIRO, cairo,,exit)
diff -crB ./main.h ../BRP_PACU-2.1.1_patch/main.h
*** ./main.h	2009-12-21 15:46:03.000000000 +0100
--- ../BRP_PACU-2.1.1_patch/main.h	2015-07-14 14:29:11.430829780 +0200
***************
*** 24,30 ****
  #include <gtk/gtkmain.h>
  #include <gtk/gtksignal.h>
  #include <gtk/gtk.h>
! #include <fftw.h>
  #include <math.h>
  #define pi 3.141592653
  
--- 24,30 ----
  #include <gtk/gtkmain.h>
  #include <gtk/gtksignal.h>
  #include <gtk/gtk.h>
! #include <sfftw.h>
  #include <math.h>
  #define pi 3.141592653
  
diff -crB ./Makefile.am ../BRP_PACU-2.1.1_patch/Makefile.am
*** ./Makefile.am	2010-01-24 16:39:03.000000000 +0100
--- ../BRP_PACU-2.1.1_patch/Makefile.am	2015-07-14 14:44:15.849716287 +0200
***************
*** 21,27 ****
  EXTRA_DIST = BRP_PACU.ui sinc.png info.plist \
   sinc.icns sinc.xcf brpData.icns README-Mac.txt INSTALL-Mac.txt movelibraries.sh
  AM_CFLAGS =  -O2 -Wall -g `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-2.0` `pkg-config --cflags glib-2.0`  `pkg-config --cflags  gtkdatabox` -DDATADIR=\"$(datadir)\" -lgthread-2.0
! LIBS =   -lm  -lfftw  `pkg-config --libs  gtk+-2.0` `pkg-config --libs  gdk-2.0` `pkg-config --libs glib-2.0` `pkg-config --libs gthread-2.0` `pkg-config --libs gtkdatabox`  `pkg-config --libs jack` 
  pkgdata_DATA = BRP_PACU.ui sinc.png
  #########  Macintosh implementation #########
  if APPLE
--- 21,27 ----
  EXTRA_DIST = BRP_PACU.ui sinc.png info.plist \
   sinc.icns sinc.xcf brpData.icns README-Mac.txt INSTALL-Mac.txt movelibraries.sh
  AM_CFLAGS =  -O2 -Wall -g `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-2.0` `pkg-config --cflags glib-2.0`  `pkg-config --cflags  gtkdatabox` -DDATADIR=\"$(datadir)\" -lgthread-2.0
! LIBS =   -lm  -lsfftw  `pkg-config --libs  gtk+-2.0` `pkg-config --libs  gdk-2.0` `pkg-config --libs glib-2.0` `pkg-config --libs gthread-2.0` `pkg-config --libs gtkdatabox`  `pkg-config --libs jack` 
  pkgdata_DATA = BRP_PACU.ui sinc.png
  #########  Macintosh implementation #########
  if APPLE
diff -crB ./Makefile.in ../BRP_PACU-2.1.1_patch/Makefile.in
*** ./Makefile.in	2010-01-24 16:39:53.000000000 +0100
--- ../BRP_PACU-2.1.1_patch/Makefile.in	2015-07-14 14:44:01.223068090 +0200
***************
*** 140,146 ****
  JACK_LIBS = @JACK_LIBS@
  LDFLAGS = @LDFLAGS@
  LIBOBJS = @LIBOBJS@
! LIBS = -lm -lfftw `pkg-config --libs gtk+-2.0` `pkg-config --libs \
  	gdk-2.0` `pkg-config --libs glib-2.0` `pkg-config --libs \
  	gthread-2.0` `pkg-config --libs gtkdatabox` `pkg-config --libs \
  	jack` $(am__append_3)
--- 140,146 ----
  JACK_LIBS = @JACK_LIBS@
  LDFLAGS = @LDFLAGS@
  LIBOBJS = @LIBOBJS@
! LIBS = -lm -lsfftw `pkg-config --libs gtk+-2.0` `pkg-config --libs \
  	gdk-2.0` `pkg-config --libs glib-2.0` `pkg-config --libs \
  	gthread-2.0` `pkg-config --libs gtkdatabox` `pkg-config --libs \
  	jack` $(am__append_3)
diff -crB ./testfft.c ../BRP_PACU-2.1.1_patch/testfft.c
*** ./testfft.c	2010-01-14 22:22:09.000000000 +0100
--- ../BRP_PACU-2.1.1_patch/testfft.c	2015-07-14 14:23:57.947854142 +0200
***************
*** 19,25 ****
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301, USA.
  */
! #include <fftw.h>
  #include <math.h>
  #include "main.h"
  #include "testfft.h"
--- 19,25 ----
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301, USA.
  */
! #include <sfftw.h>
  #include <math.h>
  #include "main.h"
  #include "testfft.h"
diff -crB ./testfft.h ../BRP_PACU-2.1.1_patch/testfft.h
*** ./testfft.h	2009-12-19 19:44:54.000000000 +0100
--- ../BRP_PACU-2.1.1_patch/testfft.h	2015-07-14 14:24:06.741177497 +0200
***************
*** 19,25 ****
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301, USA.
  */
! #include <fftw.h>
  #include <math.h>
  #include "main.h"
  #define DELAY_BUFFER_SIZE 44100
--- 19,25 ----
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301, USA.
  */
! #include <sfftw.h>
  #include <math.h>
  #include "main.h"
  #define DELAY_BUFFER_SIZE 44100