blob: 9d667b338a7d49e8b9a71cc06f5574f27162007f (
plain)
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
|
# New ports collection makefile for: py-mad
# Date created: 8 October 2002
# Whom: Hye-Shik Chang
#
# $FreeBSD$
PORTNAME= mad
PORTVERSION= 0.5.4
CATEGORIES= audio python
MASTER_SITES= http://spacepants.org/src/pymad/download/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pymad-${PORTVERSION}
MAINTAINER= perky@FreeBSD.org
COMMENT= Python module that provides the MPEG Audio Decoder interface
LIB_DEPENDS= mad.2:${PORTSDIR}/audio/mad
PLIST_FILES= %%PYTHON_SITELIBDIR%%/madmodule.so
USE_REINPLACE= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_PYTHON_PREFIX= yes
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} 's/^\(.*compile.*\)\?\(.*\)\?\(.*\)$$/\1\2\3/' \
${WRKSRC}/setup.py
.if ${OSVERSION} < 500028
@${REINPLACE_CMD} 's/#include <stdint.h>//g' \
${WRKSRC}/src/pymadfile.c
.endif
do-configure:
@cd ${WRKSRC} && ${PYTHON_CMD} config_unix.py --prefix ${PREFIX}
.include <bsd.port.post.mk>
|