summaryrefslogtreecommitdiff
path: root/audio/py-sounddevice/Makefile
blob: 48464527ea1f8b3e04f37af402a6f51cb03a4f2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
PORTNAME=	sounddevice
DISTVERSION=	0.4.6
PORTREVISION=	1
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
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>