mirror of
https://git.freebsd.org/ports.git
synced 2025-05-28 08:56:28 -04:00
Changelog: https://people.csail.mit.edu/hubert/pyaudio/ - Replace PORTVERSION with DISTVERSION. - Add strip of installed library. PR: 280991
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
PORTNAME= pyaudio
|
|
DISTVERSION= 0.2.14
|
|
CATEGORIES= audio python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= PyAudio-${PORTVERSION}
|
|
|
|
MAINTAINER= jaap@NLnetLabs.nl
|
|
COMMENT= Portaudio toolkit bindings for Python
|
|
WWW= https://people.csail.mit.edu/hubert/pyaudio/
|
|
|
|
LICENSE= MIT
|
|
|
|
LIB_DEPENDS= libportaudio.so:audio/portaudio
|
|
|
|
USES= gmake python
|
|
USE_PYTHON= autoplist concurrent distutils
|
|
|
|
MAKE_ENV= PYTHON=${PYTHON_CMD} \
|
|
SPHINX=sphinx-build-${PYTHON_VER}
|
|
|
|
WRKSRC= ${WRKDIR}/PyAudio-${PORTVERSION}
|
|
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
${WRKSRC}/setup.py
|
|
|
|
post-build-DOCS-on:
|
|
(cd ${BUILD_WRKSRC} && \
|
|
${DO_MAKE_BUILD} docs)
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/_portaudio.cpython-${PYTHON_VER:S/.//}.so
|
|
|
|
post-install-DOCS-on:
|
|
(cd ${WRKSRC}/docs && \
|
|
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name .buildinfo -and ! -path *doctrees*")
|
|
|
|
.include <bsd.port.mk>
|