summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorryoon <ryoon>2016-06-05 00:43:33 +0000
committerryoon <ryoon>2016-06-05 00:43:33 +0000
commit4b636aa2b18998d8481ce0746087932def98fab3 (patch)
tree1ae14a0968e7fc72f1f7fde4e34f62ddec124c51 /audio
parent16d5f8af5b8466e0c017cd53a05538bebd85b651 (diff)
downloadpkgsrc-4b636aa2b18998d8481ce0746087932def98fab3.tar.gz
Import libsoxr-0.1.2 as audio/libsoxr.
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.
Diffstat (limited to 'audio')
-rw-r--r--audio/libsoxr/DESCR10
-rw-r--r--audio/libsoxr/Makefile23
-rw-r--r--audio/libsoxr/PLIST14
-rw-r--r--audio/libsoxr/buildlink3.mk12
-rw-r--r--audio/libsoxr/distinfo6
5 files changed, 65 insertions, 0 deletions
diff --git a/audio/libsoxr/DESCR b/audio/libsoxr/DESCR
new file mode 100644
index 00000000000..7ae3b1458cd
--- /dev/null
+++ b/audio/libsoxr/DESCR
@@ -0,0 +1,10 @@
+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.
diff --git a/audio/libsoxr/Makefile b/audio/libsoxr/Makefile
new file mode 100644
index 00000000000..6b2699e0233
--- /dev/null
+++ b/audio/libsoxr/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2016/06/05 00:43:33 ryoon Exp $
+
+DISTNAME= soxr-0.1.2-Source
+PKGNAME= lib${DISTNAME:S/-Source//}
+CATEGORIES= audio
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=soxr/}
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= ryoon@NetBSD.org
+HOMEPAGE= https://sourceforge.net/p/soxr/wiki/Home/
+COMMENT= SoX Resample library
+LICENSE= gnu-lgpl-v2.1
+
+USE_CMAKE= yes
+USE_TOOLS+= pkg-config
+USE_LANGUAGES= c c++
+
+CMAKE_ARGS+= -DBUILD_TESTS=NO
+
+PKGCONFIG_OVERRIDE+= src/soxr.pc.in
+PKGCONFIG_OVERRIDE+= src/soxr-lsr.pc.in
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/libsoxr/PLIST b/audio/libsoxr/PLIST
new file mode 100644
index 00000000000..4a0777b62c1
--- /dev/null
+++ b/audio/libsoxr/PLIST
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1 2016/06/05 00:43:33 ryoon Exp $
+include/soxr-lsr.h
+include/soxr.h
+lib/libsoxr-lsr.so
+lib/libsoxr-lsr.so.0
+lib/libsoxr-lsr.so.0.1.9
+lib/libsoxr.so
+lib/libsoxr.so.0
+lib/libsoxr.so.0.1.1
+lib/pkgconfig/soxr-lsr.pc
+lib/pkgconfig/soxr.pc
+share/doc/libsoxr/LICENCE
+share/doc/libsoxr/NEWS
+share/doc/libsoxr/README
diff --git a/audio/libsoxr/buildlink3.mk b/audio/libsoxr/buildlink3.mk
new file mode 100644
index 00000000000..589a3facd56
--- /dev/null
+++ b/audio/libsoxr/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2016/06/05 00:43:33 ryoon Exp $
+
+BUILDLINK_TREE+= libsoxr
+
+.if !defined(LIBSOXR_BUILDLINK3_MK)
+LIBSOXR_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libsoxr+= libsoxr>=0.1.2
+BUILDLINK_PKGSRCDIR.libsoxr?= ../../audio/libsoxr
+.endif # LIBSOXR_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libsoxr
diff --git a/audio/libsoxr/distinfo b/audio/libsoxr/distinfo
new file mode 100644
index 00000000000..bb13fd355ff
--- /dev/null
+++ b/audio/libsoxr/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/06/05 00:43:33 ryoon Exp $
+
+SHA1 (soxr-0.1.2-Source.tar.xz) = 3b990f91dc8dc08e70626cd5fb90deda0239c211
+RMD160 (soxr-0.1.2-Source.tar.xz) = b4932145ea2b7ac8747ab43416ecf94b43773a92
+SHA512 (soxr-0.1.2-Source.tar.xz) = ee902c1bc713e05b748f917d78222b68b5fe01d43f405e0954c21ce4d1ee494d01000caa79f696cb8d202c662a4c4d958b332dae034d6f929e0480abf27cd07c
+Size (soxr-0.1.2-Source.tar.xz) = 83760 bytes