freebsd-ports/audio/py-sounddevice/Makefile
Yuri Victorovich adad4bfed1 audio/py-sounddevice: Update 0.4.5 → 0.4.6
Reported by:	portscout
2023-03-12 01:02:31 -08:00

29 lines
826 B
Makefile

PORTNAME= sounddevice
DISTVERSION= 0.4.6
CATEGORIES= audio python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Play and record sound through OSS in python programs
WWW= https://github.com/spatialaudio/python-sounddevice
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR} \
${PYNUMPY} \
portaudio>0:audio/portaudio
USES= python:3.7+
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 <bsd.port.mk>