Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jun 2016 18:12:21 +0000 (UTC)
From:      Thomas Zander <riggs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r417476 - in head/audio: . libsoxr libsoxr/files
Message-ID:  <201606251812.u5PICLE9054271@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: riggs
Date: Sat Jun 25 18:12:21 2016
New Revision: 417476
URL: https://svnweb.freebsd.org/changeset/ports/417476

Log:
  Import audio/libsoxr, a sample-rate conversion library
  
  PR:		liangtai.s16@gmail.com
  Reviewed by:	riggs

Added:
  head/audio/libsoxr/
  head/audio/libsoxr/Makefile   (contents, props changed)
  head/audio/libsoxr/distinfo   (contents, props changed)
  head/audio/libsoxr/files/
  head/audio/libsoxr/files/FFTPAK_license.txt   (contents, props changed)
  head/audio/libsoxr/pkg-descr   (contents, props changed)
  head/audio/libsoxr/pkg-plist   (contents, props changed)
Modified:
  head/audio/Makefile

Modified: head/audio/Makefile
==============================================================================
--- head/audio/Makefile	Sat Jun 25 17:21:29 2016	(r417475)
+++ head/audio/Makefile	Sat Jun 25 18:12:21 2016	(r417476)
@@ -405,6 +405,7 @@
     SUBDIR += libsidplayfp
     SUBDIR += libsmf
     SUBDIR += libsndfile
+    SUBDIR += libsoxr
     SUBDIR += libtremor
     SUBDIR += libumidi
     SUBDIR += libvorbis

Added: head/audio/libsoxr/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/libsoxr/Makefile	Sat Jun 25 18:12:21 2016	(r417476)
@@ -0,0 +1,61 @@
+# $FreeBSD$
+
+PORTNAME=	libsoxr
+PORTVERSION=	0.1.2.20160529
+CATEGORIES=	audio
+MASTER_SITES=	LOCAL/riggs/soxr/
+
+MAINTAINER=	riggs@FreeBSD.org
+COMMENT=	High quality, one-dimensional sample-rate conversion library
+
+LICENSE=	LGPL21+ FFTPAK
+LICENSE_COMB=	multi
+LICENSE_NAME_FFTPAK=	FFTPAK license
+LICENSE_FILE=	${WRKSRC}/COPYING.LGPL
+LICENSE_FILE_FFTPAK=	${FILESDIR}/FFTPAK_license.txt
+LICENSE_PERMS_FFTPAK=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+USES=		cmake pathfix pkgconfig tar:bz2
+
+USE_LDCONFIG=	yes
+
+PORTDOCS=	NEWS README
+
+CMAKE_MAKE_ARGS+=	-DWITH_LSR_BINDINGS:BOOL=ON \
+			-DBUILD_SHARED_LIBS:BOOL=ON
+
+OPTIONS_SUB=	yes
+
+OPTIONS_DEFINE=		DOCS EXAMPLES OPENMP
+OPTIONS_DEFINE_amd64=	SIMD
+OPTIONS_DEFINE_i386=	SIMD
+SIMD_DESC=		Use processor-specific SIMD optimisations
+
+OPTIONS_RADIO=		SIMD_DFT
+OPTIONS_RADIO_SIMD_DFT=	AVFFT PFFFT
+SIMD_DFT_DESC=		Choice of SIMD DFT library
+
+OPENMP_CMAKE_ON=	-DWITH_OPENMP:BOOL=ON
+OPENMP_CMAKE_OFF=	-DWITH_OPENMP:BOOL=OFF
+OPENMP_USES=		compiler:openmp
+
+SIMD_CMAKE_OFF=		-DWITH_CR32S:BOOL=OFF \
+			-DWITH_CR64S:BOOL=OFF
+
+AVFFT_DESC=		Use external libavcodec
+PFFFT_DESC=		Use internal PFFFT
+AVFFT_CMAKE_ON=		-DWITH_AVFFT:BOOL=ON
+AVFFT_CMAKE_OFF=	-DWITH_AVFFT:BOOL=OFF
+AVFFT_IMPLIES=		SIMD
+AVFFT_LIB_DEPENDS=	libavcodec.so:multimedia/ffmpeg
+PFFFT_CMAKE_ON=		-DWITH_PFFFT:BOOL=ON
+PFFFT_CMAKE_OFF=	-DWITH_PFFFT:BOOL=OFF
+PFFFT_IMPLIES=		SIMD
+
+post-patch:
+	@${GREP} -El 'SOURCE_DIR}/LICENCE|AVCODEC_INCLUDE_DIRS' \
+		${WRKSRC}/CMakeLists.txt | ${XARGS} ${REINPLACE_CMD} \
+		-e '/$${CMAKE_CURRENT_SOURCE_DIR}\/LICENCE/d' \
+		-e 's/AVCODEC_INCLUDE_DIRS/AVCODEC_INCLUDES/'
+
+.include <bsd.port.mk>

Added: head/audio/libsoxr/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/libsoxr/distinfo	Sat Jun 25 18:12:21 2016	(r417476)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1466866181
+SHA256 (libsoxr-0.1.2.20160529.tar.bz2) = e9c672ed2707825648eabc099990e4f40226e6c4dfe79bb8904caac57a7d1529
+SIZE (libsoxr-0.1.2.20160529.tar.bz2) = 122474

Added: head/audio/libsoxr/files/FFTPAK_license.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/libsoxr/files/FFTPAK_license.txt	Sat Jun 25 18:12:21 2016	(r417476)
@@ -0,0 +1,36 @@
+   FFTPACK license:
+
+   http://www.cisl.ucar.edu/css/software/fftpack5/ftpk.html
+
+   Copyright (c) 2004 the University Corporation for Atmospheric
+   Research ("UCAR"). All rights reserved. Developed by NCAR's
+   Computational and Information Systems Laboratory, UCAR,
+   www.cisl.ucar.edu.
+
+   Redistribution and use of the Software in source and binary forms,
+   with or without modification, is permitted provided that the
+   following conditions are met:
+
+   - Neither the names of NCAR's Computational and Information Systems
+   Laboratory, the University Corporation for Atmospheric Research,
+   nor the names of its sponsors or contributors may be used to
+   endorse or promote products derived from this Software without
+   specific prior written permission.
+
+   - Redistributions of source code must retain the above copyright
+   notices, this list of conditions, and the disclaimer below.
+
+   - Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions, and the disclaimer below in the
+   documentation and/or other materials provided with the
+   distribution.
+
+   THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+   EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE WARRANTIES OF
+   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+   NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT
+   HOLDERS BE LIABLE FOR ANY CLAIM, INDIRECT, INCIDENTAL, SPECIAL,
+   EXEMPLARY, OR CONSEQUENTIAL DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+   ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+   CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
+   SOFTWARE.

Added: head/audio/libsoxr/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/libsoxr/pkg-descr	Sat Jun 25 18:12:21 2016	(r417476)
@@ -0,0 +1,12 @@
+The SoX Resampler library `libsoxr'
+
+It performs one-dimensional sample-rate conversion,
+may be used, for example, to resample PCM-encoded audio.
+
+This library 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.
+
+WWW: http://sourceforge.net/p/soxr/

Added: head/audio/libsoxr/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/libsoxr/pkg-plist	Sat Jun 25 18:12:21 2016	(r417476)
@@ -0,0 +1,18 @@
+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.2
+libdata/pkgconfig/soxr-lsr.pc
+libdata/pkgconfig/soxr.pc
+%%EXAMPLES%%%%DOCSDIR%%/examples/1-single-block.c
+%%EXAMPLES%%%%DOCSDIR%%/examples/1a-lsr.c
+%%EXAMPLES%%%%DOCSDIR%%/examples/2-stream.C
+%%EXAMPLES%%%%DOCSDIR%%/examples/3-options-input-fn.c
+%%EXAMPLES%%%%DOCSDIR%%/examples/4-split-channels.c
+%%EXAMPLES%%%%DOCSDIR%%/examples/5-variable-rate.c
+%%EXAMPLES%%%%DOCSDIR%%/examples/README
+%%EXAMPLES%%%%DOCSDIR%%/examples/examples-common.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606251812.u5PICLE9054271>