summaryrefslogtreecommitdiff
path: root/recipes/brutefir
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/brutefir
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/brutefir')
-rw-r--r--recipes/brutefir/brutefir_1.0i.bb25
-rw-r--r--recipes/brutefir/files/unbreak-makefile.patch38
2 files changed, 63 insertions, 0 deletions
diff --git a/recipes/brutefir/brutefir_1.0i.bb b/recipes/brutefir/brutefir_1.0i.bb
new file mode 100644
index 0000000000..52e56aca20
--- /dev/null
+++ b/recipes/brutefir/brutefir_1.0i.bb
@@ -0,0 +1,25 @@
+DESCRIPTION = "BruteFIR is a software convolution engine, a program for applying long FIR filters to multi-channel digital audio, either offline or in realtime."
+LICENSE = "GPLv2"
+
+DEPENDS = "alsa-lib fftw fftwf fftwl"
+
+PR = "r1"
+
+# The unbreak-makefile disables the SSE2, MMX and jack support, feel free
+# to add back SSE and MMX after fixing the makefile to not use uname to check for cpu
+
+SRC_URI = "http://www.ludd.luth.se/~torger/files/brutefir-${PV}.tar.gz \
+ file://unbreak-makefile.patch;patch=1 \
+ "
+
+do_configure() {
+ sed -i -e s:-L/usr/local/lib:-L${STAGING_LIBDIR}:g Makefile
+ sed -i -e s:-I/usr/local/include:-I${STAGING_INCDIR}:g Makefile
+}
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 755 *.bf* ${D}${bindir}
+ install -m 755 brutefir ${D}${bindir}
+}
+
diff --git a/recipes/brutefir/files/unbreak-makefile.patch b/recipes/brutefir/files/unbreak-makefile.patch
new file mode 100644
index 0000000000..2a437a2308
--- /dev/null
+++ b/recipes/brutefir/files/unbreak-makefile.patch
@@ -0,0 +1,38 @@
+--- /tmp/Makefile 2007-07-19 18:54:47.000000000 +0200
++++ brutefir-1.0i/Makefile 2007-07-19 18:55:44.775215000 +0200
+@@ -36,8 +36,6 @@
+ BRUTEFIR_LIBS = $(FFTW_LIB) -lm
+ BRUTEFIR_OBJS = brutefir.o fftw_convolver.o bfconf.o bfrun.o firwindow.o \
+ emalloc.o shmalloc.o dai.o bfconf_lexical.o inout.o dither.o delay.o
+-BRUTEFIR_IA32_OBJS = convolver_sse2.o convolver_sse.o \
+-convolver_3dnow.o convolver_x87.o
+
+ BFIO_FILE_OBJS = bfio_file.fpic.o
+
+@@ -46,8 +44,6 @@
+
+ BFIO_OSS_OBJS = bfio_oss.fpic.o emalloc.fpic.o
+
+-BFIO_JACK_LIBS = -ljack
+-BFIO_JACK_OBJS = bfio_jack.fpic.o emalloc.fpic.o inout.fpic.o
+
+ BFLOGIC_CLI_OBJS = bflogic_cli.fpic.o inout.fpic.o
+ BFLOGIC_EQ_OBJS = bflogic_eq.fpic.o emalloc.fpic.o shmalloc.fpic.o
+@@ -78,7 +74,6 @@
+ # assume that we have alsa, osss and jack
+ LIB_TARGETS += alsa.bfio
+ LIB_TARGETS += oss.bfio
+-LIB_TARGETS += jack.bfio
+ endif
+
+ # Solaris
+@@ -133,9 +128,6 @@
+ oss.bfio: $(BFIO_OSS_OBJS)
+ $(LD) $(LD_SHARED) $(CC_FPIC) $(LIBPATHS) -o $@ $(BFIO_OSS_OBJS) -lc
+
+-jack.bfio: $(BFIO_JACK_OBJS)
+- $(LD) $(LD_SHARED) $(CC_FPIC) $(LIBPATHS) -o $@ $(BFIO_JACK_OBJS) $(BFIO_JACK_LIBS) -lc
+-
+ file.bfio: $(BFIO_FILE_OBJS)
+ $(LD) $(LD_SHARED) $(CC_FPIC) $(LIBPATHS) -o $@ $(BFIO_FILE_OBJS) -lc
+