aboutsummaryrefslogtreecommitdiffstats
path: root/audio/py-speex/Makefile
blob: 2bdc74e287d38c3e6c99d2c6610320f98c12b945 (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
# Created by: Carl Johan Gustavsson <cjg@bsdmail.org>
# $FreeBSD$

PORTNAME=   speex
PORTVERSION=    0.2
CATEGORIES= audio python
MASTER_SITES=   http://www.freenet.org.nz/python/pySpeex/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   pySpeex-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
DIST_SUBDIR=    python

MAINTAINER= cjg@bsdmail.org
COMMENT=    Python bindings for the Speex compressor/decompressor audio codec

BUILD_DEPENDS=  pyrex>=0.9.6.2:${PORTSDIR}/devel/pyrex
LIB_DEPENDS=    libspeex.so:${PORTSDIR}/audio/speex

PLIST_FILES=    %%PYTHON_SITELIBDIR%%/speex.so
USE_PYTHON= yes
NO_STAGE=   yes
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGVERSION= 1.0

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

.include <bsd.port.mk>