Skip to contentSkip to conversation

package/speexdsp: new package

PATCH Superseded Bernd Kuhls 2 participants 6 messages Jun 10, 2018 – Jun 12, 2018

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/5 package/speexdsp: new package

Quoting speex release notes from https://www.speex.org

"Speex 1.2rc2 and SpeexDSP 1.2rc2 are out
December 6, 2014
This release splits the speex codec library and the speex DSP library into separate source trees."

After bumping speex to 1.2.0 this new package is necessary to provide speex-based DSP support.

---
v2: no changes

 package/Config.in                             |   1 +
 .../0001-port-resample-neon-to-aarch64.patch  | 250 ++++++++++++++++++
 package/speexdsp/Config.in                    |   9 +
 package/speexdsp/speexdsp.hash                |   3 +
 package/speexdsp/speexdsp.mk                  |  22 ++
 5 files changed, 285 insertions(+)
 create mode 100644 package/speexdsp/0001-port-resample-neon-to-aarch64.patch
 create mode 100644 package/speexdsp/Config.in
 create mode 100644 package/speexdsp/speexdsp.hash
 create mode 100644 package/speexdsp/speexdsp.mk
package/Config.in +1 -0
index f622b89bab..5756a37f72 100644
@@ -1044,6 +1044,7 @@ menu "Audio/Sound"
 	source "package/portaudio/Config.in"
 	source "package/sbc/Config.in"
 	source "package/speex/Config.in"
+	source "package/speexdsp/Config.in"
 	source "package/taglib/Config.in"
 	source "package/tinyalsa/Config.in"
 	source "package/tremor/Config.in"
package/speexdsp/0001-port-resample-neon-to-aarch64.patch new file +250 -0

250 lines not on this page · raw message

package/speexdsp/Config.in new file +9 -0
new file mode 100644
index 0000000000..7bb2d10d45
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_SPEEXDSP
+	bool "speexdsp"
+	help
+	  Speex is a patent-free audio codec designed especially for
+	  voice (unlike Vorbis which targets general audio) signals and
+	  providing good narrowband and wideband quality. This project
+	  aims to be complementary to the Vorbis codec.
+
+	  https://www.speex.org
package/speexdsp/speexdsp.hash new file +3 -0
new file mode 100644
index 0000000000..5c3d6b96f3
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 e896489e045d11933723a94b9dd6f8e7d3d4e0d4b34c9612bcb2f4204261130c  speexdsp-20ed3452074664ad07e380e51321b148acebdf20.tar.gz
+sha256 671bb5d8fd3c6b05a2e831d90f978ac27965c92bd8ea6d16b3df76e3440c0e9f  COPYING
package/speexdsp/speexdsp.mk new file +22 -0
new file mode 100644
index 0000000000..e4b2ce5112
@@ -0,0 +1,22 @@
+################################################################################
+#
+# speexdsp
+#
+################################################################################
+
+SPEEXDSP_VERSION = 20ed3452074664ad07e380e51321b148acebdf20
+SPEEXDSP_SITE = https://git.xiph.org/speexdsp.git
+SPEEXDSP_SITE_METHOD = git
+SPEEXDSP_LICENSE = BSD-3-Clause
+SPEEXDSP_LICENSE_FILES = COPYING
+SPEEXDSP_INSTALL_STAGING = YES
+SPEEXDSP_DEPENDENCIES = host-pkgconf
+SPEEXDSP_AUTORECONF = YES
+
+# Autoreconf step fails due to missing m4 directory
+define SPEEXDSP_PRECONFIGURE
+	mkdir -p $(@D)/m4
+endef
+SPEEXDSP_PRE_CONFIGURE_HOOKS += SPEEXDSP_PRECONFIGURE
+
+$(eval $(autotools-package))
Signature · 1 line
2.17.1
#1 lore raw

PATCH v2 2/5 package/speex: add optional dependency to speexdsp

Quoting speex release notes from https://www.speex.org

"Speex 1.2rc2 and SpeexDSP 1.2rc2 are out
December 6, 2014
This release splits the speex codec library and the speex DSP library into separate source trees."

After bumping speex to 1.2.0 DSP support is provided by speexdsp.

---
v2: no changes

 package/speex/speex.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/speex/speex.mk +4 -0
index c6b46e0eb3..522f8cc09c 100644
@@ -13,6 +13,10 @@ SPEEX_DEPENDENCIES = host-pkgconf libogg
 SPEEX_CONF_OPTS = \
 	--enable-fixed-point
 
+ifeq ($(BR2_PACKAGE_SPEEXDSP),y)
+SPEEX_DEPENDENCIES += speexdsp
+endif
+
 ifeq ($(BR2_PACKAGE_SPEEX_ARM4),y)
 SPEEX_CONF_OPTS += --enable-arm4-asm
 endif
Signature · 1 line
2.17.1
#2 lore raw

PATCH v2 3/5 package/freeswitch: needs speexdsp

In reply to Bernd Kuhls

Fixes
http://autobuild.buildroot.net/results/a3f/a3f9845681025fad93a4f867bb667822e87a08ea/

---
v2: no changes

 package/freeswitch/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/freeswitch/Config.in +1 -0
index 1f6459335d..ff2898dc3c 100644
@@ -17,6 +17,7 @@ config BR2_PACKAGE_FREESWITCH
 	select BR2_PACKAGE_OPENSSL
 	select BR2_PACKAGE_PCRE
 	select BR2_PACKAGE_SPEEX
+	select BR2_PACKAGE_SPEEXDSP
 	select BR2_PACKAGE_SQLITE
 	select BR2_PACKAGE_UTIL_LINUX
 	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
Signature · 1 line
2.17.1
#3 lore raw

PATCH v2 4/5 package/asterisk: add optional dependency to speexdsp

In reply to Bernd Kuhls

Fixes
http://autobuild.buildroot.net/results/9f6/9f61192382ea4b57b0f0548626968752363bb13f/

---
v2: no changes

 package/asterisk/asterisk.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/asterisk/asterisk.mk +1 -1
index f2f210b524..430b122655 100644
@@ -229,7 +229,7 @@ else
 ASTERISK_CONF_OPTS += --without-ssl
 endif
 
-ifeq ($(BR2_PACKAGE_SPEEX),y)
+ifeq ($(BR2_PACKAGE_SPEEX)$(BR2_PACKAGE_SPEEXDSP),yy)
 ASTERISK_DEPENDENCIES += speex
 ASTERISK_CONF_OPTS += --with-speex --with-speexdsp
 else
Signature · 1 line
2.17.1
#4 lore raw

PATCH v2 5/5 package/linphone: needs speexdsp

In reply to Bernd Kuhls

Fixes
http://autobuild.buildroot.net/results/956/956b8cffa0a35a417763ad72bb7c8e8a8b2fe6b0/

---
v2: initial revision

 package/linphone/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/linphone/Config.in +1 -0
index 2504ca2b49..06eb059cfd 100644
@@ -5,6 +5,7 @@ config BR2_PACKAGE_LINPHONE
 	depends on BR2_USE_MMU # libeXosip2
 	select BR2_PACKAGE_LIBEXOSIP2
 	select BR2_PACKAGE_SPEEX
+	select BR2_PACKAGE_SPEEXDSP
 	help
 	  Linphone is an internet phone or Voice Over IP phone (VoIP).
 
Signature · 1 line
2.17.1
#5 lore raw

PATCH v2 1/5 package/speexdsp: new package

In reply to Bernd Kuhls
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

Quoting speex release notes from https://www.speex.org
"Speex 1.2rc2 and SpeexDSP 1.2rc2 are out
December 6, 2014
This release splits the speex codec library and the speex DSP library into separate source trees."

After bumping speex to 1.2.0 this new package is necessary to provide speex-based DSP support.

Quoted 6 lines

---
v2: no changes

 package/Config.in                             |   1 +
 .../0001-port-resample-neon-to-aarch64.patch  | 250 ++++++++++++++++++

This patch is not documented in the commit message?

package/speexdsp/Config.in line 7

Quoted 7 lines
package/speexdsp/Config.in new file +7 -0
+config BR2_PACKAGE_SPEEXDSP
+	bool "speexdsp"
+	help
+	  Speex is a patent-free audio codec designed especially for
+	  voice (unlike Vorbis which targets general audio) signals and
+	  providing good narrowband and wideband quality. This project
+	  aims to be complementary to the Vorbis codec.

That sounds like a description of speex (and not speexdsp) to me. Maybe we should add the description from the git repo to this as well:

"DSP library derived from speex"

package/speexdsp/speexdsp.mk line 8

Quoted 8 lines
package/speexdsp/speexdsp.mk new file +8 -0
+################################################################################
+#
+# speexdsp
+#
+################################################################################
+
+SPEEXDSP_VERSION = 20ed3452074664ad07e380e51321b148acebdf20
+SPEEXDSP_SITE = https://git.xiph.org/speexdsp.git

Why are we using a git snapshot (and still backporting a patch on top) and not the 1.2-rc3 release?

Signature · 1 line
Bye, Peter Korsgaard