Skip to contentSkip to conversation

libsoxr: new package

PATCH New Hadrien Boutteville 3 participants 3 messages Apr 28, 2014 – May 1, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 libsoxr: new package

Building tests fails mainly because of the cross-compilation, so they are disabled for the moment.

---
Changes v1 -> v2:
- use qstrip to check BR2_ENDIAN variable (Thomas De Schampheleire)
- use tarball instead of the Git repository (Thomas Petazzoni)
- change LICENSE to LGPLv2.1+ (Thomas Petazzoni)
- remove blank line

---
 package/Config.in          |  1 +
 package/libsoxr/Config.in  | 15 +++++++++++++++
 package/libsoxr/libsoxr.mk | 25 +++++++++++++++++++++++++
 3 files changed, 41 insertions(+)
 create mode 100644 package/libsoxr/Config.in
 create mode 100644 package/libsoxr/libsoxr.mk
package/Config.in +1 -0
index 07fd166..2efbb25 100644
@@ -506,6 +506,7 @@ source "package/libmpd/Config.in"
 source "package/libreplaygain/Config.in"
 source "package/libsamplerate/Config.in"
 source "package/libsndfile/Config.in"
+source "package/libsoxr/Config.in"
 source "package/libvorbis/Config.in"
 source "package/opus/Config.in"
 source "package/portaudio/Config.in"
package/libsoxr/Config.in new file +15 -0
new file mode 100644
index 0000000..a218ae9
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_LIBSOXR
+	bool "libsoxr"
+	help
+	  The SoX Resampler library `libsoxr' performs one-dimensional
+	  sample-rate conversion?it may be used, for example, to
+	  resample PCM-encoded audio.
+
+	  It aims to give fast and high quality results for any constant
+	  (rational or irrational) resampling ratio. Phase-response,
+	  preserved bandwidth, aliasing, and rejection level parameters
+	  are all configurable; alternatively, simple `preset'
+	  configurations may be selected. An experimental, variable-rate
+	  resampling mode of operation is also included.
+
+	  http://sourceforge.net/projects/soxr/
package/libsoxr/libsoxr.mk new file +25 -0
new file mode 100644
index 0000000..0c01e9e
@@ -0,0 +1,25 @@
+################################################################################
+#
+# libsoxr
+#
+################################################################################
+
+LIBSOXR_VERSION = 0.1.1
+LIBSOXR_SOURCE = soxr-$(LIBSOXR_VERSION)-Source.tar.xz
+LIBSOXR_SITE = http://downloads.sourceforge.net/project/soxr
+LIBSOXR_LICENSE = LGPLv2.1+
+LIBSOXR_LICENSE_FILES = LICENCE COPYING.LGPL
+LIBSOXR_INSTALL_STAGING = YES
+LIBSOXR_CONF_OPT = -DWITH_OPENMP:BOOL=OFF -DBUILD_TESTS:BOOL=OFF
+
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+LIBSOXR_CONF_OPT += -DBUILD_SHARED_LIBS:BOOL=OFF
+endif
+
+ifeq ($(call qstrip,$(BR2_ENDIAN)),BIG) 
+LIBSOXR_CONF_OPT += -DHAVE_WORDS_BIGENDIAN=1
+else
+LIBSOXR_CONF_OPT += -DHAVE_WORDS_BIGENDIAN=0
+endif
+
+$(eval $(cmake-package))
#1 lore raw

PATCH v2 1/1 libsoxr: new package

Hadrien Boutteville <[email protected]> schreef:

Quoted 10 lines

Building tests fails mainly because of the cross-compilation, so they are disabled for the moment.

---
Changes v1 -> v2:
- use qstrip to check BR2_ENDIAN variable (Thomas De Schampheleire)
- use tarball instead of the Git repository (Thomas Petazzoni)
- change LICENSE to LGPLv2.1+ (Thomas Petazzoni)
- remove blank line

#2 lore raw

PATCH v2 1/1 libsoxr: new package

In reply to Hadrien Boutteville
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Hadrien" == Hadrien Boutteville <[email protected]> writes:

Building tests fails mainly because of the cross-compilation, so they are disabled for the moment.

Quoted 7 lines

---
Changes v1 -> v2:
- use qstrip to check BR2_ENDIAN variable (Thomas De Schampheleire)
- use tarball instead of the Git repository (Thomas Petazzoni)
- change LICENSE to LGPLv2.1+ (Thomas Petazzoni)
- remove blank line

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard