Index: audio/Makefile =================================================================== --- audio/Makefile +++ audio/Makefile @@ -667,6 +667,7 @@ SUBDIR += py-soundscrape SUBDIR += py-speechrecognition SUBDIR += py-speex + SUBDIR += py-pysndfile SUBDIR += py-tagpy SUBDIR += py-vorbis SUBDIR += py-xmms2 Index: audio/py-pysndfile/Makefile =================================================================== --- audio/py-pysndfile/Makefile +++ audio/py-pysndfile/Makefile @@ -0,0 +1,25 @@ +# $FreeBSD$ + +PORTNAME= pysndfile +DISTVERSION= 1.0.0 +CATEGORIES= audio python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Cython wrapper class for reading/writing soundfiles using libsndfile + +LICENSE= LGPL3 + +BUILD_DEPENDS= cython:lang/cython \ + ${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy +LIB_DEPENDS= libsndfile.so:audio/libsndfile +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy + +USES= python localbase +USE_PYTHON= distutils autoplist + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pysndfile/_pysndfile.so + +.include Index: audio/py-pysndfile/distinfo =================================================================== --- audio/py-pysndfile/distinfo +++ audio/py-pysndfile/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1503631978 +SHA256 (pysndfile-1.0.0.tar.gz) = 181d751d8c2c6784241a354f394b64210c1dadc3dc064c22a55eddc5239a2b9e +SIZE (pysndfile-1.0.0.tar.gz) = 562614 Index: audio/py-pysndfile/pkg-descr =================================================================== --- audio/py-pysndfile/pkg-descr +++ audio/py-pysndfile/pkg-descr @@ -0,0 +1,16 @@ +pysndfile is a python package providing PySndfile, a Cython wrapper class +around libsndfile. PySndfile provides methods for reading and writing a +large variety of soundfile formats on a variety of plattforms. PySndfile +provides a rather complete access to the different sound file manipulation +options that are available in libsndfile. + +Due to the use of libsndfile nearly all sound file formats, (besides mp3 +and derived formats) can be read and written with PySndfile. + +The interface has been designed such that a rather large subset of the +functionality of libsndfile can be used, notably the reading and writing of +strings into soundfile formats that support these, and a number of sf_commands +that allow to control the way libsndfile reads and writes the samples. One of +the most important ones is the use of the clipping command. + +WWW: http://forge.ircam.fr/p/pysndfile