Skip to contentSkip to conversation

package/libspandsp: new package

PATCH New Bernd Kuhls 2 participants 3 messages Apr 26, 2015 – Feb 21, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/libspandsp: new package

---
v2: fix license (Thomas)

 package/Config.in                               |    1 +
 package/libspandsp/0001-fix-compiler-opts.patch |   23 +++++++++++++++++++++
 package/libspandsp/Config.in                    |    9 ++++++++
 package/libspandsp/libspandsp.hash              |    2 ++
 package/libspandsp/libspandsp.mk                |   25 +++++++++++++++++++++++
 5 files changed, 60 insertions(+)
 create mode 100644 package/libspandsp/0001-fix-compiler-opts.patch
 create mode 100644 package/libspandsp/Config.in
 create mode 100644 package/libspandsp/libspandsp.hash
 create mode 100644 package/libspandsp/libspandsp.mk
package/Config.in +1 -0
index 2a06a3d..d47b787 100644
@@ -682,6 +682,7 @@ menu "Audio/Sound"
 	source "package/libsidplay2/Config.in"
 	source "package/libsndfile/Config.in"
 	source "package/libsoxr/Config.in"
+	source "package/libspandsp/Config.in"
 	source "package/libvorbis/Config.in"
 	source "package/mp4v2/Config.in"
 	source "package/opencore-amr/Config.in"
package/libspandsp/0001-fix-compiler-opts.patch new file +23 -0
new file mode 100644
index 0000000..c3bd800
@@ -0,0 +1,23 @@
+Fix bfin compilation
+
+cc1: error: unrecognized command line option "-Wunused-but-set-variable"
+
+using this defconfig
+
+BR2_bfin=y
+BR2_PACKAGE_LIBSPANDSP=y
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+
+diff -uNr spandsp-0.0.6.org/configure.ac spandsp-0.0.6/configure.ac
+--- spandsp-0.0.6.org/configure.ac	2014-08-09 10:19:27.000000000 +0200
++++ spandsp-0.0.6/configure.ac	2015-04-25 17:46:27.717349873 +0200
+@@ -337,7 +337,7 @@
+ 
+ case "${ax_cv_c_compiler_vendor}" in
+ gnu)
+-    COMP_VENDOR_CFLAGS="-std=gnu99 -ffast-math -Wall -Wunused-variable -Wunused-but-set-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS"
++    COMP_VENDOR_CFLAGS="-std=gnu99 -ffast-math -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS"
+     if test "$enable_neon" = "yes" ; then
+         COMP_VENDOR_CFLAGS="-mfpu=neon -mfloat-abi=hard $COMP_VENDOR_CFLAGS"
+     fi
package/libspandsp/Config.in new file +9 -0
new file mode 100644
index 0000000..9a22209
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_LIBSPANDSP
+	bool "libspandsp"
+	select BR2_PACKAGE_TIFF
+	help
+	  Spandsp is a library of many DSP functions for telephony.
+	  These range from simple modules, such as DTMF detection, to a
+	  complete software FAX machine.
+
+	  http://www.soft-switch.org
package/libspandsp/libspandsp.hash new file +2 -0
new file mode 100644
index 0000000..3bd7fa6
@@ -0,0 +1,2 @@
+# Locally computed
+sha256	6a86ccf68c2af46c1f98334b8e300c75df1be39b5620d689285c35167737c913	spandsp-20140809.tar.gz
package/libspandsp/libspandsp.mk new file +25 -0
new file mode 100644
index 0000000..b8b1429
@@ -0,0 +1,25 @@
+################################################################################
+#
+# libspandsp
+#
+################################################################################
+
+LIBSPANDSP_VERSION = 20140809
+LIBSPANDSP_SOURCE = spandsp-$(LIBSPANDSP_VERSION).tar.gz
+LIBSPANDSP_SITE = http://www.soft-switch.org/downloads/spandsp/snapshots
+LIBSPANDSP_LICENSE = LGPLv2.1
+LIBSPANDSP_LICENSE_FILES = COPYING
+LIBSPANDSP_INSTALL_STAGING = YES
+LIBSPANDSP_AUTORECONF = YES
+
+# Fixes broken gcc
+# http://thread.gmane.org/gmane.linux.lib.musl.general/2468/
+LIBSPANDSP_CONF_ENV = ac_cv_header_tgmath_h=no
+
+LIBSPANDSP_DEPENDENCIES = tiff
+
+ifeq ($(BR2_PACKAGE_JPEG),y)
+LIBSPANDSP_DEPENDENCIES += jpeg
+endif
+
+$(eval $(autotools-package))
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v2 1/1 package/libspandsp: new package

Bernd, All,

On 2015-04-26 19:34 +0200, Bernd Kuhls spake thusly:

Quoted 9 lines

---
v2: fix license (Thomas)

 package/Config.in                               |    1 +
 package/libspandsp/0001-fix-compiler-opts.patch |   23 +++++++++++++++++++++
 package/libspandsp/Config.in                    |    9 ++++++++
 package/libspandsp/libspandsp.hash              |    2 ++
 package/libspandsp/libspandsp.mk                |   25 +++++++++++++++++++++++

This one is also in the series I'm about to send, so I'll also mark it rejected n patchwork.

Thanks!

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

PATCH v2 1/1 package/libspandsp: new package

Am Sat, 09 Jan 2016 18:54:01 +0100 schrieb Yann E. MORIN:

Quoted 2 lines

This one is also in the series I'm about to send, so I'll also mark it rejected n patchwork.

Hi Yann,

mediastreamer also has an optional dependency to spandsp, --enable-spandsp/--disable-spandsp exists.

Regards, Bernd