import audio/libsoxr, ok landry@

The SoX Resampler library `libsoxr' performs one-dimensional sample-rate
conversion -- it may be used, for example, to resample PCM-encoded audio.
For higher-dimensional resampling, such as for visual-image processing, you
should look elsewhere.

It aims to give fast and very 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.
This commit is contained in:
sthen 2013-03-08 09:50:27 +00:00
parent fee1ee6551
commit ae1d631f54
4 changed files with 60 additions and 0 deletions

27
audio/libsoxr/Makefile Normal file
View File

@ -0,0 +1,27 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/03/08 09:50:27 sthen Exp $
COMMENT= fast and high quality sample-rate conversion (SoX Resampler)
DISTNAME= soxr-0.1.1-Source
PKGNAME= lib${DISTNAME:S/-Source//}
EXTRACT_SUFX= .tar.xz
SHARED_LIBS= soxr 1.2 soxr-lsr 3.4
CATEGORIES= audio
HOMEPAGE= http://sourceforge.net/p/soxr/wiki/Home/
# LGPLv2.1+
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += m
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=soxr/}
MODULES= devel/cmake
.include <bsd.port.mk>

2
audio/libsoxr/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (soxr-0.1.1-Source.tar.xz) = 3MFoaNGhVweTFvhCM6/MK1LdC9VB3YQ53CW86zBvqsI=
SIZE (soxr-0.1.1-Source.tar.xz) = 80716

10
audio/libsoxr/pkg/DESCR Normal file
View File

@ -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.
For higher-dimensional resampling, such as for visual-image processing, you
should look elsewhere.
It aims to give fast and very 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.

21
audio/libsoxr/pkg/PLIST Normal file
View File

@ -0,0 +1,21 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/03/08 09:50:27 sthen Exp $
include/soxr-lsr.h
include/soxr.h
@lib lib/libsoxr-lsr.so.${LIBsoxr-lsr_VERSION}
@lib lib/libsoxr.so.${LIBsoxr_VERSION}
lib/pkgconfig/
lib/pkgconfig/soxr-lsr.pc
lib/pkgconfig/soxr.pc
share/doc/libsoxr/
share/doc/libsoxr/LICENCE
share/doc/libsoxr/NEWS
share/doc/libsoxr/README
share/doc/libsoxr/examples/
share/doc/libsoxr/examples/1-single-block.c
share/doc/libsoxr/examples/1a-lsr.c
share/doc/libsoxr/examples/2-stream.C
share/doc/libsoxr/examples/3-options-input-fn.c
share/doc/libsoxr/examples/4-split-channels.c
share/doc/libsoxr/examples/5-variable-rate.c
share/doc/libsoxr/examples/README
share/doc/libsoxr/examples/examples-common.h