1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/audio/py-mad/Makefile
Hye-Shik Chang 6c7c05a226 Update to 0.5.4
PR:		85981
Submitted by:	Peter Johnson <freebsd@bilogic.org>
2005-11-02 13:14:42 +00:00

39 lines
920 B
Makefile

# 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>