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

PORTNAME=   speex
PORTVERSION=    0.2
PORTREVISION=   2
CATEGORIES= audio python
MASTER_SITES=   http://freenet.mcnabhosting.com/python/pySpeex/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   pySpeex-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
DIST_SUBDIR=    python

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

BUILD_DEPENDS=  pyrex>=0.9.6.2:devel/pyrex
LIB_DEPENDS=    libspeex.so:audio/speex

USES=       python
USE_PYTHON= autoplist distutils

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

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/speex.so

.include <bsd.port.mk>