Skip to contentSkip to conversation

package/aubio: new package

PATCH New Romain Naour 2 participants 8 messages Dec 3, 2016 – Dec 4, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 package/aubio: new package

Aubio attempt to build aubio.so shared library so disable it for static build only.

---
 package/Config.in                         |  1 +
 package/aubio/0001-remove-unit-test.patch | 63 +++++++++++++++++++++++++++++++
 package/aubio/Config.in                   | 21 +++++++++++
 package/aubio/aubio.hash                  |  2 +
 package/aubio/aubio.mk                    | 24 ++++++++++++
 5 files changed, 111 insertions(+)
 create mode 100644 package/aubio/0001-remove-unit-test.patch
 create mode 100644 package/aubio/Config.in
 create mode 100644 package/aubio/aubio.hash
 create mode 100644 package/aubio/aubio.mk
package/Config.in +1 -0
index b076dfd..f16e56d 100644
@@ -828,6 +828,7 @@ menu "Libraries"
 
 menu "Audio/Sound"
 	source "package/alsa-lib/Config.in"
+	source "package/aubio/Config.in"
 	source "package/audiofile/Config.in"
 	source "package/celt051/Config.in"
 	source "package/fdk-aac/Config.in"
package/aubio/0001-remove-unit-test.patch new file +63 -0

63 lines not on this page · raw message

package/aubio/Config.in new file +21 -0
new file mode 100644
index 0000000..c4c60db
@@ -0,0 +1,21 @@
+config BR2_PACKAGE_AUBIO
+	bool "aubio"
+	depends on !BR2_STATIC_LIBS
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	help
+	  aubio is a tool designed for the extraction of annotations from
+	  audio signals. Its features include segmenting a sound file
+	  before each of its attacks, performing pitch detection, tapping
+	  the beat and producing midi streams from live audio.
+
+	  Because these tasks are difficult, we thought it was important
+	  to gather them in a dedicated library. To increase the fun, we
+	  have made these algorithms work in a causal way, so as to be
+	  used in real time applications with as low delay as possible.
+	  Functions can be used offline in sound editors and software
+	  samplers, or online in audio effects and virtual instruments.
+
+	  https://aubio.org
+
+comment "aubio needs a toolchain w/ threads, dynamic library"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
package/aubio/aubio.hash new file +2 -0
new file mode 100644
index 0000000..f4de92a
@@ -0,0 +1,2 @@
+# Locally computed
+sha256 b62cdb073c0c64ae301917fa162969d42cba45e478bdf1e74490bd87e9cceaab  aubio-0.4.3.tar.bz2
package/aubio/aubio.mk new file +24 -0
new file mode 100644
index 0000000..aa4ddd0
@@ -0,0 +1,24 @@
+################################################################################
+#
+# aubio
+#
+################################################################################
+
+AUBIO_VERSION = 0.4.3
+AUBIO_SITE = https://aubio.org/pub
+AUBIO_SOURCE = aubio-$(AUBIO_VERSION).tar.bz2
+AUBIO_LICENSE = GPLv3+
+AUBIO_LICENSE_FILES = COPYING
+AUBIO_INSTALL_STAGING = YES
+
+AUBIO_CONF_OPTS = \
+	--disable-docs \
+	--disable-atlas \
+	--disable-samplerate \
+	--disable-avcodec \
+	--disable-sndfile \
+	--disable-jack \
+	--disable-fftw3 \
+	--disable-fftw3f
+
+$(eval $(waf-package))
Signature · 1 line
2.5.5
#1 lore raw

PATCH 2/6 package/aubio: add libsndfile optional dependency

---
 package/aubio/aubio.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/aubio/aubio.mk +7 -1
index aa4ddd0..e1694ab 100644
@@ -16,9 +16,15 @@ AUBIO_CONF_OPTS = \
 	--disable-atlas \
 	--disable-samplerate \
 	--disable-avcodec \
-	--disable-sndfile \
 	--disable-jack \
 	--disable-fftw3 \
 	--disable-fftw3f
 
+ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
+AUBIO_DEPENDENCIES += libsndfile
+AUBIO_CONF_OPTS += --enable-sndfile
+else
+AUBIO_CONF_OPTS += --disable-sndfile
+endif
+
 $(eval $(waf-package))
Signature · 1 line
2.5.5
#3 lore raw

PATCH 3/6 package/aubio: add libsamplerate optional dependency

In reply to Romain Naour
---
 package/aubio/aubio.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/aubio/aubio.mk +7 -1
index e1694ab..ed00088 100644
@@ -14,7 +14,6 @@ AUBIO_INSTALL_STAGING = YES
 AUBIO_CONF_OPTS = \
 	--disable-docs \
 	--disable-atlas \
-	--disable-samplerate \
 	--disable-avcodec \
 	--disable-jack \
 	--disable-fftw3 \
@@ -27,4 +26,11 @@ else
 AUBIO_CONF_OPTS += --disable-sndfile
 endif
 
+ifeq ($(BR2_PACKAGE_LIBSAMPLERATE),y)
+AUBIO_DEPENDENCIES += libsamplerate
+AUBIO_CONF_OPTS += --enable-samplerate
+else
+AUBIO_CONF_OPTS += --disable-samplerate
+endif
+
 $(eval $(waf-package))
Signature · 1 line
2.5.5
#4 lore raw

PATCH 4/6 package/aubio: add jack2 optional dependency

In reply to Romain Naour
---
 package/aubio/aubio.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/aubio/aubio.mk +7 -1
index ed00088..7aac6e5 100644
@@ -15,7 +15,6 @@ AUBIO_CONF_OPTS = \
 	--disable-docs \
 	--disable-atlas \
 	--disable-avcodec \
-	--disable-jack \
 	--disable-fftw3 \
 	--disable-fftw3f
 
@@ -33,4 +32,11 @@ else
 AUBIO_CONF_OPTS += --disable-samplerate
 endif
 
+ifeq ($(BR2_PACKAGE_JACK2),y)
+AUBIO_DEPENDENCIES += jack2
+AUBIO_CONF_OPTS += --enable-jack
+else
+AUBIO_CONF_OPTS += --disable-jack
+endif
+
 $(eval $(waf-package))
Signature · 1 line
2.5.5
#5 lore raw

PATCH 5/6 package/aubio: add fftw optional dependency

In reply to Romain Naour
---
 package/aubio/aubio.mk | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
package/aubio/aubio.mk +13 -3
index 7aac6e5..9339f44 100644
@@ -14,9 +14,7 @@ AUBIO_INSTALL_STAGING = YES
 AUBIO_CONF_OPTS = \
 	--disable-docs \
 	--disable-atlas \
-	--disable-avcodec \
-	--disable-fftw3 \
-	--disable-fftw3f
+	--disable-avcodec
 
 ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
 AUBIO_DEPENDENCIES += libsndfile
@@ -39,4 +37,16 @@ else
 AUBIO_CONF_OPTS += --disable-jack
 endif
 
+ifeq ($(BR2_PACKAGE_FFTW),y)
+AUBIO_DEPENDENCIES += fftw
+# fftw3 require double otherwise it will look for fftw3f
+ifeq ($(BR2_PACKAGE_FFTW_PRECISION_DOUBLE),y)
+AUBIO_CONF_OPTS += --enable-fftw3 --enable-double
+else ifeq ($(BR2_PACKAGE_FFTW_PRECISION_SINGLE),y)
+AUBIO_CONF_OPTS += --enable-fftw3f --disable-double
+endif
+else  # !BR2_PACKAGE_FFTW
+AUBIO_CONF_OPTS += --disable-fftw3
+endif
+
 $(eval $(waf-package))
Signature · 1 line
2.5.5
#6 lore raw

PATCH 6/6 package/aubio: add ffmpeg libav optional dependency

In reply to Romain Naour

Aubio libav support require libavcodec, libavformat, libavutil and libavresample. Enable libav support only when BR2_PACKAGE_FFMPEG_AVRESAMPLE is set.

---
 package/aubio/aubio.mk | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
package/aubio/aubio.mk +8 -2
index 9339f44..cfa233f 100644
@@ -13,8 +13,7 @@ AUBIO_INSTALL_STAGING = YES
 
 AUBIO_CONF_OPTS = \
 	--disable-docs \
-	--disable-atlas \
-	--disable-avcodec
+	--disable-atlas
 
 ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
 AUBIO_DEPENDENCIES += libsndfile
@@ -49,4 +48,11 @@ else  # !BR2_PACKAGE_FFTW
 AUBIO_CONF_OPTS += --disable-fftw3
 endif
 
+ifeq ($(BR2_PACKAGE_FFMPEG_AVRESAMPLE),y)
+AUBIO_DEPENDENCIES += ffmpeg
+AUBIO_CONF_OPTS += --enable-avcodec
+else
+AUBIO_CONF_OPTS += --disable-avcodec
+endif
+
 $(eval $(waf-package))
Signature · 1 line
2.5.5
#7 lore raw

PATCH 1/6 package/aubio: new package

In reply to Romain Naour

Hello,

Quoted 4 lines · Romain Naour

Aubio attempt to build aubio.so shared library so disable it for static build only.

Quoted 11 lines
---
 package/Config.in                         |  1 +
 package/aubio/0001-remove-unit-test.patch | 63 +++++++++++++++++++++++++++++++
 package/aubio/Config.in                   | 21 +++++++++++
 package/aubio/aubio.hash                  |  2 +
 package/aubio/aubio.mk                    | 24 ++++++++++++
 5 files changed, 111 insertions(+)
 create mode 100644 package/aubio/0001-remove-unit-test.patch
 create mode 100644 package/aubio/Config.in
 create mode 100644 package/aubio/aubio.hash
 create mode 100644 package/aubio/aubio.mk

Applied to master, thanks. Could you please talk with upstream about the issue with the unit test, so that it can be solved? Adding an option to enable/disable tests would be good, for example.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 2/6 package/aubio: add libsndfile optional dependency

In reply to Romain Naour

Hello,

Quoted 4 lines · Romain Naour
---
 package/aubio/aubio.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Patches 2 to 6 applied. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com