summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/Makefile1
-rw-r--r--audio/py-pysndfile/Makefile25
-rw-r--r--audio/py-pysndfile/distinfo3
-rw-r--r--audio/py-pysndfile/pkg-descr16
4 files changed, 45 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile
index 476330bad349..a7bbeba7afe6 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -662,6 +662,7 @@
SUBDIR += py-pyaudio
SUBDIR += py-pylast
SUBDIR += py-pyliblo
+ SUBDIR += py-pysndfile
SUBDIR += py-shout
SUBDIR += py-soundcloud
SUBDIR += py-soundscrape
diff --git a/audio/py-pysndfile/Makefile b/audio/py-pysndfile/Makefile
new file mode 100644
index 000000000000..86811de18ae9
--- /dev/null
+++ b/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 <bsd.port.mk>
diff --git a/audio/py-pysndfile/distinfo b/audio/py-pysndfile/distinfo
new file mode 100644
index 000000000000..0f9e75fc2bab
--- /dev/null
+++ b/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
diff --git a/audio/py-pysndfile/pkg-descr b/audio/py-pysndfile/pkg-descr
new file mode 100644
index 000000000000..d2ac8a096c31
--- /dev/null
+++ b/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