summaryrefslogtreecommitdiffstats
path: root/package/libsoxr
diff options
context:
space:
mode:
authorHadrien Boutteville <hadrien.boutteville@gmail.com>2014-04-28 23:34:40 +0200
committerPeter Korsgaard <peter@korsgaard.com>2014-05-01 23:51:24 +0200
commit705662b41d59558ad6ca11362c9611cf13f1d6fd (patch)
treefddba4355b6308e3427d156ce8c0b0a201a9eed6 /package/libsoxr
parentfa2798548368d51998fad18d7f6d1ae0ed065b33 (diff)
downloadbuildroot-705662b41d59558ad6ca11362c9611cf13f1d6fd.tar.gz
buildroot-705662b41d59558ad6ca11362c9611cf13f1d6fd.zip
libsoxr: new package
Building tests fails mainly because of the cross-compilation, so they are disabled for the moment. Signed-off-by: Hadrien Boutteville <hadrien.boutteville@gmail.com> Reviewed-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/libsoxr')
-rw-r--r--package/libsoxr/Config.in15
-rw-r--r--package/libsoxr/libsoxr.mk25
2 files changed, 40 insertions, 0 deletions
diff --git a/package/libsoxr/Config.in b/package/libsoxr/Config.in
new file mode 100644
index 0000000000..a218ae99c8
--- /dev/null
+++ b/package/libsoxr/Config.in
@@ -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/
diff --git a/package/libsoxr/libsoxr.mk b/package/libsoxr/libsoxr.mk
new file mode 100644
index 0000000000..a8e432cc56
--- /dev/null
+++ b/package/libsoxr/libsoxr.mk
@@ -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))
OpenPOWER on IntegriCloud