FreeBSD Bugzilla – Attachment 77136 Details for
Bug 111128
[NEW PORT] audio/libconvolve: Simple C library for partitioned convolution
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
libconvolve-0.0.8.shar
libconvolve-0.0.8.shar (text/plain), 7.08 KB, created by
trasz
on 2007-04-02 08:50:13 UTC
(
hide
)
Description:
libconvolve-0.0.8.shar
Filename:
MIME Type:
Creator:
trasz
Created:
2007-04-02 08:50:13 UTC
Size:
7.08 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># libconvolve ># libconvolve/pkg-descr ># libconvolve/Makefile ># libconvolve/pkg-plist ># libconvolve/files ># libconvolve/files/patch-Makefile ># libconvolve/files/patch-convolution_init.c ># libconvolve/files/patch-convolution_process.c ># libconvolve/distinfo ># >echo c - libconvolve >mkdir -p libconvolve > /dev/null 2>&1 >echo x - libconvolve/pkg-descr >sed 's/^X//' >libconvolve/pkg-descr << 'END-of-libconvolve/pkg-descr' >XSimple C library for partitioned convolution. >X >XWWW: http://tapas.affenbande.org/wordpress/?page_id=9 >END-of-libconvolve/pkg-descr >echo x - libconvolve/Makefile >sed 's/^X//' >libconvolve/Makefile << 'END-of-libconvolve/Makefile' >X# New ports collection makefile for: libconvolve >X# Date created: 2007-04-02 >X# Whom: trasz <trasz@pin.if.uz.zgora.pl> >X# >X# $FreeBSD$ >X# >X >XPORTNAME= libconvolve >XPORTVERSION= 0.0.8 >XCATEGORIES= audio >XMASTER_SITES= http://tapas.affenbande.org/jack_convolve/ >XEXTRACT_SUFX= .tgz >X >XMAINTAINER= trasz@pin.if.uz.zgora.pl >XCOMMENT= Simple C library for partitioned convolution >X >XLIB_DEPENDS= fftw3f.4:${PORTSDIR}/math/fftw3-float \ >X samplerate.1:${PORTSDIR}/audio/libsamplerate \ >X sndfile.1:${PORTSDIR}/audio/libsndfile >X >XUSE_GMAKE= yes >XUSE_LDCONFIG= yes >X >X.include <bsd.port.mk> >END-of-libconvolve/Makefile >echo x - libconvolve/pkg-plist >sed 's/^X//' >libconvolve/pkg-plist << 'END-of-libconvolve/pkg-plist' >Xinclude/convolve.h >Xlib/libconvolve.so.0.0.8 >Xlib/libconvolve.so.0 >Xlib/libconvolve.so >Xlib/libconvolve.a >END-of-libconvolve/pkg-plist >echo c - libconvolve/files >mkdir -p libconvolve/files > /dev/null 2>&1 >echo x - libconvolve/files/patch-Makefile >sed 's/^X//' >libconvolve/files/patch-Makefile << 'END-of-libconvolve/files/patch-Makefile' >X--- Makefile.orig Mon Apr 2 09:20:41 2007 >X+++ Makefile Mon Apr 2 09:20:55 2007 >X@@ -1,19 +1,18 @@ >X PREFIX=/usr/local >X >X-COMPILE_FLAGS = -fPIC `pkg-config fftw3f samplerate sndfile --cflags` >X+COMPILE_FLAGS = $(CFLAGS) -fPIC `pkg-config fftw3f samplerate sndfile --cflags` >X #COMPILE_FLAGS += -g >X-COMPILE_FLAGS += -O3 -funroll-loops -funroll-all-loops >X >X LINK_FLAGS = `pkg-config fftw3f samplerate sndfile --libs` >X >X # uncomment the following line if libDSP is not available for >X # your platform (power pc etc.)... >X >X-# COMPILE_FLAGS += -DC_CMUL >X+COMPILE_FLAGS += -DC_CMUL >X >X # ...and comment this one out: >X >X-LINK_FLAGS += -L/usr/local/lib -ldsp -lstdc++ >X+#LINK_FLAGS += -L/usr/local/lib -ldsp -lstdc++ >X >X >X ST_TARGET = libconvolve.a >X@@ -53,5 +52,5 @@ >X cp $(TARGET) $(PREFIX)/lib/ >X cp $(ST_TARGET) $(PREFIX)/lib/ >X cp convolve.h $(PREFIX)/include/ >X- ldconfig -n $(PREFIX)/lib >X+ ln -s $(PREFIX)/lib/$(TARGET) $(PREFIX)/lib/$(SONAME) || true >X ln -s $(PREFIX)/lib/$(SONAME) $(PREFIX)/lib/$(SMALLNAME) || true >END-of-libconvolve/files/patch-Makefile >echo x - libconvolve/files/patch-convolution_init.c >sed 's/^X//' >libconvolve/files/patch-convolution_init.c << 'END-of-libconvolve/files/patch-convolution_init.c' >X--- convolution_init.c.orig Mon Nov 28 00:24:57 2005 >X+++ convolution_init.c Mon Apr 2 09:26:43 2007 >X@@ -17,8 +17,19 @@ >X */ >X >X #include "convolve.h" >X-#include <malloc.h> >X+#include <stdlib.h> >X #include <math.h> >X+#include <errno.h> >X+ >X+int my_posix_memalign(void **memptr, size_t alignment, size_t size) >X+{ >X+ *memptr = malloc(size); >X+ >X+ if (*memptr != NULL) >X+ return 0; >X+ else >X+ return errno; >X+} >X >X int convolution_init (convolution_t *conv, >X int number_of_responses, >X@@ -47,12 +58,12 @@ >X // allocate FFT buffers >X // as r2c stores only N/2+1 results, we don't need the padded size for this >X // conv->fft_complex = (fftwf_complex*)malloc (sizeof(fftwf_complex) * (conv->chunk_length + 1)); >X- posix_memalign(&conv->fft_complex, 16, sizeof(fftwf_complex) * (conv->chunk_length + 1)); >X+ my_posix_memalign(&conv->fft_complex, 16, sizeof(fftwf_complex) * (conv->chunk_length + 1)); >X >X >X // this one still needs to be 2 * chunk_length as we zero pad it >X // conv->fft_real = (float*)malloc (sizeof(float) * 2 * conv->chunk_length); >X- posix_memalign(&conv->fft_real, 16, sizeof(float) * 2 * conv->chunk_length); >X+ my_posix_memalign(&conv->fft_real, 16, sizeof(float) * 2 * conv->chunk_length); >X >X // create fftw plans >X conv->fft_plan_forward = fftwf_plan_dft_r2c_1d (2 * conv->chunk_length, >X@@ -100,7 +111,7 @@ >X * (conv->chunk_length + 1) >X * conv->fft_responses[index]->number_of_chunks); >X */ >X- posix_memalign(&conv->fft_responses[index]->channel_data[index2], >X+ my_posix_memalign(&conv->fft_responses[index]->channel_data[index2], >X 16, >X sizeof(fftwf_complex) >X * (conv->chunk_length + 1) >X@@ -169,7 +180,7 @@ >X >X // need to divide (integer divide) the index by number_of_responses to get >X // a valid index into the list of responses. >X- posix_memalign(&conv->input_chunk_ringbuffers[index], 16, >X+ my_posix_memalign(&conv->input_chunk_ringbuffers[index], 16, >X sizeof(fftwf_complex) * conv->fft_responses[index/conv->number_of_response_channels]->number_of_chunks >X * (conv->chunk_length + 1)); >X >X@@ -189,7 +200,7 @@ >X = (fftwf_complex*)malloc (sizeof(fftwf_complex) * conv->fft_responses[index]->number_of_chunks >X * (conv->chunk_length + 1)); >X */ >X- posix_memalign(&conv->input_chunk_ringbuffers[index], 16, >X+ my_posix_memalign(&conv->input_chunk_ringbuffers[index], 16, >X sizeof(fftwf_complex) * conv->fft_responses[index]->number_of_chunks >X * (conv->chunk_length + 1)); >X >X@@ -222,7 +233,7 @@ >X for (index = 0; index < conv->number_of_response_channels; ++index) { >X >X // conv->overlap_buffers[index] = (float*)malloc (sizeof(float) * conv->chunk_length); >X- posix_memalign(&conv->overlap_buffers[index], 16, sizeof(float) * conv->chunk_length); >X+ my_posix_memalign(&conv->overlap_buffers[index], 16, sizeof(float) * conv->chunk_length); >X >X // zero out >X for (index2 = 0; index2 < conv->chunk_length; ++index2) { >END-of-libconvolve/files/patch-convolution_init.c >echo x - libconvolve/files/patch-convolution_process.c >sed 's/^X//' >libconvolve/files/patch-convolution_process.c << 'END-of-libconvolve/files/patch-convolution_process.c' >X--- convolution_process.c.orig Mon Apr 2 09:22:07 2007 >X+++ convolution_process.c Mon Apr 2 09:22:15 2007 >X@@ -23,7 +23,7 @@ >X #include <dsp/dspop.h> >X #endif >X >X-#include <malloc.h> >X+#include <stdlib.h> >X #include <math.h> >X >X >END-of-libconvolve/files/patch-convolution_process.c >echo x - libconvolve/distinfo >sed 's/^X//' >libconvolve/distinfo << 'END-of-libconvolve/distinfo' >XMD5 (libconvolve-0.0.8.tgz) = 4798e82a00bc7f2b81f3b4493813c17f >XSHA256 (libconvolve-0.0.8.tgz) = 60701b9da1af63fa6883df8fadd8d474af370f63df18481dea903097771781d4 >XSIZE (libconvolve-0.0.8.tgz) = 39486 >END-of-libconvolve/distinfo >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 111128
: 77136