aboutsummaryrefslogtreecommitdiffstats
path: root/audio/py-pyliblo/Makefile
blob: c01e72f2f0c06a5e73013ebe7d3fab15dd200023 (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
# Created by: Wen Heping <wenheping@gmail.com>
# $FreeBSD$

PORTNAME=   pyliblo
PORTVERSION=    0.9.1
PORTREVISION=   1
CATEGORIES= audio python
MASTER_SITES=   http://das.nasophon.de/download/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Python wrapper for the Liblo OSC Library

LICENSE=    LGPL21

BUILD_DEPENDS=  pyrex>=0.9.4:${PORTSDIR}/devel/pyrex
LIB_DEPENDS=    liblo.so:${PORTSDIR}/audio/liblo

USE_PYTHON=     yes
USE_PYDISTUTILS=    yes
MAKE_ENV+=      PREFIX=${PREFIX} LOCALBASE=${LOCALBASE}
LDFLAGS+=       -L${LOCALBASE}/lib

OPTIONS_DEFINE= DOCS

post-patch:
    ${REINPLACE_CMD} -e 's#%%LOCALBASE%%#${LOCALBASE}#g' ${WRKSRC}/setup.py

post-install:
    ${INSTALL_MAN} ${WRKSRC}/scripts/dump_osc.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
    ${INSTALL_MAN} ${WRKSRC}/scripts/send_osc.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/API.html ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/examples.html ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>