freebsd-ports/audio/py-sounddevice/Makefile
Mathieu Arnold 4376dbbb58 Use PY_FLAVOR for dependencies.
FLAVOR is the current port's flavor, it should not be used outside of
this scope.

Sponsored by:	Absolight
2018-06-20 17:05:41 +00:00

29 lines
783 B
Makefile

# $FreeBSD$
PORTNAME= sounddevice
DISTVERSION= 0.3.11
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@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_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 <bsd.port.mk>