aboutsummaryrefslogtreecommitdiffstats
path: root/audio/py-pyaudio/Makefile
blob: 5ae6247c1924451c036f72bac02195ab2b071ffb (plain) (blame)
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
31
32
33
34
35
36
37
38
# Created by: Jaap Akkerhuis <jaap@NLnetLabs.nl>
# $FreeBSD$

PORTNAME=   pyaudio
PORTVERSION=    0.2.7
CATEGORIES= audio python
MASTER_SITES=   http://people.csail.mit.edu/hubert/pyaudio/packages/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= jaap@NLnetLabs.nl
COMMENT=    Portaudio toolkit bindings for Python

LIB_DEPENDS=    portaudio.2:${PORTSDIR}/audio/portaudio2

USE_PYTHON=     yes
USE_PYDISTUTILS=    yes
PYDISTUTILS_PKGNAME=    PyAudio

WRKSRC=     ${WRKDIR}/PyAudio-${PORTVERSION}

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/setup.py

post-install:
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/docs/*.js ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/docs/*.inv ${DOCSDIR}
    @cd ${WRKSRC}/docs && ${COPYTREE_SHARE} _static ${DOCSDIR}/
    @cd ${WRKSRC}/docs && ${COPYTREE_SHARE} _sources ${DOCSDIR}/
.endif

.include <bsd.port.mk>