summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2015-11-21 17:36:10 +0000
committeradam <adam@pkgsrc.org>2015-11-21 17:36:10 +0000
commit9f9b714c54ddd3cfb7b48c18158cfc9a54b96a0e (patch)
tree494cfb281a0dfe3d6b85f799b82129dc0adf9326
parentd9cb4e31847364e24544f291f243d74f90c1d636 (diff)
downloadpkgsrc-9f9b714c54ddd3cfb7b48c18158cfc9a54b96a0e.tar.gz
Fix building with newer OS X API.
-rw-r--r--audio/libofa/distinfo3
-rw-r--r--audio/libofa/patches/patch-lib_fftlibvdsp__op.cpp33
2 files changed, 35 insertions, 1 deletions
diff --git a/audio/libofa/distinfo b/audio/libofa/distinfo
index 679847b1856..62be4bef41f 100644
--- a/audio/libofa/distinfo
+++ b/audio/libofa/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2015/11/03 01:12:38 agc Exp $
+$NetBSD: distinfo,v 1.6 2015/11/21 17:36:10 adam Exp $
SHA1 (libofa-0.9.3.tar.gz) = 3dec8e1dcea937f74b4165e9ffd4d4f355e4594a
RMD160 (libofa-0.9.3.tar.gz) = 77f393570bb5356026c4b9c7195236bd96cb9143
@@ -10,3 +10,4 @@ SHA1 (patch-ac) = 9a40d7472c405b9bdc4b9c008f5a28c3a91fc5c9
SHA1 (patch-ad) = 9713150fb45a69da7d521494f42b7aa16f16104d
SHA1 (patch-ae) = a581e60b45582713ad1b1ffa32d9d3ddf222118b
SHA1 (patch-af) = 2d7755362c733df7aee7ab2defe2a48b439bcc63
+SHA1 (patch-lib_fftlibvdsp__op.cpp) = 65f6157eef16477399e1140a2985d85823ffc92d
diff --git a/audio/libofa/patches/patch-lib_fftlibvdsp__op.cpp b/audio/libofa/patches/patch-lib_fftlibvdsp__op.cpp
new file mode 100644
index 00000000000..2b2c5527870
--- /dev/null
+++ b/audio/libofa/patches/patch-lib_fftlibvdsp__op.cpp
@@ -0,0 +1,33 @@
+$NetBSD: patch-lib_fftlibvdsp__op.cpp,v 1.1 2015/11/21 17:36:10 adam Exp $
+
+Fix building with newer OS X API.
+
+--- lib/fftlibvdsp_op.cpp.orig 2015-11-21 17:32:57.000000000 +0000
++++ lib/fftlibvdsp_op.cpp
+@@ -23,12 +23,12 @@ FFTLib_op::Initialize(int N, bool optimi
+ {
+ delete[] A.realp;
+ delete[] A.imagp;
+- destroy_fftsetupD(SetupReal);
++ vDSP_destroy_fftsetupD(SetupReal);
+ }
+
+ A.realp = new double[ N/2];
+ A.imagp = new double[ N/2];
+- SetupReal = create_fftsetupD(Exp, 0);
++ SetupReal = vDSP_create_fftsetupD(Exp, 0);
+ Init = true;
+ }
+
+@@ -46,9 +46,9 @@ FFTLib_op::SetSize(int N, bool optimize,
+ void
+ FFTLib_op::ComputeFrame(int N, double *in, double *out)
+ {
+- ctozD ((DSPDoubleComplex*) in, 2, &A, 1, N/2 );
++ vDSP_ctozD((DSPDoubleComplex*) in, 2, &A, 1, N/2 );
+
+- fft_zripD(SetupReal, &A, 1, Exp, FFT_FORWARD);
++ vDSP_fft_zripD(SetupReal, &A, 1, Exp, FFT_FORWARD);
+
+ int i,j;
+ for (i=0; i<N/2; i++)