Index: head/audio/Makefile =================================================================== --- head/audio/Makefile +++ head/audio/Makefile @@ -680,6 +680,7 @@ SUBDIR += py-pysndfile SUBDIR += py-shout SUBDIR += py-soundcloud + SUBDIR += py-sounddevice SUBDIR += py-soundscrape SUBDIR += py-speechrecognition SUBDIR += py-speex Index: head/audio/py-sounddevice/Makefile =================================================================== --- head/audio/py-sounddevice/Makefile +++ head/audio/py-sounddevice/Makefile @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= sounddevice +PORTVERSION= 0.3.10 +CATEGORIES= audio python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Play and record sound through OSS in python programs + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${FLAVOR} \ + ${PYNUMPY} \ + portaudio>0:audio/portaudio + +USES= python +USE_PYTHON= distutils autoplist +NO_ARCH= yes + +post-install: # workaround for https://github.com/spatialaudio/python-sounddevice/issues/116 + @${GREP} "/sounddevice\." < ${_PYTHONPKGLIST} \ + | ${SED} -e 's|/sounddevice\.|/_sounddevice.|' \ + >> ${_PYTHONPKGLIST} + +.include Index: head/audio/py-sounddevice/distinfo =================================================================== --- head/audio/py-sounddevice/distinfo +++ head/audio/py-sounddevice/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1516010801 +SHA256 (sounddevice-0.3.10.tar.gz) = 6a972db105b11a570b454c0b92b5d37ead46829ce71a278b148ec6479209ad9f +SIZE (sounddevice-0.3.10.tar.gz) = 46411 Index: head/audio/py-sounddevice/pkg-descr =================================================================== --- head/audio/py-sounddevice/pkg-descr +++ head/audio/py-sounddevice/pkg-descr @@ -0,0 +1,7 @@ +sounddevice provides bindings for the PortAudio library and a few convenience +functions to play and record NumPy arrays containing audio signals. + +It is primarily intended for use in signal analysis software. +PortAudio plays and records sound through the OSS audio interface. + +WWW: https://github.com/spatialaudio/python-sounddevice